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

com.pulumi.azurenative.datafactory.inputs.UserPropertyArgs Maven / Gradle / Ivy

The 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.datafactory.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;


/**
 * User property.
 * 
 */
public final class UserPropertyArgs extends com.pulumi.resources.ResourceArgs {

    public static final UserPropertyArgs Empty = new UserPropertyArgs();

    /**
     * User property name.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return User property name.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * User property value. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return User property value. Type: string (or Expression with resultType string).
     * 
     */
    public Output value() {
        return this.value;
    }

    private UserPropertyArgs() {}

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

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

    public static final class Builder {
        private UserPropertyArgs $;

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

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

        /**
         * @param name User property name.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name User property name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param value User property value. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value User property value. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder value(Object value) {
            return value(Output.of(value));
        }

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

}