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

com.pulumi.kubernetes.networking.v1.inputs.NetworkPolicyStatusArgs 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.networking.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.meta.v1.inputs.ConditionArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * NetworkPolicyStatus describe the current state of the NetworkPolicy.
 * 
 */
public final class NetworkPolicyStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkPolicyStatusArgs Empty = new NetworkPolicyStatusArgs();

    /**
     * Conditions holds an array of metav1.Condition that describe the state of the NetworkPolicy. Current service state
     * 
     */
    @Import(name="conditions")
    private @Nullable Output> conditions;

    /**
     * @return Conditions holds an array of metav1.Condition that describe the state of the NetworkPolicy. Current service state
     * 
     */
    public Optional>> conditions() {
        return Optional.ofNullable(this.conditions);
    }

    private NetworkPolicyStatusArgs() {}

    private NetworkPolicyStatusArgs(NetworkPolicyStatusArgs $) {
        this.conditions = $.conditions;
    }

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

    public static final class Builder {
        private NetworkPolicyStatusArgs $;

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

        public Builder(NetworkPolicyStatusArgs defaults) {
            $ = new NetworkPolicyStatusArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param conditions Conditions holds an array of metav1.Condition that describe the state of the NetworkPolicy. Current service state
         * 
         * @return builder
         * 
         */
        public Builder conditions(@Nullable Output> conditions) {
            $.conditions = conditions;
            return this;
        }

        /**
         * @param conditions Conditions holds an array of metav1.Condition that describe the state of the NetworkPolicy. Current service state
         * 
         * @return builder
         * 
         */
        public Builder conditions(List conditions) {
            return conditions(Output.of(conditions));
        }

        /**
         * @param conditions Conditions holds an array of metav1.Condition that describe the state of the NetworkPolicy. Current service state
         * 
         * @return builder
         * 
         */
        public Builder conditions(ConditionArgs... conditions) {
            return conditions(List.of(conditions));
        }

        public NetworkPolicyStatusArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy