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

package com.azure.resourcemanager.automation.implementation;

import com.azure.resourcemanager.automation.fluent.models.JobCollectionItemInner;
import com.azure.resourcemanager.automation.models.JobCollectionItem;
import com.azure.resourcemanager.automation.models.JobStatus;
import com.azure.resourcemanager.automation.models.RunbookAssociationProperty;
import java.time.OffsetDateTime;
import java.util.UUID;

public final class JobCollectionItemImpl implements JobCollectionItem {
    private JobCollectionItemInner innerObject;

    private final com.azure.resourcemanager.automation.AutomationManager serviceManager;

    JobCollectionItemImpl(
        JobCollectionItemInner innerObject, com.azure.resourcemanager.automation.AutomationManager 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 RunbookAssociationProperty runbook() {
        return this.innerModel().runbook();
    }

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

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

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

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

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

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

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

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

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

    private com.azure.resourcemanager.automation.AutomationManager manager() {
        return this.serviceManager;
    }
}
