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

com.pulumi.azurenative.datafactory.inputs.MetadataItemArgs 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.datafactory.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specify the name and value of custom metadata item.
 * 
 */
public final class MetadataItemArgs extends com.pulumi.resources.ResourceArgs {

    public static final MetadataItemArgs Empty = new MetadataItemArgs();

    /**
     * Metadata item key name. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Metadata item key name. Type: string (or Expression with resultType string).
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Metadata item value. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return Metadata item value. Type: string (or Expression with resultType string).
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private MetadataItemArgs() {}

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

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

    public static final class Builder {
        private MetadataItemArgs $;

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

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

        /**
         * @param name Metadata item key name. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Metadata item key name. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder name(Object name) {
            return name(Output.of(name));
        }

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

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

        public MetadataItemArgs build() {
            return $;
        }
    }

}