Class UpsertManagedServerOperationStepWithEstimatesAndDuration

java.lang.Object
com.azure.resourcemanager.sql.models.UpsertManagedServerOperationStepWithEstimatesAndDuration
All Implemented Interfaces:
com.azure.json.JsonSerializable<UpsertManagedServerOperationStepWithEstimatesAndDuration>

public final class UpsertManagedServerOperationStepWithEstimatesAndDuration extends Object implements com.azure.json.JsonSerializable<UpsertManagedServerOperationStepWithEstimatesAndDuration>
The UpsertManagedServerOperationStepWithEstimatesAndDuration model.
  • Constructor Details

    • UpsertManagedServerOperationStepWithEstimatesAndDuration

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

    • stepStartTime

      public OffsetDateTime stepStartTime()
      Get the stepStartTime property: The stepStartTime property.
      Returns:
      the stepStartTime value.
    • withStepStartTime

      Set the stepStartTime property: The stepStartTime property.
      Parameters:
      stepStartTime - the stepStartTime value to set.
      Returns:
      the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
    • stepEndTime

      public OffsetDateTime stepEndTime()
      Get the stepEndTime property: The stepEndTime property.
      Returns:
      the stepEndTime value.
    • withStepEndTime

      Set the stepEndTime property: The stepEndTime property.
      Parameters:
      stepEndTime - the stepEndTime value to set.
      Returns:
      the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
    • timeElapsed

      public String timeElapsed()
      Get the timeElapsed property: The timeElapsed property.
      Returns:
      the timeElapsed value.
    • withTimeElapsed

      Set the timeElapsed property: The timeElapsed property.
      Parameters:
      timeElapsed - the timeElapsed value to set.
      Returns:
      the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
    • order

      public Integer order()
      Get the order property: The order property.
      Returns:
      the order value.
    • withOrder

      Set the order property: The order property.
      Parameters:
      order - the order value to set.
      Returns:
      the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
    • name

      public String name()
      Get the name property: The name property.
      Returns:
      the name value.
    • withName

      Set the name property: The name property.
      Parameters:
      name - the name value to set.
      Returns:
      the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
    • status

      public Status status()
      Get the status property: The status property.
      Returns:
      the status value.
    • withStatus

      Set the status property: The status property.
      Parameters:
      status - the status value to set.
      Returns:
      the UpsertManagedServerOperationStepWithEstimatesAndDuration 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<UpsertManagedServerOperationStepWithEstimatesAndDuration>
      Throws:
      IOException
    • fromJson

      public static UpsertManagedServerOperationStepWithEstimatesAndDuration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UpsertManagedServerOperationStepWithEstimatesAndDuration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UpsertManagedServerOperationStepWithEstimatesAndDuration 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 UpsertManagedServerOperationStepWithEstimatesAndDuration.