com.pulumi.aws.scheduler.outputs.ScheduleTargetEcsParametersPlacementStrategy 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.aws.scheduler.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ScheduleTargetEcsParametersPlacementStrategy {
/**
* @return The field to apply the placement strategy against.
*
*/
private @Nullable String field;
/**
* @return The type of placement strategy. One of: `random`, `spread`, `binpack`.
*
*/
private String type;
private ScheduleTargetEcsParametersPlacementStrategy() {}
/**
* @return The field to apply the placement strategy against.
*
*/
public Optional field() {
return Optional.ofNullable(this.field);
}
/**
* @return The type of placement strategy. One of: `random`, `spread`, `binpack`.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScheduleTargetEcsParametersPlacementStrategy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String field;
private String type;
public Builder() {}
public Builder(ScheduleTargetEcsParametersPlacementStrategy defaults) {
Objects.requireNonNull(defaults);
this.field = defaults.field;
this.type = defaults.type;
}
@CustomType.Setter
public Builder field(@Nullable String field) {
this.field = field;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ScheduleTargetEcsParametersPlacementStrategy", "type");
}
this.type = type;
return this;
}
public ScheduleTargetEcsParametersPlacementStrategy build() {
final var _resultValue = new ScheduleTargetEcsParametersPlacementStrategy();
_resultValue.field = field;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy