All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.recoveryservicesbackup.models.MabJobTaskDetails Maven / Gradle / Ivy

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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/**
 * MAB workload-specific job task details.
 */
@Fluent
public final class MabJobTaskDetails {
    /*
     * The task display name.
     */
    @JsonProperty(value = "taskId")
    private String taskId;

    /*
     * The start time.
     */
    @JsonProperty(value = "startTime")
    private OffsetDateTime startTime;

    /*
     * The end time.
     */
    @JsonProperty(value = "endTime")
    private OffsetDateTime endTime;

    /*
     * Time elapsed for task.
     */
    @JsonProperty(value = "duration")
    private Duration duration;

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

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

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

    /**
     * Set the taskId property: The task display name.
     * 
     * @param taskId the taskId value to set.
     * @return the MabJobTaskDetails object itself.
     */
    public MabJobTaskDetails withTaskId(String taskId) {
        this.taskId = taskId;
        return this;
    }

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

    /**
     * Set the startTime property: The start time.
     * 
     * @param startTime the startTime value to set.
     * @return the MabJobTaskDetails object itself.
     */
    public MabJobTaskDetails withStartTime(OffsetDateTime startTime) {
        this.startTime = startTime;
        return this;
    }

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

    /**
     * Set the endTime property: The end time.
     * 
     * @param endTime the endTime value to set.
     * @return the MabJobTaskDetails object itself.
     */
    public MabJobTaskDetails withEndTime(OffsetDateTime endTime) {
        this.endTime = endTime;
        return this;
    }

    /**
     * Get the duration property: Time elapsed for task.
     * 
     * @return the duration value.
     */
    public Duration duration() {
        return this.duration;
    }

    /**
     * Set the duration property: Time elapsed for task.
     * 
     * @param duration the duration value to set.
     * @return the MabJobTaskDetails object itself.
     */
    public MabJobTaskDetails withDuration(Duration duration) {
        this.duration = duration;
        return this;
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy