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

com.pulumi.azure.appservice.inputs.LinuxWebAppSlotAuthSettingsTwitterArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.appservice.inputs;

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


public final class LinuxWebAppSlotAuthSettingsTwitterArgs extends com.pulumi.resources.ResourceArgs {

    public static final LinuxWebAppSlotAuthSettingsTwitterArgs Empty = new LinuxWebAppSlotAuthSettingsTwitterArgs();

    /**
     * The OAuth 1.0a consumer key of the Twitter application used for sign-in.
     * 
     */
    @Import(name="consumerKey", required=true)
    private Output consumerKey;

    /**
     * @return The OAuth 1.0a consumer key of the Twitter application used for sign-in.
     * 
     */
    public Output consumerKey() {
        return this.consumerKey;
    }

    /**
     * The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`.
     * 
     */
    @Import(name="consumerSecret")
    private @Nullable Output consumerSecret;

    /**
     * @return The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`.
     * 
     */
    public Optional> consumerSecret() {
        return Optional.ofNullable(this.consumerSecret);
    }

    /**
     * The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`.
     * 
     */
    @Import(name="consumerSecretSettingName")
    private @Nullable Output consumerSecretSettingName;

    /**
     * @return The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`.
     * 
     */
    public Optional> consumerSecretSettingName() {
        return Optional.ofNullable(this.consumerSecretSettingName);
    }

    private LinuxWebAppSlotAuthSettingsTwitterArgs() {}

    private LinuxWebAppSlotAuthSettingsTwitterArgs(LinuxWebAppSlotAuthSettingsTwitterArgs $) {
        this.consumerKey = $.consumerKey;
        this.consumerSecret = $.consumerSecret;
        this.consumerSecretSettingName = $.consumerSecretSettingName;
    }

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

    public static final class Builder {
        private LinuxWebAppSlotAuthSettingsTwitterArgs $;

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

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

        /**
         * @param consumerKey The OAuth 1.0a consumer key of the Twitter application used for sign-in.
         * 
         * @return builder
         * 
         */
        public Builder consumerKey(Output consumerKey) {
            $.consumerKey = consumerKey;
            return this;
        }

        /**
         * @param consumerKey The OAuth 1.0a consumer key of the Twitter application used for sign-in.
         * 
         * @return builder
         * 
         */
        public Builder consumerKey(String consumerKey) {
            return consumerKey(Output.of(consumerKey));
        }

        /**
         * @param consumerSecret The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`.
         * 
         * @return builder
         * 
         */
        public Builder consumerSecret(@Nullable Output consumerSecret) {
            $.consumerSecret = consumerSecret;
            return this;
        }

        /**
         * @param consumerSecret The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`.
         * 
         * @return builder
         * 
         */
        public Builder consumerSecret(String consumerSecret) {
            return consumerSecret(Output.of(consumerSecret));
        }

        /**
         * @param consumerSecretSettingName The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`.
         * 
         * @return builder
         * 
         */
        public Builder consumerSecretSettingName(@Nullable Output consumerSecretSettingName) {
            $.consumerSecretSettingName = consumerSecretSettingName;
            return this;
        }

        /**
         * @param consumerSecretSettingName The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`.
         * 
         * @return builder
         * 
         */
        public Builder consumerSecretSettingName(String consumerSecretSettingName) {
            return consumerSecretSettingName(Output.of(consumerSecretSettingName));
        }

        public LinuxWebAppSlotAuthSettingsTwitterArgs build() {
            if ($.consumerKey == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSlotAuthSettingsTwitterArgs", "consumerKey");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy