com.pulumi.aws.batch.outputs.GetComputeEnvironmentUpdatePolicy 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.batch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
@CustomType
public final class GetComputeEnvironmentUpdatePolicy {
private Integer jobExecutionTimeoutMinutes;
private Boolean terminateJobsOnUpdate;
private GetComputeEnvironmentUpdatePolicy() {}
public Integer jobExecutionTimeoutMinutes() {
return this.jobExecutionTimeoutMinutes;
}
public Boolean terminateJobsOnUpdate() {
return this.terminateJobsOnUpdate;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetComputeEnvironmentUpdatePolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer jobExecutionTimeoutMinutes;
private Boolean terminateJobsOnUpdate;
public Builder() {}
public Builder(GetComputeEnvironmentUpdatePolicy defaults) {
Objects.requireNonNull(defaults);
this.jobExecutionTimeoutMinutes = defaults.jobExecutionTimeoutMinutes;
this.terminateJobsOnUpdate = defaults.terminateJobsOnUpdate;
}
@CustomType.Setter
public Builder jobExecutionTimeoutMinutes(Integer jobExecutionTimeoutMinutes) {
if (jobExecutionTimeoutMinutes == null) {
throw new MissingRequiredPropertyException("GetComputeEnvironmentUpdatePolicy", "jobExecutionTimeoutMinutes");
}
this.jobExecutionTimeoutMinutes = jobExecutionTimeoutMinutes;
return this;
}
@CustomType.Setter
public Builder terminateJobsOnUpdate(Boolean terminateJobsOnUpdate) {
if (terminateJobsOnUpdate == null) {
throw new MissingRequiredPropertyException("GetComputeEnvironmentUpdatePolicy", "terminateJobsOnUpdate");
}
this.terminateJobsOnUpdate = terminateJobsOnUpdate;
return this;
}
public GetComputeEnvironmentUpdatePolicy build() {
final var _resultValue = new GetComputeEnvironmentUpdatePolicy();
_resultValue.jobExecutionTimeoutMinutes = jobExecutionTimeoutMinutes;
_resultValue.terminateJobsOnUpdate = terminateJobsOnUpdate;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy