All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.batch.v1.inputs.PodFailurePolicyOnPodConditionsPatternPatchArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0
Show 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.kubernetes.batch.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.
 * 
 */
public final class PodFailurePolicyOnPodConditionsPatternPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final PodFailurePolicyOnPodConditionsPatternPatchArgs Empty = new PodFailurePolicyOnPodConditionsPatternPatchArgs();

    /**
     * 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")
    private @Nullable 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 Optional> status() {
        return Optional.ofNullable(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")
    private @Nullable 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 Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private PodFailurePolicyOnPodConditionsPatternPatchArgs() {}

    private PodFailurePolicyOnPodConditionsPatternPatchArgs(PodFailurePolicyOnPodConditionsPatternPatchArgs $) {
        this.status = $.status;
        this.type = $.type;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(PodFailurePolicyOnPodConditionsPatternPatchArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PodFailurePolicyOnPodConditionsPatternPatchArgs $;

        public Builder() {
            $ = new PodFailurePolicyOnPodConditionsPatternPatchArgs();
        }

        public Builder(PodFailurePolicyOnPodConditionsPatternPatchArgs defaults) {
            $ = new PodFailurePolicyOnPodConditionsPatternPatchArgs(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(@Nullable 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(@Nullable 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 PodFailurePolicyOnPodConditionsPatternPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy