Class KeyCreationTime
java.lang.Object
com.azure.resourcemanager.storage.models.KeyCreationTime
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyCreationTime>
public final class KeyCreationTime
extends Object
implements com.azure.json.JsonSerializable<KeyCreationTime>
Storage account keys creation time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyCreationTimefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KeyCreationTime from the JsonReader.key1()Get the key1 property: The key1 property.key2()Get the key2 property: The key2 property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withKey1(OffsetDateTime key1) Set the key1 property: The key1 property.withKey2(OffsetDateTime key2) Set the key2 property: The key2 property.Methods inherited from class 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
-
KeyCreationTime
public KeyCreationTime()Creates an instance of KeyCreationTime class.
-
-
Method Details
-
key1
-
withKey1
Set the key1 property: The key1 property.- Parameters:
key1- the key1 value to set.- Returns:
- the KeyCreationTime object itself.
-
key2
-
withKey2
Set the key2 property: The key2 property.- Parameters:
key2- the key2 value to set.- Returns:
- the KeyCreationTime 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<KeyCreationTime>- Throws:
IOException
-
fromJson
Reads an instance of KeyCreationTime from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KeyCreationTime 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 KeyCreationTime.
-