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

com.azure.resourcemanager.automation.implementation.SoftwareUpdateConfigurationMachineRunListResultImpl 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-2019-06.

There is a newer version: 1.0.0
Show 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.SoftwareUpdateConfigurationMachineRunInner;
import com.azure.resourcemanager.automation.fluent.models.SoftwareUpdateConfigurationMachineRunListResultInner;
import com.azure.resourcemanager.automation.models.SoftwareUpdateConfigurationMachineRun;
import com.azure.resourcemanager.automation.models.SoftwareUpdateConfigurationMachineRunListResult;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

public final class SoftwareUpdateConfigurationMachineRunListResultImpl
    implements SoftwareUpdateConfigurationMachineRunListResult {
    private SoftwareUpdateConfigurationMachineRunListResultInner innerObject;

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

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

    public List value() {
        List inner = this.innerModel().value();
        if (inner != null) {
            return Collections
                .unmodifiableList(
                    inner
                        .stream()
                        .map(inner1 -> new SoftwareUpdateConfigurationMachineRunImpl(inner1, this.manager()))
                        .collect(Collectors.toList()));
        } else {
            return Collections.emptyList();
        }
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy