Class KeyVaultLastAccessStatusContractProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.models.KeyVaultLastAccessStatusContractProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultLastAccessStatusContractProperties>

public final class KeyVaultLastAccessStatusContractProperties extends Object implements com.azure.json.JsonSerializable<KeyVaultLastAccessStatusContractProperties>
Issue contract Update Properties.
  • Constructor Details

    • KeyVaultLastAccessStatusContractProperties

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

    • code

      public String code()
      Get the code property: Last status code for sync and refresh of secret from key vault.
      Returns:
      the code value.
    • withCode

      Set the code property: Last status code for sync and refresh of secret from key vault.
      Parameters:
      code - the code value to set.
      Returns:
      the KeyVaultLastAccessStatusContractProperties object itself.
    • message

      public String message()
      Get the message property: Details of the error else empty.
      Returns:
      the message value.
    • withMessage

      public KeyVaultLastAccessStatusContractProperties withMessage(String message)
      Set the message property: Details of the error else empty.
      Parameters:
      message - the message value to set.
      Returns:
      the KeyVaultLastAccessStatusContractProperties object itself.
    • timestampUtc

      public OffsetDateTime timestampUtc()
      Get the timestampUtc property: Last time secret was accessed. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
      Returns:
      the timestampUtc value.
    • withTimestampUtc

      public KeyVaultLastAccessStatusContractProperties withTimestampUtc(OffsetDateTime timestampUtc)
      Set the timestampUtc property: Last time secret was accessed. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
      Parameters:
      timestampUtc - the timestampUtc value to set.
      Returns:
      the KeyVaultLastAccessStatusContractProperties 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<KeyVaultLastAccessStatusContractProperties>
      Throws:
      IOException
    • fromJson

      public static KeyVaultLastAccessStatusContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of KeyVaultLastAccessStatusContractProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of KeyVaultLastAccessStatusContractProperties 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 KeyVaultLastAccessStatusContractProperties.