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 Details

    • PortalSettingsContractProperties

      public PortalSettingsContractProperties()
      Creates an instance of PortalSettingsContractProperties class.
  • Method Details

    • url

      public String 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

      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 PortalSettingsContractProperties 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 PortalSettingsContractProperties object itself.
    • subscriptions

      Get the subscriptions property: Subscriptions delegation settings.
      Returns:
      the subscriptions value.
    • withSubscriptions

      Set the subscriptions property: Subscriptions delegation settings.
      Parameters:
      subscriptions - the subscriptions value to set.
      Returns:
      the PortalSettingsContractProperties object itself.
    • userRegistration

      public RegistrationDelegationSettingsProperties 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

      public Boolean enabled()
      Get the enabled property: Redirect Anonymous users to the Sign-In page.
      Returns:
      the enabled value.
    • withEnabled

      public PortalSettingsContractProperties withEnabled(Boolean enabled)
      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

      public TermsOfServiceProperties termsOfService()
      Get the termsOfService property: Terms of service contract properties.
      Returns:
      the termsOfService value.
    • withTermsOfService

      public PortalSettingsContractProperties withTermsOfService(TermsOfServiceProperties termsOfService)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.