KeyCreationTime Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.KeyCreationTime

Implements

public final class KeyCreationTime
implements JsonSerializable<KeyCreationTime>

Storage account keys creation time.

Constructor Summary

Constructor Description
KeyCreationTime()

Creates an instance of KeyCreationTime class.

Method Summary

Modifier and Type Method and Description
static KeyCreationTime fromJson(JsonReader jsonReader)

Reads an instance of KeyCreationTime from the JsonReader.

OffsetDateTime key1()

Get the key1 property: The key1 property.

OffsetDateTime key2()

Get the key2 property: The key2 property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyCreationTime withKey1(OffsetDateTime key1)

Set the key1 property: The key1 property.

KeyCreationTime withKey2(OffsetDateTime key2)

Set the key2 property: The key2 property.

Methods inherited from java.lang.Object

Constructor Details

KeyCreationTime

public KeyCreationTime()

Creates an instance of KeyCreationTime class.

Method Details

fromJson

public static KeyCreationTime fromJson(JsonReader jsonReader)

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.

key1

public OffsetDateTime key1()

Get the key1 property: The key1 property.

Returns:

the key1 value.

key2

public OffsetDateTime key2()

Get the key2 property: The key2 property.

Returns:

the key2 value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKey1

public KeyCreationTime withKey1(OffsetDateTime key1)

Set the key1 property: The key1 property.

Parameters:

key1 - the key1 value to set.

Returns:

the KeyCreationTime object itself.

withKey2

public KeyCreationTime withKey2(OffsetDateTime key2)

Set the key2 property: The key2 property.

Parameters:

key2 - the key2 value to set.

Returns:

the KeyCreationTime object itself.

Applies to