Class StorageTaskAssignmentProperties
java.lang.Object
com.azure.resourcemanager.storage.models.StorageTaskAssignmentProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StorageTaskAssignmentProperties>
public final class StorageTaskAssignmentProperties
extends Object
implements com.azure.json.JsonSerializable<StorageTaskAssignmentProperties>
Properties of the storage task assignment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of StorageTaskAssignmentProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Text that describes the purpose of the storage task assignment.booleanenabled()Get the enabled property: Whether the storage task assignment is enabled or not.Get the executionContext property: The storage task assignment execution context.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StorageTaskAssignmentProperties from the JsonReader.Get the provisioningState property: Represents the provisioning state of the storage task assignment.report()Get the report property: The storage task assignment report.Get the runStatus property: Run status of storage task assignment.taskId()Get the taskId property: Id of the corresponding storage task.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: Text that describes the purpose of the storage task assignment.withEnabled(boolean enabled) Set the enabled property: Whether the storage task assignment is enabled or not.withExecutionContext(StorageTaskAssignmentExecutionContext executionContext) Set the executionContext property: The storage task assignment execution context.Set the report property: The storage task assignment report.withRunStatus(StorageTaskReportProperties runStatus) Set the runStatus property: Run status of storage task assignment.withTaskId(String taskId) Set the taskId property: Id of the corresponding storage task.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StorageTaskAssignmentProperties
public StorageTaskAssignmentProperties()Creates an instance of StorageTaskAssignmentProperties class.
-
-
Method Details
-
taskId
Get the taskId property: Id of the corresponding storage task.- Returns:
- the taskId value.
-
withTaskId
Set the taskId property: Id of the corresponding storage task.- Parameters:
taskId- the taskId value to set.- Returns:
- the StorageTaskAssignmentProperties object itself.
-
enabled
public boolean enabled()Get the enabled property: Whether the storage task assignment is enabled or not.- Returns:
- the enabled value.
-
withEnabled
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.
-
description
Get the description property: Text that describes the purpose of the storage task assignment.- Returns:
- the description value.
-
withDescription
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.
-
executionContext
Get the executionContext property: The storage task assignment execution context.- Returns:
- the executionContext value.
-
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.
-
report
Get the report property: The storage task assignment report.- Returns:
- the report value.
-
withReport
Set the report property: The storage task assignment report.- Parameters:
report- the report value to set.- Returns:
- the StorageTaskAssignmentProperties object itself.
-
provisioningState
Get the provisioningState property: Represents the provisioning state of the storage task assignment.- Returns:
- the provisioningState value.
-
runStatus
Get the runStatus property: Run status of storage task assignment.- Returns:
- the runStatus value.
-
withRunStatus
Set the runStatus property: Run status of storage task assignment.- Parameters:
runStatus- the runStatus value to set.- Returns:
- the StorageTaskAssignmentProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StorageTaskAssignmentProperties>- Throws:
IOException
-
fromJson
public static StorageTaskAssignmentProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the StorageTaskAssignmentProperties.
-