StorageTaskPreviewKeyValueProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.storageactions.models.StorageTaskPreviewKeyValueProperties

Implements

public final class StorageTaskPreviewKeyValueProperties
implements JsonSerializable<StorageTaskPreviewKeyValueProperties>

Storage task preview object key value pair properties.

Constructor Summary

Constructor Description
StorageTaskPreviewKeyValueProperties()

Creates an instance of StorageTaskPreviewKeyValueProperties class.

Method Summary

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

Reads an instance of StorageTaskPreviewKeyValueProperties from the JsonReader.

String key()

Get the key property: Represents the key property of the pair.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Represents the value property of the pair.

StorageTaskPreviewKeyValueProperties withKey(String key)

Set the key property: Represents the key property of the pair.

StorageTaskPreviewKeyValueProperties withValue(String value)

Set the value property: Represents the value property of the pair.

Methods inherited from java.lang.Object

Constructor Details

StorageTaskPreviewKeyValueProperties

public StorageTaskPreviewKeyValueProperties()

Creates an instance of StorageTaskPreviewKeyValueProperties class.

Method Details

fromJson

public static StorageTaskPreviewKeyValueProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskPreviewKeyValueProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageTaskPreviewKeyValueProperties 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 StorageTaskPreviewKeyValueProperties.

key

public String key()

Get the key property: Represents the key property of the pair.

Returns:

the key value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Represents the value property of the pair.

Returns:

the value value.

withKey

public StorageTaskPreviewKeyValueProperties withKey(String key)

Set the key property: Represents the key property of the pair.

Parameters:

key - the key value to set.

Returns:

the StorageTaskPreviewKeyValueProperties object itself.

withValue

public StorageTaskPreviewKeyValueProperties withValue(String value)

Set the value property: Represents the value property of the pair.

Parameters:

value - the value value to set.

Returns:

the StorageTaskPreviewKeyValueProperties object itself.

Applies to