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

package com.azure.resourcemanager.logic.implementation;

import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerInner;
import com.azure.resourcemanager.logic.models.ResourceReference;
import com.azure.resourcemanager.logic.models.WorkflowState;
import com.azure.resourcemanager.logic.models.WorkflowStatus;
import com.azure.resourcemanager.logic.models.WorkflowTrigger;
import com.azure.resourcemanager.logic.models.WorkflowTriggerProvisioningState;
import com.azure.resourcemanager.logic.models.WorkflowTriggerRecurrence;
import java.time.OffsetDateTime;

public final class WorkflowTriggerImpl implements WorkflowTrigger {
    private WorkflowTriggerInner innerObject;

    private final com.azure.resourcemanager.logic.LogicManager serviceManager;

    WorkflowTriggerImpl(WorkflowTriggerInner innerObject, com.azure.resourcemanager.logic.LogicManager 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 WorkflowTriggerProvisioningState provisioningState() {
        return this.innerModel().provisioningState();
    }

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

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

    public WorkflowState state() {
        return this.innerModel().state();
    }

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

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

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

    public WorkflowTriggerRecurrence recurrence() {
        return this.innerModel().recurrence();
    }

    public ResourceReference workflow() {
        return this.innerModel().workflow();
    }

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

    private com.azure.resourcemanager.logic.LogicManager manager() {
        return this.serviceManager;
    }
}
