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

com.pulumi.azurenative.servicefabricmesh.inputs.ContainerLabelArgs Maven / Gradle / Ivy

// *** 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.servicefabricmesh.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;


/**
 * Describes a container label.
 * 
 */
public final class ContainerLabelArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContainerLabelArgs Empty = new ContainerLabelArgs();

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

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

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

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

    private ContainerLabelArgs() {}

    private ContainerLabelArgs(ContainerLabelArgs $) {
        this.name = $.name;
        this.value = $.value;
    }

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

    public static final class Builder {
        private ContainerLabelArgs $;

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

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

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

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy