Class AccessInformationCreateParameterProperties

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

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

    • AccessInformationCreateParameterProperties

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

    • principalId

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

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

      public String primaryKey()
      Get the primaryKey property: Primary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
      Returns:
      the primaryKey value.
    • withPrimaryKey

      public AccessInformationCreateParameterProperties withPrimaryKey(String primaryKey)
      Set the primaryKey property: Primary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
      Parameters:
      primaryKey - the primaryKey value to set.
      Returns:
      the AccessInformationCreateParameterProperties object itself.
    • secondaryKey

      public String secondaryKey()
      Get the secondaryKey property: Secondary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
      Returns:
      the secondaryKey value.
    • withSecondaryKey

      public AccessInformationCreateParameterProperties withSecondaryKey(String secondaryKey)
      Set the secondaryKey property: Secondary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
      Parameters:
      secondaryKey - the secondaryKey value to set.
      Returns:
      the AccessInformationCreateParameterProperties object itself.
    • enabled

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

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

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