Class KeyVaultContractCreateProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.models.KeyVaultContractCreateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultContractCreateProperties>
- Direct Known Subclasses:
KeyVaultContractProperties
public class KeyVaultContractCreateProperties
extends Object
implements com.azure.json.JsonSerializable<KeyVaultContractCreateProperties>
Create keyVault contract details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KeyVaultContractCreateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultContractCreateProperties from the JsonReader.Get the identityClientId property: Null for SystemAssignedIdentity or Client Id for UserAssignedIdentity , which will be used to access key vault secret.Get the secretIdentifier property: Key vault secret identifier for fetching secret.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.withSecretIdentifier(String secretIdentifier) Set the secretIdentifier property: Key vault secret identifier for fetching secret.Methods 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
-
KeyVaultContractCreateProperties
public KeyVaultContractCreateProperties()Creates an instance of KeyVaultContractCreateProperties class.
-
-
Method Details
-
secretIdentifier
Get 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.- Returns:
- the secretIdentifier value.
-
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.- Parameters:
secretIdentifier- the secretIdentifier value to set.- Returns:
- the KeyVaultContractCreateProperties object itself.
-
identityClientId
Get the identityClientId property: Null for SystemAssignedIdentity or Client Id for UserAssignedIdentity , which will be used to access key vault secret.- Returns:
- the identityClientId value.
-
withIdentityClientId
Set the identityClientId property: Null for SystemAssignedIdentity or Client Id for UserAssignedIdentity , which will be used to access key vault secret.- Parameters:
identityClientId- the identityClientId value to set.- Returns:
- the KeyVaultContractCreateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KeyVaultContractCreateProperties>- Throws:
IOException
-
fromJson
public static KeyVaultContractCreateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KeyVaultContractCreateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KeyVaultContractCreateProperties 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 KeyVaultContractCreateProperties.
-