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

com.pulumi.aws.sagemaker.outputs.DomainDefaultUserSettingsCanvasAppSettingsIdentityProviderOauthSetting 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.aws.sagemaker.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DomainDefaultUserSettingsCanvasAppSettingsIdentityProviderOauthSetting {
    /**
     * @return The name of the data source that you're connecting to. Canvas currently supports OAuth for Snowflake and Salesforce Data Cloud. Valid values are `SalesforceGenie` and `Snowflake`.
     * 
     */
    private @Nullable String dataSourceName;
    /**
     * @return The ARN of an Amazon Web Services Secrets Manager secret that stores the credentials from your identity provider, such as the client ID and secret, authorization URL, and token URL.
     * 
     */
    private String secretArn;
    /**
     * @return Describes whether OAuth for a data source is enabled or disabled in the Canvas application. Valid values are `ENABLED` and `DISABLED`.
     * 
     */
    private @Nullable String status;

    private DomainDefaultUserSettingsCanvasAppSettingsIdentityProviderOauthSetting() {}
    /**
     * @return The name of the data source that you're connecting to. Canvas currently supports OAuth for Snowflake and Salesforce Data Cloud. Valid values are `SalesforceGenie` and `Snowflake`.
     * 
     */
    public Optional dataSourceName() {
        return Optional.ofNullable(this.dataSourceName);
    }
    /**
     * @return The ARN of an Amazon Web Services Secrets Manager secret that stores the credentials from your identity provider, such as the client ID and secret, authorization URL, and token URL.
     * 
     */
    public String secretArn() {
        return this.secretArn;
    }
    /**
     * @return Describes whether OAuth for a data source is enabled or disabled in the Canvas application. Valid values are `ENABLED` and `DISABLED`.
     * 
     */
    public Optional status() {
        return Optional.ofNullable(this.status);
    }

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

    public static Builder builder(DomainDefaultUserSettingsCanvasAppSettingsIdentityProviderOauthSetting defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String dataSourceName;
        private String secretArn;
        private @Nullable String status;
        public Builder() {}
        public Builder(DomainDefaultUserSettingsCanvasAppSettingsIdentityProviderOauthSetting defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataSourceName = defaults.dataSourceName;
    	      this.secretArn = defaults.secretArn;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder dataSourceName(@Nullable String dataSourceName) {

            this.dataSourceName = dataSourceName;
            return this;
        }
        @CustomType.Setter
        public Builder secretArn(String secretArn) {
            if (secretArn == null) {
              throw new MissingRequiredPropertyException("DomainDefaultUserSettingsCanvasAppSettingsIdentityProviderOauthSetting", "secretArn");
            }
            this.secretArn = secretArn;
            return this;
        }
        @CustomType.Setter
        public Builder status(@Nullable String status) {

            this.status = status;
            return this;
        }
        public DomainDefaultUserSettingsCanvasAppSettingsIdentityProviderOauthSetting build() {
            final var _resultValue = new DomainDefaultUserSettingsCanvasAppSettingsIdentityProviderOauthSetting();
            _resultValue.dataSourceName = dataSourceName;
            _resultValue.secretArn = secretArn;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy