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>

public final class KeyVaultContractProperties extends KeyVaultContractCreateProperties
KeyVault contract details.
  • 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

      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

      public KeyVaultContractProperties 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.
      Overrides:
      withSecretIdentifier in class KeyVaultContractCreateProperties
      Parameters:
      secretIdentifier - the secretIdentifier value to set.
      Returns:
      the KeyVaultContractCreateProperties object itself.
    • withIdentityClientId

      public KeyVaultContractProperties withIdentityClientId(String identityClientId)
      Set the identityClientId property: Null for SystemAssignedIdentity or Client Id for UserAssignedIdentity , which will be used to access key vault secret.
      Overrides:
      withIdentityClientId in class KeyVaultContractCreateProperties
      Parameters:
      identityClientId - the identityClientId value to set.
      Returns:
      the KeyVaultContractCreateProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class KeyVaultContractCreateProperties
      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>
      Overrides:
      toJson in class KeyVaultContractCreateProperties
      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.