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

package com.azure.resourcemanager.databoxedge.implementation;

import com.azure.resourcemanager.databoxedge.fluent.models.JobInner;
import com.azure.resourcemanager.databoxedge.models.Job;
import com.azure.resourcemanager.databoxedge.models.JobErrorDetails;
import com.azure.resourcemanager.databoxedge.models.JobStatus;
import com.azure.resourcemanager.databoxedge.models.JobType;
import com.azure.resourcemanager.databoxedge.models.UpdateDownloadProgress;
import com.azure.resourcemanager.databoxedge.models.UpdateInstallProgress;
import com.azure.resourcemanager.databoxedge.models.UpdateOperationStage;
import java.time.OffsetDateTime;

public final class JobImpl implements Job {
    private JobInner innerObject;

    private final com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager;

    JobImpl(JobInner innerObject, com.azure.resourcemanager.databoxedge.DataBoxEdgeManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public String id() {
        return this.innerModel().id();
    }

    public String name() {
        return this.innerModel().name();
    }

    public String type() {
        return this.innerModel().type();
    }

    public JobStatus status() {
        return this.innerModel().status();
    }

    public OffsetDateTime startTime() {
        return this.innerModel().startTime();
    }

    public OffsetDateTime endTime() {
        return this.innerModel().endTime();
    }

    public Integer percentComplete() {
        return this.innerModel().percentComplete();
    }

    public JobErrorDetails error() {
        return this.innerModel().error();
    }

    public JobType jobType() {
        return this.innerModel().jobType();
    }

    public UpdateOperationStage currentStage() {
        return this.innerModel().currentStage();
    }

    public UpdateDownloadProgress downloadProgress() {
        return this.innerModel().downloadProgress();
    }

    public UpdateInstallProgress installProgress() {
        return this.innerModel().installProgress();
    }

    public Integer totalRefreshErrors() {
        return this.innerModel().totalRefreshErrors();
    }

    public String errorManifestFile() {
        return this.innerModel().errorManifestFile();
    }

    public String refreshedEntityId() {
        return this.innerModel().refreshedEntityId();
    }

    public String folder() {
        return this.innerModel().folder();
    }

    public JobInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager() {
        return this.serviceManager;
    }
}
