StorageTaskPreviewActionProperties Class

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

Implements

public final class StorageTaskPreviewActionProperties
implements JsonSerializable<StorageTaskPreviewActionProperties>

Storage task preview action properties.

Constructor Summary

Constructor Description
StorageTaskPreviewActionProperties()

Creates an instance of StorageTaskPreviewActionProperties class.

Method Summary

Modifier and Type Method and Description
StorageTaskPreviewActionCondition action()

Get the action property: Preview action to test.

List<StorageTaskPreviewBlobProperties> blobs()

Get the blobs property: Properties of some sample blobs in the container to test for matches with the preview action.

StorageTaskPreviewContainerProperties container()

Get the container property: Properties of a sample container to test for a match with the preview action.

static StorageTaskPreviewActionProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskPreviewActionProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageTaskPreviewActionProperties withAction(StorageTaskPreviewActionCondition action)

Set the action property: Preview action to test.

StorageTaskPreviewActionProperties withBlobs(List<StorageTaskPreviewBlobProperties> blobs)

Set the blobs property: Properties of some sample blobs in the container to test for matches with the preview action.

StorageTaskPreviewActionProperties withContainer(StorageTaskPreviewContainerProperties container)

Set the container property: Properties of a sample container to test for a match with the preview action.

Methods inherited from java.lang.Object

Constructor Details

StorageTaskPreviewActionProperties

public StorageTaskPreviewActionProperties()

Creates an instance of StorageTaskPreviewActionProperties class.

Method Details

action

public StorageTaskPreviewActionCondition action()

Get the action property: Preview action to test.

Returns:

the action value.

blobs

public List<StorageTaskPreviewBlobProperties> blobs()

Get the blobs property: Properties of some sample blobs in the container to test for matches with the preview action.

Returns:

the blobs value.

container

public StorageTaskPreviewContainerProperties container()

Get the container property: Properties of a sample container to test for a match with the preview action.

Returns:

the container value.

fromJson

public static StorageTaskPreviewActionProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskPreviewActionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageTaskPreviewActionProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAction

public StorageTaskPreviewActionProperties withAction(StorageTaskPreviewActionCondition action)

Set the action property: Preview action to test.

Parameters:

action - the action value to set.

Returns:

the StorageTaskPreviewActionProperties object itself.

withBlobs

public StorageTaskPreviewActionProperties withBlobs(List<StorageTaskPreviewBlobProperties> blobs)

Set the blobs property: Properties of some sample blobs in the container to test for matches with the preview action.

Parameters:

blobs - the blobs value to set.

Returns:

the StorageTaskPreviewActionProperties object itself.

withContainer

public StorageTaskPreviewActionProperties withContainer(StorageTaskPreviewContainerProperties container)

Set the container property: Properties of a sample container to test for a match with the preview action.

Parameters:

container - the container value to set.

Returns:

the StorageTaskPreviewActionProperties object itself.

Applies to