com.pulumi.azure.desktopvirtualization.ScalingPlanHostPoolAssociationArgs 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.desktopvirtualization;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
public final class ScalingPlanHostPoolAssociationArgs extends com.pulumi.resources.ResourceArgs {
public static final ScalingPlanHostPoolAssociationArgs Empty = new ScalingPlanHostPoolAssociationArgs();
/**
* Should the Scaling Plan be enabled on this Host Pool.
*
*/
@Import(name="enabled", required=true)
private Output enabled;
/**
* @return Should the Scaling Plan be enabled on this Host Pool.
*
*/
public Output enabled() {
return this.enabled;
}
/**
* The resource ID for the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
*
*/
@Import(name="hostPoolId", required=true)
private Output hostPoolId;
/**
* @return The resource ID for the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
*
*/
public Output hostPoolId() {
return this.hostPoolId;
}
/**
* The resource ID for the Virtual Desktop Scaling Plan. Changing this forces a new resource to be created.
*
*/
@Import(name="scalingPlanId", required=true)
private Output scalingPlanId;
/**
* @return The resource ID for the Virtual Desktop Scaling Plan. Changing this forces a new resource to be created.
*
*/
public Output scalingPlanId() {
return this.scalingPlanId;
}
private ScalingPlanHostPoolAssociationArgs() {}
private ScalingPlanHostPoolAssociationArgs(ScalingPlanHostPoolAssociationArgs $) {
this.enabled = $.enabled;
this.hostPoolId = $.hostPoolId;
this.scalingPlanId = $.scalingPlanId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScalingPlanHostPoolAssociationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ScalingPlanHostPoolAssociationArgs $;
public Builder() {
$ = new ScalingPlanHostPoolAssociationArgs();
}
public Builder(ScalingPlanHostPoolAssociationArgs defaults) {
$ = new ScalingPlanHostPoolAssociationArgs(Objects.requireNonNull(defaults));
}
/**
* @param enabled Should the Scaling Plan be enabled on this Host Pool.
*
* @return builder
*
*/
public Builder enabled(Output enabled) {
$.enabled = enabled;
return this;
}
/**
* @param enabled Should the Scaling Plan be enabled on this Host Pool.
*
* @return builder
*
*/
public Builder enabled(Boolean enabled) {
return enabled(Output.of(enabled));
}
/**
* @param hostPoolId The resource ID for the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder hostPoolId(Output hostPoolId) {
$.hostPoolId = hostPoolId;
return this;
}
/**
* @param hostPoolId The resource ID for the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder hostPoolId(String hostPoolId) {
return hostPoolId(Output.of(hostPoolId));
}
/**
* @param scalingPlanId The resource ID for the Virtual Desktop Scaling Plan. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder scalingPlanId(Output scalingPlanId) {
$.scalingPlanId = scalingPlanId;
return this;
}
/**
* @param scalingPlanId The resource ID for the Virtual Desktop Scaling Plan. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder scalingPlanId(String scalingPlanId) {
return scalingPlanId(Output.of(scalingPlanId));
}
public ScalingPlanHostPoolAssociationArgs build() {
if ($.enabled == null) {
throw new MissingRequiredPropertyException("ScalingPlanHostPoolAssociationArgs", "enabled");
}
if ($.hostPoolId == null) {
throw new MissingRequiredPropertyException("ScalingPlanHostPoolAssociationArgs", "hostPoolId");
}
if ($.scalingPlanId == null) {
throw new MissingRequiredPropertyException("ScalingPlanHostPoolAssociationArgs", "scalingPlanId");
}
return $;
}
}
}