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 Summary
ConstructorsConstructorDescriptionCreates an instance of UpsertManagedServerOperationStepWithEstimatesAndDuration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UpsertManagedServerOperationStepWithEstimatesAndDuration from the JsonReader.name()Get the name property: The name property.order()Get the order property: The order property.status()Get the status property: The status property.Get the stepEndTime property: The stepEndTime property.Get the stepStartTime property: The stepStartTime property.Get the timeElapsed property: The timeElapsed property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the name property: The name property.Set the order property: The order property.withStatus(Status status) Set the status property: The status property.withStepEndTime(OffsetDateTime stepEndTime) Set the stepEndTime property: The stepEndTime property.withStepStartTime(OffsetDateTime stepStartTime) Set the stepStartTime property: The stepStartTime property.withTimeElapsed(String timeElapsed) Set the timeElapsed property: The timeElapsed property.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
-
UpsertManagedServerOperationStepWithEstimatesAndDuration
public UpsertManagedServerOperationStepWithEstimatesAndDuration()Creates an instance of UpsertManagedServerOperationStepWithEstimatesAndDuration class.
-
-
Method Details
-
stepStartTime
Get the stepStartTime property: The stepStartTime property.- Returns:
- the stepStartTime value.
-
withStepStartTime
public UpsertManagedServerOperationStepWithEstimatesAndDuration withStepStartTime(OffsetDateTime stepStartTime) Set the stepStartTime property: The stepStartTime property.- Parameters:
stepStartTime- the stepStartTime value to set.- Returns:
- the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
-
stepEndTime
Get the stepEndTime property: The stepEndTime property.- Returns:
- the stepEndTime value.
-
withStepEndTime
public UpsertManagedServerOperationStepWithEstimatesAndDuration withStepEndTime(OffsetDateTime stepEndTime) Set the stepEndTime property: The stepEndTime property.- Parameters:
stepEndTime- the stepEndTime value to set.- Returns:
- the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
-
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
-
withOrder
Set the order property: The order property.- Parameters:
order- the order value to set.- Returns:
- the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
-
name
-
withName
Set the name property: The name property.- Parameters:
name- the name value to set.- Returns:
- the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
-
status
-
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
- Specified by:
toJsonin interfacecom.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.
-