
com.pulumi.aws.pipes.outputs.PipeTargetParametersBatchJobParametersDependsOn 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.pipes.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PipeTargetParametersBatchJobParametersDependsOn {
/**
* @return The job ID of the AWS Batch job that's associated with this dependency.
*
*/
private @Nullable String jobId;
/**
* @return The type of placement strategy. The random placement strategy randomly places tasks on available candidates. The spread placement strategy spreads placement across available candidates evenly based on the field parameter. The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified with the field parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task). Valid Values: random, spread, binpack.
*
*/
private @Nullable String type;
private PipeTargetParametersBatchJobParametersDependsOn() {}
/**
* @return The job ID of the AWS Batch job that's associated with this dependency.
*
*/
public Optional jobId() {
return Optional.ofNullable(this.jobId);
}
/**
* @return The type of placement strategy. The random placement strategy randomly places tasks on available candidates. The spread placement strategy spreads placement across available candidates evenly based on the field parameter. The binpack strategy places tasks on available candidates that have the least available amount of the resource that is specified with the field parameter. For example, if you binpack on memory, a task is placed on the instance with the least amount of remaining memory (but still enough to run the task). Valid Values: random, spread, binpack.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PipeTargetParametersBatchJobParametersDependsOn defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String jobId;
private @Nullable String type;
public Builder() {}
public Builder(PipeTargetParametersBatchJobParametersDependsOn defaults) {
Objects.requireNonNull(defaults);
this.jobId = defaults.jobId;
this.type = defaults.type;
}
@CustomType.Setter
public Builder jobId(@Nullable String jobId) {
this.jobId = jobId;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public PipeTargetParametersBatchJobParametersDependsOn build() {
final var _resultValue = new PipeTargetParametersBatchJobParametersDependsOn();
_resultValue.jobId = jobId;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy