StorageTaskPreviewActionIfCondition Class

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

Implements

public final class StorageTaskPreviewActionIfCondition
implements JsonSerializable<StorageTaskPreviewActionIfCondition>

Represents storage task preview action condition.

Constructor Summary

Constructor Description
StorageTaskPreviewActionIfCondition()

Creates an instance of StorageTaskPreviewActionIfCondition class.

Method Summary

Modifier and Type Method and Description
String condition()

Get the condition property: Storage task condition to bes tested for a match.

static StorageTaskPreviewActionIfCondition fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskPreviewActionIfCondition from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageTaskPreviewActionIfCondition withCondition(String condition)

Set the condition property: Storage task condition to bes tested for a match.

Methods inherited from java.lang.Object

Constructor Details

StorageTaskPreviewActionIfCondition

public StorageTaskPreviewActionIfCondition()

Creates an instance of StorageTaskPreviewActionIfCondition class.

Method Details

condition

public String condition()

Get the condition property: Storage task condition to bes tested for a match.

Returns:

the condition value.

fromJson

public static StorageTaskPreviewActionIfCondition fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskPreviewActionIfCondition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCondition

public StorageTaskPreviewActionIfCondition withCondition(String condition)

Set the condition property: Storage task condition to bes tested for a match.

Parameters:

condition - the condition value to set.

Returns:

the StorageTaskPreviewActionIfCondition object itself.

Applies to