Class PortalSettingsContract
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.apimanagement.models.PortalSettingsContract
-
public final class PortalSettingsContract extends com.azure.core.management.ProxyResource
Portal Settings for the Developer Portal.
-
-
Constructor Summary
Constructors Constructor Description PortalSettingsContract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
enabled()
Get the enabled property: Redirect Anonymous users to the Sign-In page.SubscriptionsDelegationSettingsProperties
subscriptions()
Get the subscriptions property: Subscriptions delegation settings.TermsOfServiceProperties
termsOfService()
Get the termsOfService property: Terms of service contract properties.String
url()
Get the url property: A delegation Url.RegistrationDelegationSettingsProperties
userRegistration()
Get the userRegistration property: User registration delegation settings.void
validate()
Validates the instance.String
validationKey()
Get the validationKey property: A base64-encoded validation key to validate, that a request is coming from Azure API Management.PortalSettingsContract
withEnabled(Boolean enabled)
Set the enabled property: Redirect Anonymous users to the Sign-In page.PortalSettingsContract
withSubscriptions(SubscriptionsDelegationSettingsProperties subscriptions)
Set the subscriptions property: Subscriptions delegation settings.PortalSettingsContract
withTermsOfService(TermsOfServiceProperties termsOfService)
Set the termsOfService property: Terms of service contract properties.PortalSettingsContract
withUrl(String url)
Set the url property: A delegation Url.PortalSettingsContract
withUserRegistration(RegistrationDelegationSettingsProperties userRegistration)
Set the userRegistration property: User registration delegation settings.PortalSettingsContract
withValidationKey(String validationKey)
Set the validationKey property: A base64-encoded validation key to validate, that a request is coming from Azure API Management.
-
-
-
Method Detail
-
url
public String url()
Get the url property: A delegation Url.- Returns:
- the url value.
-
withUrl
public PortalSettingsContract withUrl(String url)
Set the url property: A delegation Url.- Parameters:
url
- the url value to set.- Returns:
- the PortalSettingsContract object itself.
-
validationKey
public String 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
public PortalSettingsContract withValidationKey(String validationKey)
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 PortalSettingsContract object itself.
-
subscriptions
public SubscriptionsDelegationSettingsProperties subscriptions()
Get the subscriptions property: Subscriptions delegation settings.- Returns:
- the subscriptions value.
-
withSubscriptions
public PortalSettingsContract withSubscriptions(SubscriptionsDelegationSettingsProperties subscriptions)
Set the subscriptions property: Subscriptions delegation settings.- Parameters:
subscriptions
- the subscriptions value to set.- Returns:
- the PortalSettingsContract object itself.
-
userRegistration
public RegistrationDelegationSettingsProperties userRegistration()
Get the userRegistration property: User registration delegation settings.- Returns:
- the userRegistration value.
-
withUserRegistration
public PortalSettingsContract withUserRegistration(RegistrationDelegationSettingsProperties userRegistration)
Set the userRegistration property: User registration delegation settings.- Parameters:
userRegistration
- the userRegistration value to set.- Returns:
- the PortalSettingsContract object itself.
-
enabled
public Boolean enabled()
Get the enabled property: Redirect Anonymous users to the Sign-In page.- Returns:
- the enabled value.
-
withEnabled
public PortalSettingsContract withEnabled(Boolean enabled)
Set the enabled property: Redirect Anonymous users to the Sign-In page.- Parameters:
enabled
- the enabled value to set.- Returns:
- the PortalSettingsContract object itself.
-
termsOfService
public TermsOfServiceProperties termsOfService()
Get the termsOfService property: Terms of service contract properties.- Returns:
- the termsOfService value.
-
withTermsOfService
public PortalSettingsContract withTermsOfService(TermsOfServiceProperties termsOfService)
Set the termsOfService property: Terms of service contract properties.- Parameters:
termsOfService
- the termsOfService value to set.- Returns:
- the PortalSettingsContract object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-