// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.sql.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** The UpsertManagedServerOperationStepWithEstimatesAndDuration model. */
@Fluent
public final class UpsertManagedServerOperationStepWithEstimatesAndDuration {
    /*
     * The stepStartTime property.
     */
    @JsonProperty(value = "stepStartTime")
    private OffsetDateTime stepStartTime;

    /*
     * The stepEndTime property.
     */
    @JsonProperty(value = "stepEndTime")
    private OffsetDateTime stepEndTime;

    /*
     * The timeElapsed property.
     */
    @JsonProperty(value = "timeElapsed")
    private String timeElapsed;

    /*
     * The order property.
     */
    @JsonProperty(value = "order")
    private Integer order;

    /*
     * The name property.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * The status property.
     */
    @JsonProperty(value = "status")
    private Status status;

    /** Creates an instance of UpsertManagedServerOperationStepWithEstimatesAndDuration class. */
    public UpsertManagedServerOperationStepWithEstimatesAndDuration() {
    }

    /**
     * Get the stepStartTime property: The stepStartTime property.
     *
     * @return the stepStartTime value.
     */
    public OffsetDateTime stepStartTime() {
        return this.stepStartTime;
    }

    /**
     * Set the stepStartTime property: The stepStartTime property.
     *
     * @param stepStartTime the stepStartTime value to set.
     * @return the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
     */
    public UpsertManagedServerOperationStepWithEstimatesAndDuration withStepStartTime(OffsetDateTime stepStartTime) {
        this.stepStartTime = stepStartTime;
        return this;
    }

    /**
     * Get the stepEndTime property: The stepEndTime property.
     *
     * @return the stepEndTime value.
     */
    public OffsetDateTime stepEndTime() {
        return this.stepEndTime;
    }

    /**
     * Set the stepEndTime property: The stepEndTime property.
     *
     * @param stepEndTime the stepEndTime value to set.
     * @return the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
     */
    public UpsertManagedServerOperationStepWithEstimatesAndDuration withStepEndTime(OffsetDateTime stepEndTime) {
        this.stepEndTime = stepEndTime;
        return this;
    }

    /**
     * Get the timeElapsed property: The timeElapsed property.
     *
     * @return the timeElapsed value.
     */
    public String timeElapsed() {
        return this.timeElapsed;
    }

    /**
     * Set the timeElapsed property: The timeElapsed property.
     *
     * @param timeElapsed the timeElapsed value to set.
     * @return the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
     */
    public UpsertManagedServerOperationStepWithEstimatesAndDuration withTimeElapsed(String timeElapsed) {
        this.timeElapsed = timeElapsed;
        return this;
    }

    /**
     * Get the order property: The order property.
     *
     * @return the order value.
     */
    public Integer order() {
        return this.order;
    }

    /**
     * Set the order property: The order property.
     *
     * @param order the order value to set.
     * @return the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
     */
    public UpsertManagedServerOperationStepWithEstimatesAndDuration withOrder(Integer order) {
        this.order = order;
        return this;
    }

    /**
     * Get the name property: The name property.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: The name property.
     *
     * @param name the name value to set.
     * @return the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
     */
    public UpsertManagedServerOperationStepWithEstimatesAndDuration withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the status property: The status property.
     *
     * @return the status value.
     */
    public Status status() {
        return this.status;
    }

    /**
     * Set the status property: The status property.
     *
     * @param status the status value to set.
     * @return the UpsertManagedServerOperationStepWithEstimatesAndDuration object itself.
     */
    public UpsertManagedServerOperationStepWithEstimatesAndDuration withStatus(Status status) {
        this.status = status;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
