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

package com.azure.resourcemanager.iothub.implementation;

import com.azure.resourcemanager.iothub.fluent.models.JobResponseInner;
import com.azure.resourcemanager.iothub.models.JobResponse;
import com.azure.resourcemanager.iothub.models.JobStatus;
import com.azure.resourcemanager.iothub.models.JobType;
import java.time.OffsetDateTime;

public final class JobResponseImpl implements JobResponse {
    private JobResponseInner innerObject;

    private final com.azure.resourcemanager.iothub.IotHubManager serviceManager;

    JobResponseImpl(JobResponseInner innerObject, com.azure.resourcemanager.iothub.IotHubManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

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

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

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

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

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

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

    private com.azure.resourcemanager.iothub.IotHubManager manager() {
        return this.serviceManager;
    }
}
