StorageTaskProperties Class
- java.
lang. Object - com.
azure. resourcemanager. storageactions. models. StorageTaskProperties
- com.
Implements
public final class StorageTaskProperties
implements JsonSerializable<StorageTaskProperties>
Properties of the storage task.
Constructor Summary
| Constructor | Description |
|---|---|
| StorageTaskProperties() |
Creates an instance of Storage |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Storage |
action()
Get the action property: The storage task action that is executed. |
|
Offset |
creationTimeInUtc()
Get the creation |
| 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
Storage |
fromJson(JsonReader jsonReader)
Reads an instance of Storage |
|
Provisioning |
provisioningState()
Get the provisioning |
| Long |
taskVersion()
Get the task |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Storage |
withAction(StorageTaskAction action)
Set the action property: The storage task action that is executed. |
|
Storage |
withDescription(String description)
Set the description property: Text that describes the purpose of the storage task. |
|
Storage |
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:
creationTimeInUtc
public OffsetDateTime creationTimeInUtc()
Get the creationTimeInUtc property: The creation date and time of the storage task in UTC.
Returns:
description
public String description()
Get the description property: Text that describes the purpose of the storage task.
Returns:
enabled
public boolean enabled()
Get the enabled property: Storage Task is enabled when set to true and disabled when set to false.
Returns:
fromJson
public static StorageTaskProperties fromJson(JsonReader jsonReader)
Reads an instance of StorageTaskProperties from the JsonReader.
Parameters:
Returns:
Throws:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Represents the provisioning state of the storage task.
Returns:
taskVersion
public Long taskVersion()
Get the taskVersion property: Storage task version.
Returns:
toJson
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:
Returns:
withDescription
public StorageTaskProperties withDescription(String description)
Set the description property: Text that describes the purpose of the storage task.
Parameters:
Returns:
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:
Returns: