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

com.pulumi.azurenative.chaos.inputs.KeyValuePairArgs 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.chaos.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;


/**
 * A map to describe the settings of an action.
 * 
 */
public final class KeyValuePairArgs extends com.pulumi.resources.ResourceArgs {

    public static final KeyValuePairArgs Empty = new KeyValuePairArgs();

    /**
     * The name of the setting for the action.
     * 
     */
    @Import(name="key", required=true)
    private Output key;

    /**
     * @return The name of the setting for the action.
     * 
     */
    public Output key() {
        return this.key;
    }

    /**
     * The value of the setting for the action.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return The value of the setting for the action.
     * 
     */
    public Output value() {
        return this.value;
    }

    private KeyValuePairArgs() {}

    private KeyValuePairArgs(KeyValuePairArgs $) {
        this.key = $.key;
        this.value = $.value;
    }

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

    public static final class Builder {
        private KeyValuePairArgs $;

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

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

        /**
         * @param key The name of the setting for the action.
         * 
         * @return builder
         * 
         */
        public Builder key(Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key The name of the setting for the action.
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

        /**
         * @param value The value of the setting for the action.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The value of the setting for the action.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public KeyValuePairArgs build() {
            if ($.key == null) {
                throw new MissingRequiredPropertyException("KeyValuePairArgs", "key");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("KeyValuePairArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy