Partilhar via


StorageTaskAssignmentProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.StorageTaskAssignmentProperties

Implements

public final class StorageTaskAssignmentProperties
implements JsonSerializable<StorageTaskAssignmentProperties>

Properties of the storage task assignment.

Constructor Summary

Constructor Description
StorageTaskAssignmentProperties()

Creates an instance of StorageTaskAssignmentProperties class.

Method Summary

Modifier and Type Method and Description
String description()

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

boolean enabled()

Get the enabled property: Whether the storage task assignment is enabled or not.

StorageTaskAssignmentExecutionContext executionContext()

Get the executionContext property: The storage task assignment execution context.

static StorageTaskAssignmentProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskAssignmentProperties from the JsonReader.

ProvisioningState provisioningState()

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

StorageTaskAssignmentReport report()

Get the report property: The storage task assignment report.

StorageTaskReportProperties runStatus()

Get the runStatus property: Run status of storage task assignment.

String taskId()

Get the taskId property: Id of the corresponding storage task.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageTaskAssignmentProperties withDescription(String description)

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

StorageTaskAssignmentProperties withEnabled(boolean enabled)

Set the enabled property: Whether the storage task assignment is enabled or not.

StorageTaskAssignmentProperties withExecutionContext(StorageTaskAssignmentExecutionContext executionContext)

Set the executionContext property: The storage task assignment execution context.

StorageTaskAssignmentProperties withReport(StorageTaskAssignmentReport report)

Set the report property: The storage task assignment report.

StorageTaskAssignmentProperties withRunStatus(StorageTaskReportProperties runStatus)

Set the runStatus property: Run status of storage task assignment.

StorageTaskAssignmentProperties withTaskId(String taskId)

Set the taskId property: Id of the corresponding storage task.

Methods inherited from java.lang.Object

Constructor Details

StorageTaskAssignmentProperties

public StorageTaskAssignmentProperties()

Creates an instance of StorageTaskAssignmentProperties class.

Method Details

description

public String description()

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

Returns:

the description value.

enabled

public boolean enabled()

Get the enabled property: Whether the storage task assignment is enabled or not.

Returns:

the enabled value.

executionContext

public StorageTaskAssignmentExecutionContext executionContext()

Get the executionContext property: The storage task assignment execution context.

Returns:

the executionContext value.

fromJson

public static StorageTaskAssignmentProperties fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskAssignmentProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Returns:

the provisioningState value.

report

public StorageTaskAssignmentReport report()

Get the report property: The storage task assignment report.

Returns:

the report value.

runStatus

public StorageTaskReportProperties runStatus()

Get the runStatus property: Run status of storage task assignment.

Returns:

the runStatus value.

taskId

public String taskId()

Get the taskId property: Id of the corresponding storage task.

Returns:

the taskId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public StorageTaskAssignmentProperties withDescription(String description)

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

Parameters:

description - the description value to set.

Returns:

the StorageTaskAssignmentProperties object itself.

withEnabled

public StorageTaskAssignmentProperties withEnabled(boolean enabled)

Set the enabled property: Whether the storage task assignment is enabled or not.

Parameters:

enabled - the enabled value to set.

Returns:

the StorageTaskAssignmentProperties object itself.

withExecutionContext

public StorageTaskAssignmentProperties withExecutionContext(StorageTaskAssignmentExecutionContext executionContext)

Set the executionContext property: The storage task assignment execution context.

Parameters:

executionContext - the executionContext value to set.

Returns:

the StorageTaskAssignmentProperties object itself.

withReport

public StorageTaskAssignmentProperties withReport(StorageTaskAssignmentReport report)

Set the report property: The storage task assignment report.

Parameters:

report - the report value to set.

Returns:

the StorageTaskAssignmentProperties object itself.

withRunStatus

public StorageTaskAssignmentProperties withRunStatus(StorageTaskReportProperties runStatus)

Set the runStatus property: Run status of storage task assignment.

Parameters:

runStatus - the runStatus value to set.

Returns:

the StorageTaskAssignmentProperties object itself.

withTaskId

public StorageTaskAssignmentProperties withTaskId(String taskId)

Set the taskId property: Id of the corresponding storage task.

Parameters:

taskId - the taskId value to set.

Returns:

the StorageTaskAssignmentProperties object itself.

Applies to