Class PortalDelegationSettingsProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.PortalDelegationSettingsProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PortalDelegationSettingsProperties>
public final class PortalDelegationSettingsProperties
extends Object
implements com.azure.json.JsonSerializable<PortalDelegationSettingsProperties>
Delegation settings contract properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PortalDelegationSettingsProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PortalDelegationSettingsProperties from the JsonReader.Get the subscriptions property: Subscriptions delegation settings.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) url()Get the url property: A delegation Url.Get the userRegistration property: User registration delegation settings.voidvalidate()Validates the instance.Get the validationKey property: A base64-encoded validation key to validate, that a request is coming from Azure API Management.withSubscriptions(SubscriptionsDelegationSettingsProperties subscriptions) Set the subscriptions property: Subscriptions delegation settings.Set the url property: A delegation Url.withUserRegistration(RegistrationDelegationSettingsProperties userRegistration) Set the userRegistration property: User registration delegation settings.withValidationKey(String validationKey) Set the validationKey property: A base64-encoded validation key to validate, that a request is coming from Azure API Management.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
-
PortalDelegationSettingsProperties
public PortalDelegationSettingsProperties()Creates an instance of PortalDelegationSettingsProperties class.
-
-
Method Details
-
url
Get the url property: A delegation Url.- Returns:
- the url value.
-
withUrl
Set the url property: A delegation Url.- Parameters:
url- the url value to set.- Returns:
- the PortalDelegationSettingsProperties object itself.
-
validationKey
Get the validationKey property: A base64-encoded validation key to validate, that a request is coming from Azure API Management.- Returns:
- the validationKey value.
-
withValidationKey
Set the validationKey property: A base64-encoded validation key to validate, that a request is coming from Azure API Management.- Parameters:
validationKey- the validationKey value to set.- Returns:
- the PortalDelegationSettingsProperties object itself.
-
subscriptions
Get the subscriptions property: Subscriptions delegation settings.- Returns:
- the subscriptions value.
-
withSubscriptions
public PortalDelegationSettingsProperties withSubscriptions(SubscriptionsDelegationSettingsProperties subscriptions) Set the subscriptions property: Subscriptions delegation settings.- Parameters:
subscriptions- the subscriptions value to set.- Returns:
- the PortalDelegationSettingsProperties object itself.
-
userRegistration
Get the userRegistration property: User registration delegation settings.- Returns:
- the userRegistration value.
-
withUserRegistration
public PortalDelegationSettingsProperties withUserRegistration(RegistrationDelegationSettingsProperties userRegistration) Set the userRegistration property: User registration delegation settings.- Parameters:
userRegistration- the userRegistration value to set.- Returns:
- the PortalDelegationSettingsProperties 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<PortalDelegationSettingsProperties>- Throws:
IOException
-
fromJson
public static PortalDelegationSettingsProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PortalDelegationSettingsProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PortalDelegationSettingsProperties 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 PortalDelegationSettingsProperties.
-