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 Details

    • KeyVaultContractCreateProperties

      public KeyVaultContractCreateProperties()
      Creates an instance of KeyVaultContractCreateProperties class.
  • Method Details

    • 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: Null for SystemAssignedIdentity or Client Id for UserAssignedIdentity , which will be used to access key vault secret.
      Returns:
      the identityClientId value.
    • withIdentityClientId

      public KeyVaultContractCreateProperties withIdentityClientId(String identityClientId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.