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

com.pulumi.azurenative.web.inputs.ConnectionParameterArgs 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.web.inputs;

import com.pulumi.azurenative.web.enums.ConnectionParameterType;
import com.pulumi.azurenative.web.inputs.ApiOAuthSettingsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Connection provider parameters
 * 
 */
public final class ConnectionParameterArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectionParameterArgs Empty = new ConnectionParameterArgs();

    /**
     * OAuth settings for the connection provider
     * 
     */
    @Import(name="oAuthSettings")
    private @Nullable Output oAuthSettings;

    /**
     * @return OAuth settings for the connection provider
     * 
     */
    public Optional> oAuthSettings() {
        return Optional.ofNullable(this.oAuthSettings);
    }

    /**
     * Type of the parameter
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type of the parameter
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private ConnectionParameterArgs() {}

    private ConnectionParameterArgs(ConnectionParameterArgs $) {
        this.oAuthSettings = $.oAuthSettings;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ConnectionParameterArgs $;

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

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

        /**
         * @param oAuthSettings OAuth settings for the connection provider
         * 
         * @return builder
         * 
         */
        public Builder oAuthSettings(@Nullable Output oAuthSettings) {
            $.oAuthSettings = oAuthSettings;
            return this;
        }

        /**
         * @param oAuthSettings OAuth settings for the connection provider
         * 
         * @return builder
         * 
         */
        public Builder oAuthSettings(ApiOAuthSettingsArgs oAuthSettings) {
            return oAuthSettings(Output.of(oAuthSettings));
        }

        /**
         * @param type Type of the parameter
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the parameter
         * 
         * @return builder
         * 
         */
        public Builder type(ConnectionParameterType type) {
            return type(Output.of(type));
        }

        public ConnectionParameterArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy