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 Details

    • StorageTaskAssignmentProperties

      public StorageTaskAssignmentProperties()
      Creates an instance of StorageTaskAssignmentProperties class.
  • Method Details

    • taskId

      public String taskId()
      Get the taskId property: Id of the corresponding storage task.
      Returns:
      the taskId value.
    • 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.
    • enabled

      public boolean enabled()
      Get the enabled property: Whether the storage task assignment is enabled or not.
      Returns:
      the enabled value.
    • 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.
    • description

      public String description()
      Get the description property: Text that describes the purpose of the storage task assignment.
      Returns:
      the description value.
    • 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.
    • executionContext

      public StorageTaskAssignmentExecutionContext 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

      public StorageTaskAssignmentReport 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

      public ProvisioningState provisioningState()
      Get the provisioningState property: Represents the provisioning state of the storage task assignment.
      Returns:
      the provisioningState value.
    • runStatus

      public StorageTaskReportProperties 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.