StorageTaskPreviewActionCondition Class

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

Implements

public final class StorageTaskPreviewActionCondition
implements JsonSerializable<StorageTaskPreviewActionCondition>

Represents the storage task conditions to be tested for a match with container and blob properties.

Constructor Summary

Constructor Description
StorageTaskPreviewActionCondition()

Creates an instance of StorageTaskPreviewActionCondition class.

Method Summary

Modifier and Type Method and Description
boolean elseBlockExists()

Get the elseBlockExists property: Specify whether the else block is present in the condition.

static StorageTaskPreviewActionCondition fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskPreviewActionCondition from the JsonReader.

StorageTaskPreviewActionIfCondition ifProperty()

Get the ifProperty property: The condition to be tested for a match with container and blob properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageTaskPreviewActionCondition withElseBlockExists(boolean elseBlockExists)

Set the elseBlockExists property: Specify whether the else block is present in the condition.

StorageTaskPreviewActionCondition withIfProperty(StorageTaskPreviewActionIfCondition ifProperty)

Set the ifProperty property: The condition to be tested for a match with container and blob properties.

Methods inherited from java.lang.Object

Constructor Details

StorageTaskPreviewActionCondition

public StorageTaskPreviewActionCondition()

Creates an instance of StorageTaskPreviewActionCondition class.

Method Details

elseBlockExists

public boolean elseBlockExists()

Get the elseBlockExists property: Specify whether the else block is present in the condition.

Returns:

the elseBlockExists value.

fromJson

public static StorageTaskPreviewActionCondition fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskPreviewActionCondition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ifProperty

public StorageTaskPreviewActionIfCondition ifProperty()

Get the ifProperty property: The condition to be tested for a match with container and blob properties.

Returns:

the ifProperty value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withElseBlockExists

public StorageTaskPreviewActionCondition withElseBlockExists(boolean elseBlockExists)

Set the elseBlockExists property: Specify whether the else block is present in the condition.

Parameters:

elseBlockExists - the elseBlockExists value to set.

Returns:

the StorageTaskPreviewActionCondition object itself.

withIfProperty

public StorageTaskPreviewActionCondition withIfProperty(StorageTaskPreviewActionIfCondition ifProperty)

Set the ifProperty property: The condition to be tested for a match with container and blob properties.

Parameters:

ifProperty - the ifProperty value to set.

Returns:

the StorageTaskPreviewActionCondition object itself.

Applies to