StorageTaskProperties Class

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

Implements

public final class StorageTaskProperties
implements JsonSerializable<StorageTaskProperties>

Properties of the storage task.

Constructor Summary

Constructor Description
StorageTaskProperties()

Creates an instance of StorageTaskProperties class.

Method Summary

Modifier and Type Method and Description
StorageTaskAction action()

Get the action property: The storage task action that is executed.

OffsetDateTime creationTimeInUtc()

Get the creationTimeInUtc property: The creation date and time of the storage task in UTC.

String description()

Get the description property: Text that describes the purpose of the storage task.

boolean enabled()

Get the enabled property: Storage Task is enabled when set to true and disabled when set to false.

static StorageTaskProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: Represents the provisioning state of the storage task.

Long taskVersion()

Get the taskVersion property: Storage task version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageTaskProperties withAction(StorageTaskAction action)

Set the action property: The storage task action that is executed.

StorageTaskProperties withDescription(String description)

Set the description property: Text that describes the purpose of the storage task.

StorageTaskProperties withEnabled(boolean enabled)

Set the enabled property: Storage Task is enabled when set to true and disabled when set to false.

Methods inherited from java.lang.Object

Constructor Details

StorageTaskProperties

public StorageTaskProperties()

Creates an instance of StorageTaskProperties class.

Method Details

action

public StorageTaskAction action()

Get the action property: The storage task action that is executed.

Returns:

the action value.

creationTimeInUtc

public OffsetDateTime creationTimeInUtc()

Get the creationTimeInUtc property: The creation date and time of the storage task in UTC.

Returns:

the creationTimeInUtc value.

description

public String description()

Get the description property: Text that describes the purpose of the storage task.

Returns:

the description value.

enabled

public boolean enabled()

Get the enabled property: Storage Task is enabled when set to true and disabled when set to false.

Returns:

the enabled value.

fromJson

public static StorageTaskProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Represents the provisioning state of the storage task.

Returns:

the provisioningState value.

taskVersion

public Long taskVersion()

Get the taskVersion property: Storage task version.

Returns:

the taskVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAction

public StorageTaskProperties withAction(StorageTaskAction action)

Set the action property: The storage task action that is executed.

Parameters:

action - the action value to set.

Returns:

the StorageTaskProperties object itself.

withDescription

public StorageTaskProperties withDescription(String description)

Set the description property: Text that describes the purpose of the storage task.

Parameters:

description - the description value to set.

Returns:

the StorageTaskProperties object itself.

withEnabled

public StorageTaskProperties withEnabled(boolean enabled)

Set the enabled property: Storage Task is enabled when set to true and disabled when set to false.

Parameters:

enabled - the enabled value to set.

Returns:

the StorageTaskProperties object itself.

Applies to