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

com.pulumi.azurenative.app.inputs.DaprMetadataArgs 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.app.inputs;

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


/**
 * Dapr component metadata.
 * 
 */
public final class DaprMetadataArgs extends com.pulumi.resources.ResourceArgs {

    public static final DaprMetadataArgs Empty = new DaprMetadataArgs();

    /**
     * Metadata property name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Metadata property name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Name of the Dapr Component secret from which to pull the metadata property value.
     * 
     */
    @Import(name="secretRef")
    private @Nullable Output secretRef;

    /**
     * @return Name of the Dapr Component secret from which to pull the metadata property value.
     * 
     */
    public Optional> secretRef() {
        return Optional.ofNullable(this.secretRef);
    }

    /**
     * Metadata property value.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return Metadata property value.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private DaprMetadataArgs() {}

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

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

    public static final class Builder {
        private DaprMetadataArgs $;

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

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

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

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

        /**
         * @param secretRef Name of the Dapr Component secret from which to pull the metadata property value.
         * 
         * @return builder
         * 
         */
        public Builder secretRef(@Nullable Output secretRef) {
            $.secretRef = secretRef;
            return this;
        }

        /**
         * @param secretRef Name of the Dapr Component secret from which to pull the metadata property value.
         * 
         * @return builder
         * 
         */
        public Builder secretRef(String secretRef) {
            return secretRef(Output.of(secretRef));
        }

        /**
         * @param value Metadata property value.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

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

        public DaprMetadataArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy