// 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.DscNodeReportInner;
import com.azure.resourcemanager.automation.models.DscMetaConfiguration;
import com.azure.resourcemanager.automation.models.DscNodeReport;
import com.azure.resourcemanager.automation.models.DscReportError;
import com.azure.resourcemanager.automation.models.DscReportResource;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;

public final class DscNodeReportImpl implements DscNodeReport {
    private DscNodeReportInner innerObject;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public DscMetaConfiguration metaConfiguration() {
        return this.innerModel().metaConfiguration();
    }

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

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

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

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

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

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

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