
com.pulumi.azurenative.apimanagement.outputs.ApiManagementServiceSkuPropertiesResponse 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.apimanagement.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class ApiManagementServiceSkuPropertiesResponse {
/**
* @return Capacity of the SKU (number of deployed units of the SKU). For Consumption SKU capacity must be specified as 0.
*
*/
private Integer capacity;
/**
* @return Name of the Sku.
*
*/
private String name;
private ApiManagementServiceSkuPropertiesResponse() {}
/**
* @return Capacity of the SKU (number of deployed units of the SKU). For Consumption SKU capacity must be specified as 0.
*
*/
public Integer capacity() {
return this.capacity;
}
/**
* @return Name of the Sku.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ApiManagementServiceSkuPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer capacity;
private String name;
public Builder() {}
public Builder(ApiManagementServiceSkuPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.capacity = defaults.capacity;
this.name = defaults.name;
}
@CustomType.Setter
public Builder capacity(Integer capacity) {
if (capacity == null) {
throw new MissingRequiredPropertyException("ApiManagementServiceSkuPropertiesResponse", "capacity");
}
this.capacity = capacity;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ApiManagementServiceSkuPropertiesResponse", "name");
}
this.name = name;
return this;
}
public ApiManagementServiceSkuPropertiesResponse build() {
final var _resultValue = new ApiManagementServiceSkuPropertiesResponse();
_resultValue.capacity = capacity;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy