Class PortalConfigContractInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.PortalConfigContractInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class PortalConfigContractInner extends com.azure.core.management.ProxyResource
The developer portal configuration contract.
  • Constructor Details

    • PortalConfigContractInner

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

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • enableBasicAuth

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

      public PortalConfigContractInner withEnableBasicAuth(Boolean enableBasicAuth)
      Set the enableBasicAuth property: Enable or disable Basic authentication method.
      Parameters:
      enableBasicAuth - the enableBasicAuth value to set.
      Returns:
      the PortalConfigContractInner 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 PortalConfigContractInner 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 PortalConfigContractInner object itself.
    • delegation

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

      public PortalConfigContractInner withDelegation(PortalConfigDelegationProperties delegation)
      Set the delegation property: The developer portal delegation settings.
      Parameters:
      delegation - the delegation value to set.
      Returns:
      the PortalConfigContractInner 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 PortalConfigContractInner 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 PortalConfigContractInner 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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

      public static PortalConfigContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PortalConfigContractInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PortalConfigContractInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the PortalConfigContractInner.