Class PortalConfigProperties

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

public final class PortalConfigProperties extends Object implements com.azure.json.JsonSerializable<PortalConfigProperties>
The developer portal configuration contract properties.
  • Constructor Details

    • PortalConfigProperties

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

    • enableBasicAuth

      public Boolean enableBasicAuth()
      Get the enableBasicAuth property: Enable or disable Basic authentication method.
      Returns:
      the enableBasicAuth value.
    • withEnableBasicAuth

      public PortalConfigProperties withEnableBasicAuth(Boolean enableBasicAuth)
      Set the enableBasicAuth property: Enable or disable Basic authentication method.
      Parameters:
      enableBasicAuth - the enableBasicAuth value to set.
      Returns:
      the PortalConfigProperties object itself.
    • signin

      Get the signin property: The signin property.
      Returns:
      the signin value.
    • withSignin

      Set the signin property: The signin property.
      Parameters:
      signin - the signin value to set.
      Returns:
      the PortalConfigProperties object itself.
    • signup

      Get the signup property: The signup property.
      Returns:
      the signup value.
    • withSignup

      Set the signup property: The signup property.
      Parameters:
      signup - the signup value to set.
      Returns:
      the PortalConfigProperties object itself.
    • delegation

      public PortalConfigDelegationProperties delegation()
      Get the delegation property: The developer portal delegation settings.
      Returns:
      the delegation value.
    • withDelegation

      public PortalConfigProperties withDelegation(PortalConfigDelegationProperties delegation)
      Set the delegation property: The developer portal delegation settings.
      Parameters:
      delegation - the delegation value to set.
      Returns:
      the PortalConfigProperties object itself.
    • cors

      Get the cors property: The developer portal Cross-Origin Resource Sharing (CORS) settings.
      Returns:
      the cors value.
    • withCors

      Set the cors property: The developer portal Cross-Origin Resource Sharing (CORS) settings.
      Parameters:
      cors - the cors value to set.
      Returns:
      the PortalConfigProperties object itself.
    • csp

      Get the csp property: The developer portal Content Security Policy (CSP) settings.
      Returns:
      the csp value.
    • withCsp

      Set the csp property: The developer portal Content Security Policy (CSP) settings.
      Parameters:
      csp - the csp value to set.
      Returns:
      the PortalConfigProperties 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<PortalConfigProperties>
      Throws:
      IOException
    • fromJson

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