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

com.pulumi.spotinst.inputs.CredentialsGcpState Maven / Gradle / Ivy

The 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.spotinst.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 CredentialsGcpState extends com.pulumi.resources.ResourceArgs {

    public static final CredentialsGcpState Empty = new CredentialsGcpState();

    /**
     * The ID of the account associated with your token.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return The ID of the account associated with your token.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * .
     * 
     */
    @Import(name="authProviderX509CertUrl")
    private @Nullable Output authProviderX509CertUrl;

    /**
     * @return .
     * 
     */
    public Optional> authProviderX509CertUrl() {
        return Optional.ofNullable(this.authProviderX509CertUrl);
    }

    /**
     * Authentication uri.
     * 
     */
    @Import(name="authUri")
    private @Nullable Output authUri;

    /**
     * @return Authentication uri.
     * 
     */
    public Optional> authUri() {
        return Optional.ofNullable(this.authUri);
    }

    /**
     * Email associated with service account.
     * 
     */
    @Import(name="clientEmail")
    private @Nullable Output clientEmail;

    /**
     * @return Email associated with service account.
     * 
     */
    public Optional> clientEmail() {
        return Optional.ofNullable(this.clientEmail);
    }

    /**
     * Client ID of service account.
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return Client ID of service account.
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
     * 
     */
    @Import(name="clientX509CertUrl")
    private @Nullable Output clientX509CertUrl;

    /**
     * @return Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
     * 
     */
    public Optional> clientX509CertUrl() {
        return Optional.ofNullable(this.clientX509CertUrl);
    }

    /**
     * Private key of JSON key created during prerequisites stage.
     * 
     */
    @Import(name="privateKey")
    private @Nullable Output privateKey;

    /**
     * @return Private key of JSON key created during prerequisites stage.
     * 
     */
    public Optional> privateKey() {
        return Optional.ofNullable(this.privateKey);
    }

    /**
     * Private key ID of JSON key created during prerequisites stage.
     * 
     */
    @Import(name="privateKeyId")
    private @Nullable Output privateKeyId;

    /**
     * @return Private key ID of JSON key created during prerequisites stage.
     * 
     */
    public Optional> privateKeyId() {
        return Optional.ofNullable(this.privateKeyId);
    }

    /**
     * Name of project in GCP.
     * 
     */
    @Import(name="projectId")
    private @Nullable Output projectId;

    /**
     * @return Name of project in GCP.
     * 
     */
    public Optional> projectId() {
        return Optional.ofNullable(this.projectId);
    }

    /**
     * Token uri.
     * 
     */
    @Import(name="tokenUri")
    private @Nullable Output tokenUri;

    /**
     * @return Token uri.
     * 
     */
    public Optional> tokenUri() {
        return Optional.ofNullable(this.tokenUri);
    }

    /**
     * Valid values - service_account.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Valid values - service_account.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private CredentialsGcpState() {}

    private CredentialsGcpState(CredentialsGcpState $) {
        this.accountId = $.accountId;
        this.authProviderX509CertUrl = $.authProviderX509CertUrl;
        this.authUri = $.authUri;
        this.clientEmail = $.clientEmail;
        this.clientId = $.clientId;
        this.clientX509CertUrl = $.clientX509CertUrl;
        this.privateKey = $.privateKey;
        this.privateKeyId = $.privateKeyId;
        this.projectId = $.projectId;
        this.tokenUri = $.tokenUri;
        this.type = $.type;
    }

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

    public static final class Builder {
        private CredentialsGcpState $;

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

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

        /**
         * @param accountId The ID of the account associated with your token.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId The ID of the account associated with your token.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param authProviderX509CertUrl .
         * 
         * @return builder
         * 
         */
        public Builder authProviderX509CertUrl(@Nullable Output authProviderX509CertUrl) {
            $.authProviderX509CertUrl = authProviderX509CertUrl;
            return this;
        }

        /**
         * @param authProviderX509CertUrl .
         * 
         * @return builder
         * 
         */
        public Builder authProviderX509CertUrl(String authProviderX509CertUrl) {
            return authProviderX509CertUrl(Output.of(authProviderX509CertUrl));
        }

        /**
         * @param authUri Authentication uri.
         * 
         * @return builder
         * 
         */
        public Builder authUri(@Nullable Output authUri) {
            $.authUri = authUri;
            return this;
        }

        /**
         * @param authUri Authentication uri.
         * 
         * @return builder
         * 
         */
        public Builder authUri(String authUri) {
            return authUri(Output.of(authUri));
        }

        /**
         * @param clientEmail Email associated with service account.
         * 
         * @return builder
         * 
         */
        public Builder clientEmail(@Nullable Output clientEmail) {
            $.clientEmail = clientEmail;
            return this;
        }

        /**
         * @param clientEmail Email associated with service account.
         * 
         * @return builder
         * 
         */
        public Builder clientEmail(String clientEmail) {
            return clientEmail(Output.of(clientEmail));
        }

        /**
         * @param clientId Client ID of service account.
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId Client ID of service account.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientX509CertUrl Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
         * 
         * @return builder
         * 
         */
        public Builder clientX509CertUrl(@Nullable Output clientX509CertUrl) {
            $.clientX509CertUrl = clientX509CertUrl;
            return this;
        }

        /**
         * @param clientX509CertUrl Should be in following format - "https://www.googleapis.com/robot/v1/metadata/x509/".
         * 
         * @return builder
         * 
         */
        public Builder clientX509CertUrl(String clientX509CertUrl) {
            return clientX509CertUrl(Output.of(clientX509CertUrl));
        }

        /**
         * @param privateKey Private key of JSON key created during prerequisites stage.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(@Nullable Output privateKey) {
            $.privateKey = privateKey;
            return this;
        }

        /**
         * @param privateKey Private key of JSON key created during prerequisites stage.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(String privateKey) {
            return privateKey(Output.of(privateKey));
        }

        /**
         * @param privateKeyId Private key ID of JSON key created during prerequisites stage.
         * 
         * @return builder
         * 
         */
        public Builder privateKeyId(@Nullable Output privateKeyId) {
            $.privateKeyId = privateKeyId;
            return this;
        }

        /**
         * @param privateKeyId Private key ID of JSON key created during prerequisites stage.
         * 
         * @return builder
         * 
         */
        public Builder privateKeyId(String privateKeyId) {
            return privateKeyId(Output.of(privateKeyId));
        }

        /**
         * @param projectId Name of project in GCP.
         * 
         * @return builder
         * 
         */
        public Builder projectId(@Nullable Output projectId) {
            $.projectId = projectId;
            return this;
        }

        /**
         * @param projectId Name of project in GCP.
         * 
         * @return builder
         * 
         */
        public Builder projectId(String projectId) {
            return projectId(Output.of(projectId));
        }

        /**
         * @param tokenUri Token uri.
         * 
         * @return builder
         * 
         */
        public Builder tokenUri(@Nullable Output tokenUri) {
            $.tokenUri = tokenUri;
            return this;
        }

        /**
         * @param tokenUri Token uri.
         * 
         * @return builder
         * 
         */
        public Builder tokenUri(String tokenUri) {
            return tokenUri(Output.of(tokenUri));
        }

        /**
         * @param type Valid values - service_account.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Valid values - service_account.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public CredentialsGcpState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy