com.pulumi.azure.appservice.outputs.PlanSku Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.appservice.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 PlanSku {
/**
* @return Specifies the number of workers associated with this App Service Plan.
*
*/
private @Nullable Integer capacity;
/**
* @return Specifies the plan's instance size.
*
*/
private String size;
/**
* @return Specifies the plan's pricing tier.
*
*/
private String tier;
private PlanSku() {}
/**
* @return Specifies the number of workers associated with this App Service Plan.
*
*/
public Optional capacity() {
return Optional.ofNullable(this.capacity);
}
/**
* @return Specifies the plan's instance size.
*
*/
public String size() {
return this.size;
}
/**
* @return Specifies the plan's pricing tier.
*
*/
public String tier() {
return this.tier;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PlanSku defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer capacity;
private String size;
private String tier;
public Builder() {}
public Builder(PlanSku defaults) {
Objects.requireNonNull(defaults);
this.capacity = defaults.capacity;
this.size = defaults.size;
this.tier = defaults.tier;
}
@CustomType.Setter
public Builder capacity(@Nullable Integer capacity) {
this.capacity = capacity;
return this;
}
@CustomType.Setter
public Builder size(String size) {
if (size == null) {
throw new MissingRequiredPropertyException("PlanSku", "size");
}
this.size = size;
return this;
}
@CustomType.Setter
public Builder tier(String tier) {
if (tier == null) {
throw new MissingRequiredPropertyException("PlanSku", "tier");
}
this.tier = tier;
return this;
}
public PlanSku build() {
final var _resultValue = new PlanSku();
_resultValue.capacity = capacity;
_resultValue.size = size;
_resultValue.tier = tier;
return _resultValue;
}
}
}