StorageTaskPreviewContainerProperties Class

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

Implements

public final class StorageTaskPreviewContainerProperties
implements JsonSerializable<StorageTaskPreviewContainerProperties>

Storage task preview container properties.

Constructor Summary

Constructor Description
StorageTaskPreviewContainerProperties()

Creates an instance of StorageTaskPreviewContainerProperties class.

Method Summary

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

Reads an instance of StorageTaskPreviewContainerProperties from the JsonReader.

List<StorageTaskPreviewKeyValueProperties> metadata()

Get the metadata property: metadata key value pairs to be tested for a match against the provided condition.

String name()

Get the name property: Name of test container.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageTaskPreviewContainerProperties withMetadata(List<StorageTaskPreviewKeyValueProperties> metadata)

Set the metadata property: metadata key value pairs to be tested for a match against the provided condition.

StorageTaskPreviewContainerProperties withName(String name)

Set the name property: Name of test container.

Methods inherited from java.lang.Object

Constructor Details

StorageTaskPreviewContainerProperties

public StorageTaskPreviewContainerProperties()

Creates an instance of StorageTaskPreviewContainerProperties class.

Method Details

fromJson

public static StorageTaskPreviewContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskPreviewContainerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

metadata

public List<StorageTaskPreviewKeyValueProperties> metadata()

Get the metadata property: metadata key value pairs to be tested for a match against the provided condition.

Returns:

the metadata value.

name

public String name()

Get the name property: Name of test container.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMetadata

public StorageTaskPreviewContainerProperties withMetadata(List<StorageTaskPreviewKeyValueProperties> metadata)

Set the metadata property: metadata key value pairs to be tested for a match against the provided condition.

Parameters:

metadata - the metadata value to set.

Returns:

the StorageTaskPreviewContainerProperties object itself.

withName

public StorageTaskPreviewContainerProperties withName(String name)

Set the name property: Name of test container.

Parameters:

name - the name value to set.

Returns:

the StorageTaskPreviewContainerProperties object itself.

Applies to