Class PortalSettingsContractProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.PortalSettingsContractProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PortalSettingsContractProperties>
public final class PortalSettingsContractProperties
extends Object
implements com.azure.json.JsonSerializable<PortalSettingsContractProperties>
Sign-in settings contract properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PortalSettingsContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Redirect Anonymous users to the Sign-In page.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PortalSettingsContractProperties from the JsonReader.Get the subscriptions property: Subscriptions delegation settings.Get the termsOfService property: Terms of service contract properties.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.withEnabled(Boolean enabled) Set the enabled property: Redirect Anonymous users to the Sign-In page.withSubscriptions(SubscriptionsDelegationSettingsProperties subscriptions) Set the subscriptions property: Subscriptions delegation settings.withTermsOfService(TermsOfServiceProperties termsOfService) Set the termsOfService property: Terms of service contract properties.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
-
PortalSettingsContractProperties
public PortalSettingsContractProperties()Creates an instance of PortalSettingsContractProperties 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 PortalSettingsContractProperties 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 PortalSettingsContractProperties object itself.
-
subscriptions
Get the subscriptions property: Subscriptions delegation settings.- Returns:
- the subscriptions value.
-
withSubscriptions
public PortalSettingsContractProperties withSubscriptions(SubscriptionsDelegationSettingsProperties subscriptions) Set the subscriptions property: Subscriptions delegation settings.- Parameters:
subscriptions- the subscriptions value to set.- Returns:
- the PortalSettingsContractProperties object itself.
-
userRegistration
Get the userRegistration property: User registration delegation settings.- Returns:
- the userRegistration value.
-
withUserRegistration
public PortalSettingsContractProperties withUserRegistration(RegistrationDelegationSettingsProperties userRegistration) Set the userRegistration property: User registration delegation settings.- Parameters:
userRegistration- the userRegistration value to set.- Returns:
- the PortalSettingsContractProperties object itself.
-
enabled
Get the enabled property: Redirect Anonymous users to the Sign-In page.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Redirect Anonymous users to the Sign-In page.- Parameters:
enabled- the enabled value to set.- Returns:
- the PortalSettingsContractProperties object itself.
-
termsOfService
Get the termsOfService property: Terms of service contract properties.- Returns:
- the termsOfService value.
-
withTermsOfService
Set the termsOfService property: Terms of service contract properties.- Parameters:
termsOfService- the termsOfService value to set.- Returns:
- the PortalSettingsContractProperties 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<PortalSettingsContractProperties>- Throws:
IOException
-
fromJson
public static PortalSettingsContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PortalSettingsContractProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PortalSettingsContractProperties 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 PortalSettingsContractProperties.
-