com.pulumi.aws.autoscaling.outputs.GetGroupMixedInstancesPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.autoscaling.outputs;
import com.pulumi.aws.autoscaling.outputs.GetGroupMixedInstancesPolicyInstancesDistribution;
import com.pulumi.aws.autoscaling.outputs.GetGroupMixedInstancesPolicyLaunchTemplate;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetGroupMixedInstancesPolicy {
/**
* @return List of instances distribution objects.
*
*/
private List instancesDistributions;
/**
* @return List of launch templates along with the overrides.
*
*/
private List launchTemplates;
private GetGroupMixedInstancesPolicy() {}
/**
* @return List of instances distribution objects.
*
*/
public List instancesDistributions() {
return this.instancesDistributions;
}
/**
* @return List of launch templates along with the overrides.
*
*/
public List launchTemplates() {
return this.launchTemplates;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGroupMixedInstancesPolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List instancesDistributions;
private List launchTemplates;
public Builder() {}
public Builder(GetGroupMixedInstancesPolicy defaults) {
Objects.requireNonNull(defaults);
this.instancesDistributions = defaults.instancesDistributions;
this.launchTemplates = defaults.launchTemplates;
}
@CustomType.Setter
public Builder instancesDistributions(List instancesDistributions) {
if (instancesDistributions == null) {
throw new MissingRequiredPropertyException("GetGroupMixedInstancesPolicy", "instancesDistributions");
}
this.instancesDistributions = instancesDistributions;
return this;
}
public Builder instancesDistributions(GetGroupMixedInstancesPolicyInstancesDistribution... instancesDistributions) {
return instancesDistributions(List.of(instancesDistributions));
}
@CustomType.Setter
public Builder launchTemplates(List launchTemplates) {
if (launchTemplates == null) {
throw new MissingRequiredPropertyException("GetGroupMixedInstancesPolicy", "launchTemplates");
}
this.launchTemplates = launchTemplates;
return this;
}
public Builder launchTemplates(GetGroupMixedInstancesPolicyLaunchTemplate... launchTemplates) {
return launchTemplates(List.of(launchTemplates));
}
public GetGroupMixedInstancesPolicy build() {
final var _resultValue = new GetGroupMixedInstancesPolicy();
_resultValue.instancesDistributions = instancesDistributions;
_resultValue.launchTemplates = launchTemplates;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy