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 Summary
ConstructorsConstructorDescriptionCreates an instance of KeyVaultLastAccessStatusContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Get the code property: Last status code for sync and refresh of secret from key vault.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultLastAccessStatusContractProperties from the JsonReader.message()Get the message property: Details of the error else empty.Get the timestampUtc property: Last time secret was accessed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the code property: Last status code for sync and refresh of secret from key vault.withMessage(String message) Set the message property: Details of the error else empty.withTimestampUtc(OffsetDateTime timestampUtc) Set the timestampUtc property: Last time secret was accessed.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
-
KeyVaultLastAccessStatusContractProperties
public KeyVaultLastAccessStatusContractProperties()Creates an instance of KeyVaultLastAccessStatusContractProperties class.
-
-
Method Details
-
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
Get the message property: Details of the error else empty.- Returns:
- the message value.
-
withMessage
Set the message property: Details of the error else empty.- Parameters:
message- the message value to set.- Returns:
- the KeyVaultLastAccessStatusContractProperties object itself.
-
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
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
- Specified by:
toJsonin interfacecom.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.
-