Class AccessInformationCreateParameterProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.AccessInformationCreateParameterProperties
-
public final class AccessInformationCreateParameterProperties extends Object
Tenant access information update parameters of the API Management service.
-
-
Constructor Summary
Constructors Constructor Description AccessInformationCreateParameterProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
enabled()
Get the enabled property: Determines whether direct access is enabled.String
primaryKey()
Get the primaryKey property: Primary access key.String
principalId()
Get the principalId property: Principal (User) Identifier.String
secondaryKey()
Get the secondaryKey property: Secondary access key.void
validate()
Validates the instance.AccessInformationCreateParameterProperties
withEnabled(Boolean enabled)
Set the enabled property: Determines whether direct access is enabled.AccessInformationCreateParameterProperties
withPrimaryKey(String primaryKey)
Set the primaryKey property: Primary access key.AccessInformationCreateParameterProperties
withPrincipalId(String principalId)
Set the principalId property: Principal (User) Identifier.AccessInformationCreateParameterProperties
withSecondaryKey(String secondaryKey)
Set the secondaryKey property: Secondary access key.
-
-
-
Method Detail
-
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
public AccessInformationCreateParameterProperties withEnabled(Boolean enabled)
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.
-
-