com.pulumi.azure.appservice.outputs.GetAppServicePlanResult 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.azure.appservice.outputs.GetAppServicePlanSku;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
@CustomType
public final class GetAppServicePlanResult {
/**
* @return The ID of the App Service Environment where the App Service Plan is located.
*
*/
private String appServiceEnvironmentId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return A flag that indicates if it's a xenon plan (support for Windows Container)
*
*/
private Boolean isXenon;
/**
* @return The Operating System type of the App Service Plan
*
*/
private String kind;
/**
* @return The Azure location where the App Service Plan exists
*
*/
private String location;
/**
* @return The maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
*
*/
private Integer maximumElasticWorkerCount;
/**
* @return The maximum number of workers supported with the App Service Plan's sku.
*
*/
private Integer maximumNumberOfWorkers;
private String name;
/**
* @return Can Apps assigned to this App Service Plan be scaled independently?
*
*/
private Boolean perSiteScaling;
/**
* @return Is this App Service Plan `Reserved`?
*
*/
private Boolean reserved;
private String resourceGroupName;
/**
* @return A `sku` block as documented below.
*
*/
private GetAppServicePlanSku sku;
/**
* @return A mapping of tags assigned to the resource.
*
*/
private Map tags;
/**
* @return App Service Plan perform availability zone balancing.
*
*/
private Boolean zoneRedundant;
private GetAppServicePlanResult() {}
/**
* @return The ID of the App Service Environment where the App Service Plan is located.
*
*/
public String appServiceEnvironmentId() {
return this.appServiceEnvironmentId;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return A flag that indicates if it's a xenon plan (support for Windows Container)
*
*/
public Boolean isXenon() {
return this.isXenon;
}
/**
* @return The Operating System type of the App Service Plan
*
*/
public String kind() {
return this.kind;
}
/**
* @return The Azure location where the App Service Plan exists
*
*/
public String location() {
return this.location;
}
/**
* @return The maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan.
*
*/
public Integer maximumElasticWorkerCount() {
return this.maximumElasticWorkerCount;
}
/**
* @return The maximum number of workers supported with the App Service Plan's sku.
*
*/
public Integer maximumNumberOfWorkers() {
return this.maximumNumberOfWorkers;
}
public String name() {
return this.name;
}
/**
* @return Can Apps assigned to this App Service Plan be scaled independently?
*
*/
public Boolean perSiteScaling() {
return this.perSiteScaling;
}
/**
* @return Is this App Service Plan `Reserved`?
*
*/
public Boolean reserved() {
return this.reserved;
}
public String resourceGroupName() {
return this.resourceGroupName;
}
/**
* @return A `sku` block as documented below.
*
*/
public GetAppServicePlanSku sku() {
return this.sku;
}
/**
* @return A mapping of tags assigned to the resource.
*
*/
public Map tags() {
return this.tags;
}
/**
* @return App Service Plan perform availability zone balancing.
*
*/
public Boolean zoneRedundant() {
return this.zoneRedundant;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAppServicePlanResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String appServiceEnvironmentId;
private String id;
private Boolean isXenon;
private String kind;
private String location;
private Integer maximumElasticWorkerCount;
private Integer maximumNumberOfWorkers;
private String name;
private Boolean perSiteScaling;
private Boolean reserved;
private String resourceGroupName;
private GetAppServicePlanSku sku;
private Map tags;
private Boolean zoneRedundant;
public Builder() {}
public Builder(GetAppServicePlanResult defaults) {
Objects.requireNonNull(defaults);
this.appServiceEnvironmentId = defaults.appServiceEnvironmentId;
this.id = defaults.id;
this.isXenon = defaults.isXenon;
this.kind = defaults.kind;
this.location = defaults.location;
this.maximumElasticWorkerCount = defaults.maximumElasticWorkerCount;
this.maximumNumberOfWorkers = defaults.maximumNumberOfWorkers;
this.name = defaults.name;
this.perSiteScaling = defaults.perSiteScaling;
this.reserved = defaults.reserved;
this.resourceGroupName = defaults.resourceGroupName;
this.sku = defaults.sku;
this.tags = defaults.tags;
this.zoneRedundant = defaults.zoneRedundant;
}
@CustomType.Setter
public Builder appServiceEnvironmentId(String appServiceEnvironmentId) {
if (appServiceEnvironmentId == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "appServiceEnvironmentId");
}
this.appServiceEnvironmentId = appServiceEnvironmentId;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder isXenon(Boolean isXenon) {
if (isXenon == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "isXenon");
}
this.isXenon = isXenon;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder maximumElasticWorkerCount(Integer maximumElasticWorkerCount) {
if (maximumElasticWorkerCount == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "maximumElasticWorkerCount");
}
this.maximumElasticWorkerCount = maximumElasticWorkerCount;
return this;
}
@CustomType.Setter
public Builder maximumNumberOfWorkers(Integer maximumNumberOfWorkers) {
if (maximumNumberOfWorkers == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "maximumNumberOfWorkers");
}
this.maximumNumberOfWorkers = maximumNumberOfWorkers;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder perSiteScaling(Boolean perSiteScaling) {
if (perSiteScaling == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "perSiteScaling");
}
this.perSiteScaling = perSiteScaling;
return this;
}
@CustomType.Setter
public Builder reserved(Boolean reserved) {
if (reserved == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "reserved");
}
this.reserved = reserved;
return this;
}
@CustomType.Setter
public Builder resourceGroupName(String resourceGroupName) {
if (resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "resourceGroupName");
}
this.resourceGroupName = resourceGroupName;
return this;
}
@CustomType.Setter
public Builder sku(GetAppServicePlanSku sku) {
if (sku == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "sku");
}
this.sku = sku;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder zoneRedundant(Boolean zoneRedundant) {
if (zoneRedundant == null) {
throw new MissingRequiredPropertyException("GetAppServicePlanResult", "zoneRedundant");
}
this.zoneRedundant = zoneRedundant;
return this;
}
public GetAppServicePlanResult build() {
final var _resultValue = new GetAppServicePlanResult();
_resultValue.appServiceEnvironmentId = appServiceEnvironmentId;
_resultValue.id = id;
_resultValue.isXenon = isXenon;
_resultValue.kind = kind;
_resultValue.location = location;
_resultValue.maximumElasticWorkerCount = maximumElasticWorkerCount;
_resultValue.maximumNumberOfWorkers = maximumNumberOfWorkers;
_resultValue.name = name;
_resultValue.perSiteScaling = perSiteScaling;
_resultValue.reserved = reserved;
_resultValue.resourceGroupName = resourceGroupName;
_resultValue.sku = sku;
_resultValue.tags = tags;
_resultValue.zoneRedundant = zoneRedundant;
return _resultValue;
}
}
}