Class KeyVaultContractCreateProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.KeyVaultContractCreateProperties
-
- Direct Known Subclasses:
KeyVaultContractProperties
public class KeyVaultContractCreateProperties extends Object
Create keyVault contract details.
-
-
Constructor Summary
Constructors Constructor Description KeyVaultContractCreateProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
identityClientId()
Get the identityClientId property: SystemAssignedIdentity or UserAssignedIdentity Client Id which will be used to access key vault secret.String
secretIdentifier()
Get the secretIdentifier property: Key vault secret identifier for fetching secret.void
validate()
Validates the instance.KeyVaultContractCreateProperties
withIdentityClientId(String identityClientId)
Set the identityClientId property: SystemAssignedIdentity or UserAssignedIdentity Client Id which will be used to access key vault secret.KeyVaultContractCreateProperties
withSecretIdentifier(String secretIdentifier)
Set the secretIdentifier property: Key vault secret identifier for fetching secret.
-
-
-
Method Detail
-
secretIdentifier
public String 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
public KeyVaultContractCreateProperties withSecretIdentifier(String secretIdentifier)
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
public String identityClientId()
Get the identityClientId property: SystemAssignedIdentity or UserAssignedIdentity Client Id which will be used to access key vault secret.- Returns:
- the identityClientId value.
-
withIdentityClientId
public KeyVaultContractCreateProperties withIdentityClientId(String identityClientId)
Set the identityClientId property: SystemAssignedIdentity or UserAssignedIdentity Client Id 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.
-
-