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

com.pulumi.azurenative.awsconnector.inputs.ConditionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.ActionConditionModelPropertiesArgs;
import com.pulumi.azurenative.awsconnector.inputs.LabelNameConditionModelPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of Condition
 * 
 */
public final class ConditionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConditionArgs Empty = new ConditionArgs();

    /**
     * A single action condition.
     * 
     */
    @Import(name="actionCondition")
    private @Nullable Output actionCondition;

    /**
     * @return A single action condition.
     * 
     */
    public Optional> actionCondition() {
        return Optional.ofNullable(this.actionCondition);
    }

    /**
     * A single label name condition.
     * 
     */
    @Import(name="labelNameCondition")
    private @Nullable Output labelNameCondition;

    /**
     * @return A single label name condition.
     * 
     */
    public Optional> labelNameCondition() {
        return Optional.ofNullable(this.labelNameCondition);
    }

    private ConditionArgs() {}

    private ConditionArgs(ConditionArgs $) {
        this.actionCondition = $.actionCondition;
        this.labelNameCondition = $.labelNameCondition;
    }

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

    public static final class Builder {
        private ConditionArgs $;

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

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

        /**
         * @param actionCondition A single action condition.
         * 
         * @return builder
         * 
         */
        public Builder actionCondition(@Nullable Output actionCondition) {
            $.actionCondition = actionCondition;
            return this;
        }

        /**
         * @param actionCondition A single action condition.
         * 
         * @return builder
         * 
         */
        public Builder actionCondition(ActionConditionModelPropertiesArgs actionCondition) {
            return actionCondition(Output.of(actionCondition));
        }

        /**
         * @param labelNameCondition A single label name condition.
         * 
         * @return builder
         * 
         */
        public Builder labelNameCondition(@Nullable Output labelNameCondition) {
            $.labelNameCondition = labelNameCondition;
            return this;
        }

        /**
         * @param labelNameCondition A single label name condition.
         * 
         * @return builder
         * 
         */
        public Builder labelNameCondition(LabelNameConditionModelPropertiesArgs labelNameCondition) {
            return labelNameCondition(Output.of(labelNameCondition));
        }

        public ConditionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy