java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.AccessInformationSecretsContractInner
Constructor Summary
Constructors
Creates an instance of AccessInformationSecretsContractInner class.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Get the enabled property: Determines whether direct access is enabled.
fromJson (com.azure.json.JsonReader jsonReader)
Reads an instance of AccessInformationSecretsContractInner from the JsonReader.
Get the id property: Access Information type ('access' or 'gitAccess').
Get the primaryKey property: Primary access key.
Get the principalId property: Principal (User) Identifier.
Get the secondaryKey property: Secondary access key.
com.azure.json.JsonWriter
toJson (com.azure.json.JsonWriter jsonWriter)
void
Set the enabled property: Determines whether direct access is enabled.
Set the id property: Access Information type ('access' or 'gitAccess').
Set the primaryKey property: Primary access key.
Set the principalId property: Principal (User) Identifier.
Set the secondaryKey property: Secondary access key.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
Constructor Details
AccessInformationSecretsContractInner
public AccessInformationSecretsContractInner ()
Creates an instance of AccessInformationSecretsContractInner class.
Method Details
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 AccessInformationSecretsContractInner object itself.
principalId
Get the principalId property: Principal (User) Identifier.
Returns:
the principalId value.
withPrincipalId
Set the principalId property: Principal (User) Identifier.
Parameters:
principalId - the principalId value to set.
Returns:
the AccessInformationSecretsContractInner object itself.
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
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 AccessInformationSecretsContractInner object itself.
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
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 AccessInformationSecretsContractInner object itself.
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 AccessInformationSecretsContractInner object itself.
validate
public void validate ()
Validates the instance.
Throws:
IllegalArgumentException - thrown if the instance is not valid.
fromJson
Reads an instance of AccessInformationSecretsContractInner from the JsonReader.
Parameters:
jsonReader - The JsonReader being read.
Returns:
An instance of AccessInformationSecretsContractInner 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 AccessInformationSecretsContractInner.