All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.automation.implementation.DscNodeReportImpl Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for Automation Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Automation Client. Package tag package-2022-02-22.

The newest version!
// 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 errors() {
        List inner = this.innerModel().errors();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public List resources() {
        List 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 iPV4Addresses() {
        List inner = this.innerModel().iPV4Addresses();
        if (inner != null) {
            return Collections.unmodifiableList(inner);
        } else {
            return Collections.emptyList();
        }
    }

    public List iPV6Addresses() {
        List 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy