Class PortalSignupSettingsProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.PortalSignupSettingsProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<PortalSignupSettingsProperties>

public final class PortalSignupSettingsProperties extends Object implements com.azure.json.JsonSerializable<PortalSignupSettingsProperties>
Sign-up settings contract properties.
  • Constructor Details

    • PortalSignupSettingsProperties

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

    • enabled

      public Boolean enabled()
      Get the enabled property: Allow users to sign up on a developer portal.
      Returns:
      the enabled value.
    • withEnabled

      public PortalSignupSettingsProperties withEnabled(Boolean enabled)
      Set the enabled property: Allow users to sign up on a developer portal.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the PortalSignupSettingsProperties object itself.
    • termsOfService

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

      public PortalSignupSettingsProperties withTermsOfService(TermsOfServiceProperties termsOfService)
      Set the termsOfService property: Terms of service contract properties.
      Parameters:
      termsOfService - the termsOfService value to set.
      Returns:
      the PortalSignupSettingsProperties 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<PortalSignupSettingsProperties>
      Throws:
      IOException
    • fromJson

      public static PortalSignupSettingsProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PortalSignupSettingsProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PortalSignupSettingsProperties 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 PortalSignupSettingsProperties.