com.pulumi.azurenative.providerhub.outputs.SkuCostResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SkuCostResponse {
private @Nullable String extendedUnit;
private String meterId;
private @Nullable Integer quantity;
private SkuCostResponse() {}
public Optional extendedUnit() {
return Optional.ofNullable(this.extendedUnit);
}
public String meterId() {
return this.meterId;
}
public Optional quantity() {
return Optional.ofNullable(this.quantity);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SkuCostResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String extendedUnit;
private String meterId;
private @Nullable Integer quantity;
public Builder() {}
public Builder(SkuCostResponse defaults) {
Objects.requireNonNull(defaults);
this.extendedUnit = defaults.extendedUnit;
this.meterId = defaults.meterId;
this.quantity = defaults.quantity;
}
@CustomType.Setter
public Builder extendedUnit(@Nullable String extendedUnit) {
this.extendedUnit = extendedUnit;
return this;
}
@CustomType.Setter
public Builder meterId(String meterId) {
if (meterId == null) {
throw new MissingRequiredPropertyException("SkuCostResponse", "meterId");
}
this.meterId = meterId;
return this;
}
@CustomType.Setter
public Builder quantity(@Nullable Integer quantity) {
this.quantity = quantity;
return this;
}
public SkuCostResponse build() {
final var _resultValue = new SkuCostResponse();
_resultValue.extendedUnit = extendedUnit;
_resultValue.meterId = meterId;
_resultValue.quantity = quantity;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy