StorageTaskPreviewBlobProperties Class

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

Implements

public final class StorageTaskPreviewBlobProperties
implements JsonSerializable<StorageTaskPreviewBlobProperties>

Storage task preview container properties.

Constructor Summary

Constructor Description
StorageTaskPreviewBlobProperties()

Creates an instance of StorageTaskPreviewBlobProperties class.

Method Summary

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

Reads an instance of StorageTaskPreviewBlobProperties from the JsonReader.

MatchedBlockName matchedBlock()

Get the matchedBlock property: Represents the condition block name that matched blob properties.

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 blob.

List<StorageTaskPreviewKeyValueProperties> properties()

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

List<StorageTaskPreviewKeyValueProperties> tags()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageTaskPreviewBlobProperties withMetadata(List<StorageTaskPreviewKeyValueProperties> metadata)

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

StorageTaskPreviewBlobProperties withName(String name)

Set the name property: Name of test blob.

StorageTaskPreviewBlobProperties withProperties(List<StorageTaskPreviewKeyValueProperties> properties)

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

StorageTaskPreviewBlobProperties withTags(List<StorageTaskPreviewKeyValueProperties> tags)

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

Methods inherited from java.lang.Object

Constructor Details

StorageTaskPreviewBlobProperties

public StorageTaskPreviewBlobProperties()

Creates an instance of StorageTaskPreviewBlobProperties class.

Method Details

fromJson

public static StorageTaskPreviewBlobProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskPreviewBlobProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

matchedBlock

public MatchedBlockName matchedBlock()

Get the matchedBlock property: Represents the condition block name that matched blob properties.

Returns:

the matchedBlock value.

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 blob.

Returns:

the name value.

properties

public List<StorageTaskPreviewKeyValueProperties> properties()

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

Returns:

the properties value.

tags

public List<StorageTaskPreviewKeyValueProperties> tags()

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

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMetadata

public StorageTaskPreviewBlobProperties 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 StorageTaskPreviewBlobProperties object itself.

withName

public StorageTaskPreviewBlobProperties withName(String name)

Set the name property: Name of test blob.

Parameters:

name - the name value to set.

Returns:

the StorageTaskPreviewBlobProperties object itself.

withProperties

public StorageTaskPreviewBlobProperties withProperties(List<StorageTaskPreviewKeyValueProperties> properties)

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

Parameters:

properties - the properties value to set.

Returns:

the StorageTaskPreviewBlobProperties object itself.

withTags

public StorageTaskPreviewBlobProperties withTags(List<StorageTaskPreviewKeyValueProperties> tags)

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

Parameters:

tags - the tags value to set.

Returns:

the StorageTaskPreviewBlobProperties object itself.

Applies to