
com.pulumi.azurenative.providerhub.outputs.SkuSettingResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.providerhub.outputs;
import com.pulumi.azurenative.providerhub.outputs.SkuCapabilityResponse;
import com.pulumi.azurenative.providerhub.outputs.SkuCostResponse;
import com.pulumi.azurenative.providerhub.outputs.SkuLocationInfoResponse;
import com.pulumi.azurenative.providerhub.outputs.SkuSettingResponseCapacity;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SkuSettingResponse {
private @Nullable List capabilities;
private @Nullable SkuSettingResponseCapacity capacity;
private @Nullable List costs;
private @Nullable String family;
private @Nullable String kind;
private @Nullable List locationInfo;
private @Nullable List locations;
private String name;
private @Nullable List requiredFeatures;
private @Nullable List requiredQuotaIds;
private @Nullable String size;
private @Nullable String tier;
private SkuSettingResponse() {}
public List capabilities() {
return this.capabilities == null ? List.of() : this.capabilities;
}
public Optional capacity() {
return Optional.ofNullable(this.capacity);
}
public List costs() {
return this.costs == null ? List.of() : this.costs;
}
public Optional family() {
return Optional.ofNullable(this.family);
}
public Optional kind() {
return Optional.ofNullable(this.kind);
}
public List locationInfo() {
return this.locationInfo == null ? List.of() : this.locationInfo;
}
public List locations() {
return this.locations == null ? List.of() : this.locations;
}
public String name() {
return this.name;
}
public List requiredFeatures() {
return this.requiredFeatures == null ? List.of() : this.requiredFeatures;
}
public List requiredQuotaIds() {
return this.requiredQuotaIds == null ? List.of() : this.requiredQuotaIds;
}
public Optional size() {
return Optional.ofNullable(this.size);
}
public Optional tier() {
return Optional.ofNullable(this.tier);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SkuSettingResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List capabilities;
private @Nullable SkuSettingResponseCapacity capacity;
private @Nullable List costs;
private @Nullable String family;
private @Nullable String kind;
private @Nullable List locationInfo;
private @Nullable List locations;
private String name;
private @Nullable List requiredFeatures;
private @Nullable List requiredQuotaIds;
private @Nullable String size;
private @Nullable String tier;
public Builder() {}
public Builder(SkuSettingResponse defaults) {
Objects.requireNonNull(defaults);
this.capabilities = defaults.capabilities;
this.capacity = defaults.capacity;
this.costs = defaults.costs;
this.family = defaults.family;
this.kind = defaults.kind;
this.locationInfo = defaults.locationInfo;
this.locations = defaults.locations;
this.name = defaults.name;
this.requiredFeatures = defaults.requiredFeatures;
this.requiredQuotaIds = defaults.requiredQuotaIds;
this.size = defaults.size;
this.tier = defaults.tier;
}
@CustomType.Setter
public Builder capabilities(@Nullable List capabilities) {
this.capabilities = capabilities;
return this;
}
public Builder capabilities(SkuCapabilityResponse... capabilities) {
return capabilities(List.of(capabilities));
}
@CustomType.Setter
public Builder capacity(@Nullable SkuSettingResponseCapacity capacity) {
this.capacity = capacity;
return this;
}
@CustomType.Setter
public Builder costs(@Nullable List costs) {
this.costs = costs;
return this;
}
public Builder costs(SkuCostResponse... costs) {
return costs(List.of(costs));
}
@CustomType.Setter
public Builder family(@Nullable String family) {
this.family = family;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder locationInfo(@Nullable List locationInfo) {
this.locationInfo = locationInfo;
return this;
}
public Builder locationInfo(SkuLocationInfoResponse... locationInfo) {
return locationInfo(List.of(locationInfo));
}
@CustomType.Setter
public Builder locations(@Nullable List locations) {
this.locations = locations;
return this;
}
public Builder locations(String... locations) {
return locations(List.of(locations));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("SkuSettingResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder requiredFeatures(@Nullable List requiredFeatures) {
this.requiredFeatures = requiredFeatures;
return this;
}
public Builder requiredFeatures(String... requiredFeatures) {
return requiredFeatures(List.of(requiredFeatures));
}
@CustomType.Setter
public Builder requiredQuotaIds(@Nullable List requiredQuotaIds) {
this.requiredQuotaIds = requiredQuotaIds;
return this;
}
public Builder requiredQuotaIds(String... requiredQuotaIds) {
return requiredQuotaIds(List.of(requiredQuotaIds));
}
@CustomType.Setter
public Builder size(@Nullable String size) {
this.size = size;
return this;
}
@CustomType.Setter
public Builder tier(@Nullable String tier) {
this.tier = tier;
return this;
}
public SkuSettingResponse build() {
final var _resultValue = new SkuSettingResponse();
_resultValue.capabilities = capabilities;
_resultValue.capacity = capacity;
_resultValue.costs = costs;
_resultValue.family = family;
_resultValue.kind = kind;
_resultValue.locationInfo = locationInfo;
_resultValue.locations = locations;
_resultValue.name = name;
_resultValue.requiredFeatures = requiredFeatures;
_resultValue.requiredQuotaIds = requiredQuotaIds;
_resultValue.size = size;
_resultValue.tier = tier;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy