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

com.azure.resourcemanager.elastic.implementation.ElasticVersionsListResponseImpl Maven / Gradle / Ivy

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

package com.azure.resourcemanager.elastic.implementation;

import com.azure.resourcemanager.elastic.fluent.models.ElasticVersionsListResponseInner;
import com.azure.resourcemanager.elastic.models.ElasticVersionsListResponse;
import java.util.Collections;
import java.util.List;

public final class ElasticVersionsListResponseImpl implements ElasticVersionsListResponse {
    private ElasticVersionsListResponseInner innerObject;

    private final com.azure.resourcemanager.elastic.ElasticManager serviceManager;

    ElasticVersionsListResponseImpl(
        ElasticVersionsListResponseInner innerObject, com.azure.resourcemanager.elastic.ElasticManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
    }

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

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

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

    private com.azure.resourcemanager.elastic.ElasticManager manager() {
        return this.serviceManager;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy