// 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.RunbookCreateOrUpdatePropertiesInner;
import com.azure.resourcemanager.automation.fluent.models.RunbookDraftInner;
import com.azure.resourcemanager.automation.models.ContentLink;
import com.azure.resourcemanager.automation.models.RunbookCreateOrUpdateProperties;
import com.azure.resourcemanager.automation.models.RunbookDraft;
import com.azure.resourcemanager.automation.models.RunbookTypeEnum;

public final class RunbookCreateOrUpdatePropertiesImpl implements RunbookCreateOrUpdateProperties {
    private RunbookCreateOrUpdatePropertiesInner innerObject;

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

    RunbookCreateOrUpdatePropertiesImpl(
        RunbookCreateOrUpdatePropertiesInner innerObject,
        com.azure.resourcemanager.automation.AutomationManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

    public Boolean logVerbose() {
        return this.innerModel().logVerbose();
    }

    public Boolean logProgress() {
        return this.innerModel().logProgress();
    }

    public RunbookTypeEnum runbookType() {
        return this.innerModel().runbookType();
    }

    public RunbookDraft draft() {
        RunbookDraftInner inner = this.innerModel().draft();
        if (inner != null) {
            return new RunbookDraftImpl(inner, this.manager());
        } else {
            return null;
        }
    }

    public ContentLink publishContentLink() {
        return this.innerModel().publishContentLink();
    }

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

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

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

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