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

package com.azure.resourcemanager.security.implementation;

import com.azure.resourcemanager.security.fluent.models.SecurityTaskInner;
import com.azure.resourcemanager.security.models.SecurityTask;
import com.azure.resourcemanager.security.models.SecurityTaskParameters;
import java.time.OffsetDateTime;

public final class SecurityTaskImpl implements SecurityTask {
    private SecurityTaskInner innerObject;

    private final com.azure.resourcemanager.security.SecurityManager serviceManager;

    SecurityTaskImpl(SecurityTaskInner innerObject, com.azure.resourcemanager.security.SecurityManager 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 String state() {
        return this.innerModel().state();
    }

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

    public SecurityTaskParameters securityTaskParameters() {
        return this.innerModel().securityTaskParameters();
    }

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

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

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

    private com.azure.resourcemanager.security.SecurityManager manager() {
        return this.serviceManager;
    }
}
