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

com.pulumi.aws.appflow.inputs.ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.appflow.inputs;

import com.pulumi.aws.appflow.inputs.ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequestArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs Empty = new ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs();

    @Import(name="accessToken")
    private @Nullable Output accessToken;

    public Optional> accessToken() {
        return Optional.ofNullable(this.accessToken);
    }

    @Import(name="clientId", required=true)
    private Output clientId;

    public Output clientId() {
        return this.clientId;
    }

    @Import(name="clientSecret", required=true)
    private Output clientSecret;

    public Output clientSecret() {
        return this.clientSecret;
    }

    @Import(name="oauthRequest")
    private @Nullable Output oauthRequest;

    public Optional> oauthRequest() {
        return Optional.ofNullable(this.oauthRequest);
    }

    @Import(name="refreshToken")
    private @Nullable Output refreshToken;

    public Optional> refreshToken() {
        return Optional.ofNullable(this.refreshToken);
    }

    private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs() {}

    private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs $) {
        this.accessToken = $.accessToken;
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.oauthRequest = $.oauthRequest;
        this.refreshToken = $.refreshToken;
    }

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

    public static final class Builder {
        private ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs $;

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

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

        public Builder accessToken(@Nullable Output accessToken) {
            $.accessToken = accessToken;
            return this;
        }

        public Builder accessToken(String accessToken) {
            return accessToken(Output.of(accessToken));
        }

        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        public Builder clientSecret(Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        public Builder clientSecret(String clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        public Builder oauthRequest(@Nullable Output oauthRequest) {
            $.oauthRequest = oauthRequest;
            return this;
        }

        public Builder oauthRequest(ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequestArgs oauthRequest) {
            return oauthRequest(Output.of(oauthRequest));
        }

        public Builder refreshToken(@Nullable Output refreshToken) {
            $.refreshToken = refreshToken;
            return this;
        }

        public Builder refreshToken(String refreshToken) {
            return refreshToken(Output.of(refreshToken));
        }

        public ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs build() {
            if ($.clientId == null) {
                throw new MissingRequiredPropertyException("ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs", "clientId");
            }
            if ($.clientSecret == null) {
                throw new MissingRequiredPropertyException("ConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsArgs", "clientSecret");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy