com.pulumi.aws.batch.outputs.GetJobDefinitionRetryStrategyEvaluateOnExit 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.
The newest version!
// *** 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.String;
import java.util.Objects;
@CustomType
public final class GetJobDefinitionRetryStrategyEvaluateOnExit {
/**
* @return Specifies the action to take if all of the specified conditions (onStatusReason, onReason, and onExitCode) are met. The values aren't case sensitive.
*
*/
private String action;
/**
* @return Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job.
*
*/
private String onExitCode;
/**
* @return Contains a glob pattern to match against the Reason returned for a job.
*
*/
private String onReason;
/**
* @return Contains a glob pattern to match against the StatusReason returned for a job.
*
*/
private String onStatusReason;
private GetJobDefinitionRetryStrategyEvaluateOnExit() {}
/**
* @return Specifies the action to take if all of the specified conditions (onStatusReason, onReason, and onExitCode) are met. The values aren't case sensitive.
*
*/
public String action() {
return this.action;
}
/**
* @return Contains a glob pattern to match against the decimal representation of the ExitCode returned for a job.
*
*/
public String onExitCode() {
return this.onExitCode;
}
/**
* @return Contains a glob pattern to match against the Reason returned for a job.
*
*/
public String onReason() {
return this.onReason;
}
/**
* @return Contains a glob pattern to match against the StatusReason returned for a job.
*
*/
public String onStatusReason() {
return this.onStatusReason;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetJobDefinitionRetryStrategyEvaluateOnExit defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String action;
private String onExitCode;
private String onReason;
private String onStatusReason;
public Builder() {}
public Builder(GetJobDefinitionRetryStrategyEvaluateOnExit defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.onExitCode = defaults.onExitCode;
this.onReason = defaults.onReason;
this.onStatusReason = defaults.onStatusReason;
}
@CustomType.Setter
public Builder action(String action) {
if (action == null) {
throw new MissingRequiredPropertyException("GetJobDefinitionRetryStrategyEvaluateOnExit", "action");
}
this.action = action;
return this;
}
@CustomType.Setter
public Builder onExitCode(String onExitCode) {
if (onExitCode == null) {
throw new MissingRequiredPropertyException("GetJobDefinitionRetryStrategyEvaluateOnExit", "onExitCode");
}
this.onExitCode = onExitCode;
return this;
}
@CustomType.Setter
public Builder onReason(String onReason) {
if (onReason == null) {
throw new MissingRequiredPropertyException("GetJobDefinitionRetryStrategyEvaluateOnExit", "onReason");
}
this.onReason = onReason;
return this;
}
@CustomType.Setter
public Builder onStatusReason(String onStatusReason) {
if (onStatusReason == null) {
throw new MissingRequiredPropertyException("GetJobDefinitionRetryStrategyEvaluateOnExit", "onStatusReason");
}
this.onStatusReason = onStatusReason;
return this;
}
public GetJobDefinitionRetryStrategyEvaluateOnExit build() {
final var _resultValue = new GetJobDefinitionRetryStrategyEvaluateOnExit();
_resultValue.action = action;
_resultValue.onExitCode = onExitCode;
_resultValue.onReason = onReason;
_resultValue.onStatusReason = onStatusReason;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy