com.pulumi.aws.ecs.outputs.TaskSetScale 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.ecs.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TaskSetScale {
/**
* @return The unit of measure for the scale value. Default: `PERCENT`.
*
*/
private @Nullable String unit;
/**
* @return The value, specified as a percent total of a service's `desiredCount`, to scale the task set. Defaults to `0` if not specified. Accepted values are numbers between 0.0 and 100.0.
*
*/
private @Nullable Double value;
private TaskSetScale() {}
/**
* @return The unit of measure for the scale value. Default: `PERCENT`.
*
*/
public Optional unit() {
return Optional.ofNullable(this.unit);
}
/**
* @return The value, specified as a percent total of a service's `desiredCount`, to scale the task set. Defaults to `0` if not specified. Accepted values are numbers between 0.0 and 100.0.
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TaskSetScale defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String unit;
private @Nullable Double value;
public Builder() {}
public Builder(TaskSetScale defaults) {
Objects.requireNonNull(defaults);
this.unit = defaults.unit;
this.value = defaults.value;
}
@CustomType.Setter
public Builder unit(@Nullable String unit) {
this.unit = unit;
return this;
}
@CustomType.Setter
public Builder value(@Nullable Double value) {
this.value = value;
return this;
}
public TaskSetScale build() {
final var _resultValue = new TaskSetScale();
_resultValue.unit = unit;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy