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

com.pulumi.azurenative.iotoperationsorchestrator.inputs.BindingPropertiesArgs 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.iotoperationsorchestrator.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;


/**
 * Defines a component binding for a provider.
 * 
 */
public final class BindingPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final BindingPropertiesArgs Empty = new BindingPropertiesArgs();

    /**
     * Configuration values for the binding.
     * 
     */
    @Import(name="config", required=true)
    private Output config;

    /**
     * @return Configuration values for the binding.
     * 
     */
    public Output config() {
        return this.config;
    }

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

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

    /**
     * Role that the provider binds to with the component.
     * 
     */
    @Import(name="role", required=true)
    private Output role;

    /**
     * @return Role that the provider binds to with the component.
     * 
     */
    public Output role() {
        return this.role;
    }

    private BindingPropertiesArgs() {}

    private BindingPropertiesArgs(BindingPropertiesArgs $) {
        this.config = $.config;
        this.provider = $.provider;
        this.role = $.role;
    }

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

    public static final class Builder {
        private BindingPropertiesArgs $;

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

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

        /**
         * @param config Configuration values for the binding.
         * 
         * @return builder
         * 
         */
        public Builder config(Output config) {
            $.config = config;
            return this;
        }

        /**
         * @param config Configuration values for the binding.
         * 
         * @return builder
         * 
         */
        public Builder config(Object config) {
            return config(Output.of(config));
        }

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

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

        /**
         * @param role Role that the provider binds to with the component.
         * 
         * @return builder
         * 
         */
        public Builder role(Output role) {
            $.role = role;
            return this;
        }

        /**
         * @param role Role that the provider binds to with the component.
         * 
         * @return builder
         * 
         */
        public Builder role(String role) {
            return role(Output.of(role));
        }

        public BindingPropertiesArgs build() {
            if ($.config == null) {
                throw new MissingRequiredPropertyException("BindingPropertiesArgs", "config");
            }
            if ($.provider == null) {
                throw new MissingRequiredPropertyException("BindingPropertiesArgs", "provider");
            }
            if ($.role == null) {
                throw new MissingRequiredPropertyException("BindingPropertiesArgs", "role");
            }
            return $;
        }
    }

}