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

com.pulumi.azurenative.automation.inputs.SourceControlSecurityTokenPropertiesArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.automation.inputs;

import com.pulumi.azurenative.automation.enums.TokenType;
import com.pulumi.core.Either;
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 SourceControlSecurityTokenPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final SourceControlSecurityTokenPropertiesArgs Empty = new SourceControlSecurityTokenPropertiesArgs();

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

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

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

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

    /**
     * The token type. Must be either PersonalAccessToken or Oauth.
     * 
     */
    @Import(name="tokenType")
    private @Nullable Output> tokenType;

    /**
     * @return The token type. Must be either PersonalAccessToken or Oauth.
     * 
     */
    public Optional>> tokenType() {
        return Optional.ofNullable(this.tokenType);
    }

    private SourceControlSecurityTokenPropertiesArgs() {}

    private SourceControlSecurityTokenPropertiesArgs(SourceControlSecurityTokenPropertiesArgs $) {
        this.accessToken = $.accessToken;
        this.refreshToken = $.refreshToken;
        this.tokenType = $.tokenType;
    }

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

    public static final class Builder {
        private SourceControlSecurityTokenPropertiesArgs $;

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

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

        /**
         * @param accessToken The access token.
         * 
         * @return builder
         * 
         */
        public Builder accessToken(@Nullable Output accessToken) {
            $.accessToken = accessToken;
            return this;
        }

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

        /**
         * @param refreshToken The refresh token.
         * 
         * @return builder
         * 
         */
        public Builder refreshToken(@Nullable Output refreshToken) {
            $.refreshToken = refreshToken;
            return this;
        }

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

        /**
         * @param tokenType The token type. Must be either PersonalAccessToken or Oauth.
         * 
         * @return builder
         * 
         */
        public Builder tokenType(@Nullable Output> tokenType) {
            $.tokenType = tokenType;
            return this;
        }

        /**
         * @param tokenType The token type. Must be either PersonalAccessToken or Oauth.
         * 
         * @return builder
         * 
         */
        public Builder tokenType(Either tokenType) {
            return tokenType(Output.of(tokenType));
        }

        /**
         * @param tokenType The token type. Must be either PersonalAccessToken or Oauth.
         * 
         * @return builder
         * 
         */
        public Builder tokenType(String tokenType) {
            return tokenType(Either.ofLeft(tokenType));
        }

        /**
         * @param tokenType The token type. Must be either PersonalAccessToken or Oauth.
         * 
         * @return builder
         * 
         */
        public Builder tokenType(TokenType tokenType) {
            return tokenType(Either.ofRight(tokenType));
        }

        public SourceControlSecurityTokenPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy