// *** 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;

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


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

    public static final SourceCodeTokenArgs Empty = new SourceCodeTokenArgs();

    /**
     * The OAuth access token.
     * 
     */
    @Import(name="token", required=true)
    private Output<String> token;

    /**
     * @return The OAuth access token.
     * 
     */
    public Output<String> token() {
        return this.token;
    }

    /**
     * The OAuth access token secret.
     * 
     */
    @Import(name="tokenSecret")
    private @Nullable Output<String> tokenSecret;

    /**
     * @return The OAuth access token secret.
     * 
     */
    public Optional<Output<String>> tokenSecret() {
        return Optional.ofNullable(this.tokenSecret);
    }

    /**
     * The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`.
     * 
     */
    @Import(name="type", required=true)
    private Output<String> type;

    /**
     * @return The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`.
     * 
     */
    public Output<String> type() {
        return this.type;
    }

    private SourceCodeTokenArgs() {}

    private SourceCodeTokenArgs(SourceCodeTokenArgs $) {
        this.token = $.token;
        this.tokenSecret = $.tokenSecret;
        this.type = $.type;
    }

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

    public static final class Builder {
        private SourceCodeTokenArgs $;

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

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

        /**
         * @param token The OAuth access token.
         * 
         * @return builder
         * 
         */
        public Builder token(Output<String> token) {
            $.token = token;
            return this;
        }

        /**
         * @param token The OAuth access token.
         * 
         * @return builder
         * 
         */
        public Builder token(String token) {
            return token(Output.of(token));
        }

        /**
         * @param tokenSecret The OAuth access token secret.
         * 
         * @return builder
         * 
         */
        public Builder tokenSecret(@Nullable Output<String> tokenSecret) {
            $.tokenSecret = tokenSecret;
            return this;
        }

        /**
         * @param tokenSecret The OAuth access token secret.
         * 
         * @return builder
         * 
         */
        public Builder tokenSecret(String tokenSecret) {
            return tokenSecret(Output.of(tokenSecret));
        }

        /**
         * @param type The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output<String> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The source control type. Possible values are `BitBucket`, `Dropbox`, `GitHub` and `OneDrive`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public SourceCodeTokenArgs build() {
            $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null");
            $.type = Objects.requireNonNull($.type, "expected parameter 'type' to be non-null");
            return $;
        }
    }

}
