sdk/java/src/main/java/com/pulumi/ovh/Provider.java
<reponame>lbrlabs/pulumi-ovh// *** 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.ovh;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.ovh.ProviderArgs;
import com.pulumi.ovh.Utilities;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The provider type for the ovh package. By default, resources use package-wide configuration
 * settings, however an explicit `Provider` instance may be created and passed during resource
 * construction to achieve fine-grained programmatic control over provider settings. See the
 * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
 * 
 */
@ResourceType(type="pulumi:providers:ovh")
public class Provider extends com.pulumi.resources.ProviderResource {
    /**
     * The OVH API Application Key.
     * 
     */
    @Export(name="applicationKey", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> applicationKey;

    /**
     * @return The OVH API Application Key.
     * 
     */
    public Output<Optional<String>> applicationKey() {
        return Codegen.optional(this.applicationKey);
    }
    /**
     * The OVH API Application Secret.
     * 
     */
    @Export(name="applicationSecret", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> applicationSecret;

    /**
     * @return The OVH API Application Secret.
     * 
     */
    public Output<Optional<String>> applicationSecret() {
        return Codegen.optional(this.applicationSecret);
    }
    /**
     * The OVH API Consumer key.
     * 
     */
    @Export(name="consumerKey", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> consumerKey;

    /**
     * @return The OVH API Consumer key.
     * 
     */
    public Output<Optional<String>> consumerKey() {
        return Codegen.optional(this.consumerKey);
    }
    /**
     * The OVH API endpoint to target (ex: &#34;ovh-eu&#34;).
     * 
     */
    @Export(name="endpoint", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> endpoint;

    /**
     * @return The OVH API endpoint to target (ex: &#34;ovh-eu&#34;).
     * 
     */
    public Output<Optional<String>> endpoint() {
        return Codegen.optional(this.endpoint);
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public Provider(String name) {
        this(name, ProviderArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public Provider(String name, @Nullable ProviderArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public Provider(String name, @Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("ovh", name, args == null ? ProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output<String> id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .additionalSecretOutputs(List.of(
                "consumerKey"
            ))
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

}
