com.pulumi.kubernetes.batch.v1.outputs.PodFailurePolicyOnPodConditionsPatternPatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes 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.kubernetes.batch.v1.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 PodFailurePolicyOnPodConditionsPatternPatch {
/**
* @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.
*
*/
private @Nullable String status;
/**
* @return Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
*
*/
private @Nullable String type;
private PodFailurePolicyOnPodConditionsPatternPatch() {}
/**
* @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 Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PodFailurePolicyOnPodConditionsPatternPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String status;
private @Nullable String type;
public Builder() {}
public Builder(PodFailurePolicyOnPodConditionsPatternPatch defaults) {
Objects.requireNonNull(defaults);
this.status = defaults.status;
this.type = defaults.type;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public PodFailurePolicyOnPodConditionsPatternPatch build() {
final var _resultValue = new PodFailurePolicyOnPodConditionsPatternPatch();
_resultValue.status = status;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy