Class AccessInformationCreateParameters

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

public final class AccessInformationCreateParameters extends Object implements com.azure.json.JsonSerializable<AccessInformationCreateParameters>
Tenant access information update parameters.
  • Constructor Details

    • AccessInformationCreateParameters

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

    • principalId

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

      public AccessInformationCreateParameters withPrincipalId(String principalId)
      Set the principalId property: Principal (User) Identifier.
      Parameters:
      principalId - the principalId value to set.
      Returns:
      the AccessInformationCreateParameters 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 AccessInformationCreateParameters 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 AccessInformationCreateParameters 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 AccessInformationCreateParameters 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 AccessInformationCreateParameters object itself.
    • enabled

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

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

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