Class PortalConfigDelegationProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.models.PortalConfigDelegationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PortalConfigDelegationProperties>
public final class PortalConfigDelegationProperties
extends Object
implements com.azure.json.JsonSerializable<PortalConfigDelegationProperties>
The PortalConfigDelegationProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PortalConfigDelegationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the delegateRegistration property: Enable or disable delegation for user registration.Get the delegateSubscription property: Enable or disable delegation for product subscriptions.Get the delegationUrl property: A delegation endpoint URL.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PortalConfigDelegationProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the validationKey property: A base64-encoded validation key to ensure requests originate from Azure API Management service.withDelegateRegistration(Boolean delegateRegistration) Set the delegateRegistration property: Enable or disable delegation for user registration.withDelegateSubscription(Boolean delegateSubscription) Set the delegateSubscription property: Enable or disable delegation for product subscriptions.withDelegationUrl(String delegationUrl) Set the delegationUrl property: A delegation endpoint URL.withValidationKey(String validationKey) Set the validationKey property: A base64-encoded validation key to ensure requests originate from Azure API Management service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PortalConfigDelegationProperties
public PortalConfigDelegationProperties()Creates an instance of PortalConfigDelegationProperties class.
-
-
Method Details
-
delegateRegistration
Get the delegateRegistration property: Enable or disable delegation for user registration.- Returns:
- the delegateRegistration value.
-
withDelegateRegistration
Set the delegateRegistration property: Enable or disable delegation for user registration.- Parameters:
delegateRegistration- the delegateRegistration value to set.- Returns:
- the PortalConfigDelegationProperties object itself.
-
delegateSubscription
Get the delegateSubscription property: Enable or disable delegation for product subscriptions.- Returns:
- the delegateSubscription value.
-
withDelegateSubscription
Set the delegateSubscription property: Enable or disable delegation for product subscriptions.- Parameters:
delegateSubscription- the delegateSubscription value to set.- Returns:
- the PortalConfigDelegationProperties object itself.
-
delegationUrl
Get the delegationUrl property: A delegation endpoint URL.- Returns:
- the delegationUrl value.
-
withDelegationUrl
Set the delegationUrl property: A delegation endpoint URL.- Parameters:
delegationUrl- the delegationUrl value to set.- Returns:
- the PortalConfigDelegationProperties object itself.
-
validationKey
Get the validationKey property: A base64-encoded validation key to ensure requests originate from Azure API Management service.- Returns:
- the validationKey value.
-
withValidationKey
Set the validationKey property: A base64-encoded validation key to ensure requests originate from Azure API Management service.- Parameters:
validationKey- the validationKey value to set.- Returns:
- the PortalConfigDelegationProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PortalConfigDelegationProperties>- Throws:
IOException
-
fromJson
public static PortalConfigDelegationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PortalConfigDelegationProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PortalConfigDelegationProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the PortalConfigDelegationProperties.
-