Class AccessInformationContractProperties

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

public final class AccessInformationContractProperties extends Object implements com.azure.json.JsonSerializable<AccessInformationContractProperties>
Tenant access information contract of the API Management service.
  • Constructor Details

    • AccessInformationContractProperties

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

    • id

      public String id()
      Get the id property: Access Information type ('access' or 'gitAccess').
      Returns:
      the id value.
    • withId

      Set the id property: Access Information type ('access' or 'gitAccess').
      Parameters:
      id - the id value to set.
      Returns:
      the AccessInformationContractProperties object itself.
    • principalId

      public String principalId()
      Get the principalId property: Principal (User) Identifier.
      Returns:
      the principalId value.
    • withPrincipalId

      public AccessInformationContractProperties withPrincipalId(String principalId)
      Set the principalId property: Principal (User) Identifier.
      Parameters:
      principalId - the principalId value to set.
      Returns:
      the AccessInformationContractProperties object itself.
    • enabled

      public Boolean enabled()
      Get the enabled property: Determines whether direct access is enabled.
      Returns:
      the enabled value.
    • withEnabled

      public AccessInformationContractProperties withEnabled(Boolean enabled)
      Set the enabled property: Determines whether direct access is enabled.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the AccessInformationContractProperties 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<AccessInformationContractProperties>
      Throws:
      IOException
    • fromJson

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