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

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

// *** 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 java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SourceCodeTokenState Empty = new SourceCodeTokenState();

    /**
     * The OAuth access token.
     * 
     */
    @Import(name="token")
    private @Nullable Output token;

    /**
     * @return The OAuth access token.
     * 
     */
    public Optional> token() {
        return Optional.ofNullable(this.token);
    }

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

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

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

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

    private SourceCodeTokenState() {}

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

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

    public static final class Builder {
        private SourceCodeTokenState $;

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

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

        /**
         * @param token The OAuth access token.
         * 
         * @return builder
         * 
         */
        public Builder token(@Nullable Output 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 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(@Nullable Output 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 SourceCodeTokenState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy