// 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.DscNodeInner;
import com.azure.resourcemanager.automation.models.DscNode;
import com.azure.resourcemanager.automation.models.DscNodeExtensionHandlerAssociationProperty;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;

public final class DscNodeImpl implements DscNode {
    private DscNodeInner innerObject;

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

    DscNodeImpl(DscNodeInner 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 OffsetDateTime lastSeen() {
        return this.innerModel().lastSeen();
    }

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

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

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

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

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

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

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

    public List<DscNodeExtensionHandlerAssociationProperty> extensionHandler() {
        List<DscNodeExtensionHandlerAssociationProperty> inner = this.innerModel().extensionHandler();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

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

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

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