Class OperationResultProperties

java.lang.Object
com.azure.resourcemanager.appservice.models.OperationResultProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationResultProperties>
Direct Known Subclasses:
OperationResult

public class OperationResultProperties extends Object implements com.azure.json.JsonSerializable<OperationResultProperties>
The run operation result properties.
  • Constructor Details

    • OperationResultProperties

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

    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The start time of the workflow scope repetition.
      Returns:
      the startTime value.
    • withStartTime

      public OperationResultProperties withStartTime(OffsetDateTime startTime)
      Set the startTime property: The start time of the workflow scope repetition.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the OperationResultProperties object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: The end time of the workflow scope repetition.
      Returns:
      the endTime value.
    • withEndTime

      public OperationResultProperties withEndTime(OffsetDateTime endTime)
      Set the endTime property: The end time of the workflow scope repetition.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the OperationResultProperties object itself.
    • correlation

      public RunActionCorrelation correlation()
      Get the correlation property: The correlation properties.
      Returns:
      the correlation value.
    • withCorrelation

      public OperationResultProperties withCorrelation(RunActionCorrelation correlation)
      Set the correlation property: The correlation properties.
      Parameters:
      correlation - the correlation value to set.
      Returns:
      the OperationResultProperties object itself.
    • status

      public WorkflowStatus status()
      Get the status property: The status of the workflow scope repetition.
      Returns:
      the status value.
    • withStatus

      public OperationResultProperties withStatus(WorkflowStatus status)
      Set the status property: The status of the workflow scope repetition.
      Parameters:
      status - the status value to set.
      Returns:
      the OperationResultProperties object itself.
    • code

      public String code()
      Get the code property: The workflow scope repetition code.
      Returns:
      the code value.
    • withCode

      public OperationResultProperties withCode(String code)
      Set the code property: The workflow scope repetition code.
      Parameters:
      code - the code value to set.
      Returns:
      the OperationResultProperties object itself.
    • error

      public Object error()
      Get the error property: Anything.
      Returns:
      the error value.
    • withError

      public OperationResultProperties withError(Object error)
      Set the error property: Anything.
      Parameters:
      error - the error value to set.
      Returns:
      the OperationResultProperties 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<OperationResultProperties>
      Throws:
      IOException
    • fromJson

      public static OperationResultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OperationResultProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OperationResultProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the OperationResultProperties.