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

com.pulumi.azurenative.web.inputs.TwitterArgs 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.inputs.TwitterRegistrationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The configuration settings of the Twitter provider.
 * 
 */
public final class TwitterArgs extends com.pulumi.resources.ResourceArgs {

    public static final TwitterArgs Empty = new TwitterArgs();

    /**
     * <code>false</code> if the Twitter provider should not be enabled despite the set registration; otherwise, <code>true</code>.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return <code>false</code> if the Twitter provider should not be enabled despite the set registration; otherwise, <code>true</code>.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The configuration settings of the app registration for the Twitter provider.
     * 
     */
    @Import(name="registration")
    private @Nullable Output registration;

    /**
     * @return The configuration settings of the app registration for the Twitter provider.
     * 
     */
    public Optional> registration() {
        return Optional.ofNullable(this.registration);
    }

    private TwitterArgs() {}

    private TwitterArgs(TwitterArgs $) {
        this.enabled = $.enabled;
        this.registration = $.registration;
    }

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

    public static final class Builder {
        private TwitterArgs $;

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

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

        /**
         * @param enabled <code>false</code> if the Twitter provider should not be enabled despite the set registration; otherwise, <code>true</code>.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled <code>false</code> if the Twitter provider should not be enabled despite the set registration; otherwise, <code>true</code>.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param registration The configuration settings of the app registration for the Twitter provider.
         * 
         * @return builder
         * 
         */
        public Builder registration(@Nullable Output registration) {
            $.registration = registration;
            return this;
        }

        /**
         * @param registration The configuration settings of the app registration for the Twitter provider.
         * 
         * @return builder
         * 
         */
        public Builder registration(TwitterRegistrationArgs registration) {
            return registration(Output.of(registration));
        }

        public TwitterArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy