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

com.pulumi.docker.inputs.NetworkLabelArgs Maven / Gradle / Ivy

There is a newer version: 4.7.0-alpha.1705607229+34a07055
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.docker.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;


public final class NetworkLabelArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkLabelArgs Empty = new NetworkLabelArgs();

    /**
     * Name of the label
     * 
     */
    @Import(name="label", required=true)
    private Output label;

    /**
     * @return Name of the label
     * 
     */
    public Output label() {
        return this.label;
    }

    /**
     * Value of the label
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return Value of the label
     * 
     */
    public Output value() {
        return this.value;
    }

    private NetworkLabelArgs() {}

    private NetworkLabelArgs(NetworkLabelArgs $) {
        this.label = $.label;
        this.value = $.value;
    }

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

    public static final class Builder {
        private NetworkLabelArgs $;

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

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

        /**
         * @param label Name of the label
         * 
         * @return builder
         * 
         */
        public Builder label(Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label Name of the label
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

        /**
         * @param value Value of the label
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Value of the label
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy