com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyOnPodConditionsPatternArgs 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.kubernetes.batch.v1.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.
*
*/
public final class PodFailurePolicyOnPodConditionsPatternArgs extends com.pulumi.resources.ResourceArgs {
public static final PodFailurePolicyOnPodConditionsPatternArgs Empty = new PodFailurePolicyOnPodConditionsPatternArgs();
/**
* Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
*
*/
@Import(name="status", required=true)
private Output status;
/**
* @return Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
*
*/
public Output status() {
return this.status;
}
/**
* Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
*
*/
public Output type() {
return this.type;
}
private PodFailurePolicyOnPodConditionsPatternArgs() {}
private PodFailurePolicyOnPodConditionsPatternArgs(PodFailurePolicyOnPodConditionsPatternArgs $) {
this.status = $.status;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PodFailurePolicyOnPodConditionsPatternArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private PodFailurePolicyOnPodConditionsPatternArgs $;
public Builder() {
$ = new PodFailurePolicyOnPodConditionsPatternArgs();
}
public Builder(PodFailurePolicyOnPodConditionsPatternArgs defaults) {
$ = new PodFailurePolicyOnPodConditionsPatternArgs(Objects.requireNonNull(defaults));
}
/**
* @param status Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
*
* @return builder
*
*/
public Builder status(Output status) {
$.status = status;
return this;
}
/**
* @param status Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
*
* @return builder
*
*/
public Builder status(String status) {
return status(Output.of(status));
}
/**
* @param type Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
public PodFailurePolicyOnPodConditionsPatternArgs build() {
if ($.status == null) {
throw new MissingRequiredPropertyException("PodFailurePolicyOnPodConditionsPatternArgs", "status");
}
if ($.type == null) {
throw new MissingRequiredPropertyException("PodFailurePolicyOnPodConditionsPatternArgs", "type");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy