com.azure.resourcemanager.elasticsan.implementation.SkuInformationImpl 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.elasticsan.implementation;
import com.azure.resourcemanager.elasticsan.fluent.models.SkuInformationInner;
import com.azure.resourcemanager.elasticsan.models.SkuCapability;
import com.azure.resourcemanager.elasticsan.models.SkuInformation;
import com.azure.resourcemanager.elasticsan.models.SkuLocationInfo;
import com.azure.resourcemanager.elasticsan.models.SkuName;
import com.azure.resourcemanager.elasticsan.models.SkuTier;
import java.util.Collections;
import java.util.List;
public final class SkuInformationImpl implements SkuInformation {
private SkuInformationInner innerObject;
private final com.azure.resourcemanager.elasticsan.ElasticSanManager serviceManager;
SkuInformationImpl(SkuInformationInner innerObject,
com.azure.resourcemanager.elasticsan.ElasticSanManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
public SkuName name() {
return this.innerModel().name();
}
public SkuTier tier() {
return this.innerModel().tier();
}
public String resourceType() {
return this.innerModel().resourceType();
}
public List locations() {
List inner = this.innerModel().locations();
if (inner != null) {
return Collections.unmodifiableList(inner);
} else {
return Collections.emptyList();
}
}
public List locationInfo() {
List inner = this.innerModel().locationInfo();
if (inner != null) {
return Collections.unmodifiableList(inner);
} else {
return Collections.emptyList();
}
}
public List capabilities() {
List inner = this.innerModel().capabilities();
if (inner != null) {
return Collections.unmodifiableList(inner);
} else {
return Collections.emptyList();
}
}
public SkuInformationInner innerModel() {
return this.innerObject;
}
private com.azure.resourcemanager.elasticsan.ElasticSanManager manager() {
return this.serviceManager;
}
}