Class KeyVaultContractProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.models.KeyVaultContractCreateProperties
com.azure.resourcemanager.apimanagement.models.KeyVaultContractProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultContractCreateProperties>
KeyVault contract details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KeyVaultContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyVaultContractPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultContractProperties from the JsonReader.Get the lastStatus property: Last time sync and refresh status of secret from key vault.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIdentityClientId(String identityClientId) Set the identityClientId property: Null for SystemAssignedIdentity or Client Id for UserAssignedIdentity , which will be used to access key vault secret.Set the lastStatus property: Last time sync and refresh status of secret from key vault.withSecretIdentifier(String secretIdentifier) Set the secretIdentifier property: Key vault secret identifier for fetching secret.Methods inherited from class com.azure.resourcemanager.apimanagement.models.KeyVaultContractCreateProperties
identityClientId, secretIdentifierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KeyVaultContractProperties
public KeyVaultContractProperties()Creates an instance of KeyVaultContractProperties class.
-
-
Method Details
-
lastStatus
Get the lastStatus property: Last time sync and refresh status of secret from key vault.- Returns:
- the lastStatus value.
-
withLastStatus
public KeyVaultContractProperties withLastStatus(KeyVaultLastAccessStatusContractProperties lastStatus) Set the lastStatus property: Last time sync and refresh status of secret from key vault.- Parameters:
lastStatus- the lastStatus value to set.- Returns:
- the KeyVaultContractProperties object itself.
-
withSecretIdentifier
Set the secretIdentifier property: Key vault secret identifier for fetching secret. Providing a versioned secret will prevent auto-refresh. This requires API Management service to be configured with aka.ms/apimmsi.- Overrides:
withSecretIdentifierin classKeyVaultContractCreateProperties- Parameters:
secretIdentifier- the secretIdentifier value to set.- Returns:
- the KeyVaultContractCreateProperties object itself.
-
withIdentityClientId
Set the identityClientId property: Null for SystemAssignedIdentity or Client Id for UserAssignedIdentity , which will be used to access key vault secret.- Overrides:
withIdentityClientIdin classKeyVaultContractCreateProperties- Parameters:
identityClientId- the identityClientId value to set.- Returns:
- the KeyVaultContractCreateProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classKeyVaultContractCreateProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KeyVaultContractCreateProperties>- Overrides:
toJsonin classKeyVaultContractCreateProperties- Throws:
IOException
-
fromJson
public static KeyVaultContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KeyVaultContractProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KeyVaultContractProperties 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 KeyVaultContractProperties.
-