
com.pulumi.azurenative.testbase.outputs.TestBaseAccountSKUResponse 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.testbase.outputs;
import com.pulumi.azurenative.testbase.outputs.TestBaseAccountSKUCapabilityResponse;
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 TestBaseAccountSKUResponse {
/**
* @return The capabilities of a SKU.
*
*/
private List capabilities;
/**
* @return The locations that the SKU is available.
*
*/
private @Nullable List locations;
/**
* @return The name of the SKU. This is typically a letter + number code, such as B0 or S0.
*
*/
private String name;
/**
* @return The type of resource the SKU applies to.
*
*/
private @Nullable String resourceType;
/**
* @return The tier of this particular SKU.
*
*/
private String tier;
private TestBaseAccountSKUResponse() {}
/**
* @return The capabilities of a SKU.
*
*/
public List capabilities() {
return this.capabilities;
}
/**
* @return The locations that the SKU is available.
*
*/
public List locations() {
return this.locations == null ? List.of() : this.locations;
}
/**
* @return The name of the SKU. This is typically a letter + number code, such as B0 or S0.
*
*/
public String name() {
return this.name;
}
/**
* @return The type of resource the SKU applies to.
*
*/
public Optional resourceType() {
return Optional.ofNullable(this.resourceType);
}
/**
* @return The tier of this particular SKU.
*
*/
public String tier() {
return this.tier;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TestBaseAccountSKUResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List capabilities;
private @Nullable List locations;
private String name;
private @Nullable String resourceType;
private String tier;
public Builder() {}
public Builder(TestBaseAccountSKUResponse defaults) {
Objects.requireNonNull(defaults);
this.capabilities = defaults.capabilities;
this.locations = defaults.locations;
this.name = defaults.name;
this.resourceType = defaults.resourceType;
this.tier = defaults.tier;
}
@CustomType.Setter
public Builder capabilities(List capabilities) {
if (capabilities == null) {
throw new MissingRequiredPropertyException("TestBaseAccountSKUResponse", "capabilities");
}
this.capabilities = capabilities;
return this;
}
public Builder capabilities(TestBaseAccountSKUCapabilityResponse... capabilities) {
return capabilities(List.of(capabilities));
}
@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("TestBaseAccountSKUResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder resourceType(@Nullable String resourceType) {
this.resourceType = resourceType;
return this;
}
@CustomType.Setter
public Builder tier(String tier) {
if (tier == null) {
throw new MissingRequiredPropertyException("TestBaseAccountSKUResponse", "tier");
}
this.tier = tier;
return this;
}
public TestBaseAccountSKUResponse build() {
final var _resultValue = new TestBaseAccountSKUResponse();
_resultValue.capabilities = capabilities;
_resultValue.locations = locations;
_resultValue.name = name;
_resultValue.resourceType = resourceType;
_resultValue.tier = tier;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy