com.hashicorp.cdktf.providers.snowflake.oauth_integration_for_partner_applications.OauthIntegrationForPartnerApplicationsConfig Maven / Gradle / Ivy
Show all versions of cdktf-provider-snowflake Show documentation
package com.hashicorp.cdktf.providers.snowflake.oauth_integration_for_partner_applications;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.507Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.oauthIntegrationForPartnerApplications.OauthIntegrationForPartnerApplicationsConfig")
@software.amazon.jsii.Jsii.Proxy(OauthIntegrationForPartnerApplicationsConfig.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface OauthIntegrationForPartnerApplicationsConfig extends software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments {
/**
* A set of Snowflake roles that a user cannot explicitly consent to using after authenticating.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#blocked_roles_list OauthIntegrationForPartnerApplications#blocked_roles_list}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.util.List getBlockedRolesList();
/**
* Specifies the name of the OAuth integration.
*
* This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#name OauthIntegrationForPartnerApplications#name}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getName();
/**
* Creates an OAuth interface between Snowflake and a partner application. Valid options are: LOOKER
| TABLEAU_DESKTOP
| TABLEAU_SERVER
.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_client OauthIntegrationForPartnerApplications#oauth_client}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getOauthClient();
/**
* Specifies a comment for the OAuth integration.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#comment OauthIntegrationForPartnerApplications#comment}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getComment() {
return null;
}
/**
* Specifies whether this OAuth integration is enabled or disabled.
*
* Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#enabled OauthIntegrationForPartnerApplications#enabled}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getEnabled() {
return null;
}
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#id OauthIntegrationForPartnerApplications#id}.
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getId() {
return null;
}
/**
* Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
*
* Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_issue_refresh_tokens OauthIntegrationForPartnerApplications#oauth_issue_refresh_tokens}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getOauthIssueRefreshTokens() {
return null;
}
/**
* Specifies the client URI.
*
* After a user is authenticated, the web browser is redirected to this URI. The field should be only set when OAUTH_CLIENT = LOOKER. In any other case the field should be left out empty. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_redirect_uri OauthIntegrationForPartnerApplications#oauth_redirect_uri}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getOauthRedirectUri() {
return null;
}
/**
* Specifies how long refresh tokens should be valid (in seconds). OAUTH_ISSUE_REFRESH_TOKENS must be set to TRUE.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_refresh_token_validity OauthIntegrationForPartnerApplications#oauth_refresh_token_validity}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getOauthRefreshTokenValidity() {
return null;
}
/**
* Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
*
* Valid options are: `IMPLICIT` | `NONE`.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_use_secondary_roles OauthIntegrationForPartnerApplications#oauth_use_secondary_roles}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getOauthUseSecondaryRoles() {
return null;
}
/**
* @return a {@link Builder} of {@link OauthIntegrationForPartnerApplicationsConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link OauthIntegrationForPartnerApplicationsConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.util.List blockedRolesList;
java.lang.String name;
java.lang.String oauthClient;
java.lang.String comment;
java.lang.String enabled;
java.lang.String id;
java.lang.String oauthIssueRefreshTokens;
java.lang.String oauthRedirectUri;
java.lang.Number oauthRefreshTokenValidity;
java.lang.String oauthUseSecondaryRoles;
java.lang.Object connection;
java.lang.Object count;
java.util.List dependsOn;
com.hashicorp.cdktf.ITerraformIterator forEach;
com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle;
com.hashicorp.cdktf.TerraformProvider provider;
java.util.List provisioners;
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getBlockedRolesList}
* @param blockedRolesList A set of Snowflake roles that a user cannot explicitly consent to using after authenticating. This parameter is required.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#blocked_roles_list OauthIntegrationForPartnerApplications#blocked_roles_list}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder blockedRolesList(java.util.List blockedRolesList) {
this.blockedRolesList = blockedRolesList;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getName}
* @param name Specifies the name of the OAuth integration. This parameter is required.
* This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#name OauthIntegrationForPartnerApplications#name}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder name(java.lang.String name) {
this.name = name;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getOauthClient}
* @param oauthClient Creates an OAuth interface between Snowflake and a partner application. Valid options are: LOOKER
| TABLEAU_DESKTOP
| TABLEAU_SERVER
. This parameter is required.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_client OauthIntegrationForPartnerApplications#oauth_client}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder oauthClient(java.lang.String oauthClient) {
this.oauthClient = oauthClient;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getComment}
* @param comment Specifies a comment for the OAuth integration.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#comment OauthIntegrationForPartnerApplications#comment}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder comment(java.lang.String comment) {
this.comment = comment;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getEnabled}
* @param enabled Specifies whether this OAuth integration is enabled or disabled.
* Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#enabled OauthIntegrationForPartnerApplications#enabled}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder enabled(java.lang.String enabled) {
this.enabled = enabled;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getId}
* @param id Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#id OauthIntegrationForPartnerApplications#id}.
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder id(java.lang.String id) {
this.id = id;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getOauthIssueRefreshTokens}
* @param oauthIssueRefreshTokens Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
* Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_issue_refresh_tokens OauthIntegrationForPartnerApplications#oauth_issue_refresh_tokens}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder oauthIssueRefreshTokens(java.lang.String oauthIssueRefreshTokens) {
this.oauthIssueRefreshTokens = oauthIssueRefreshTokens;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getOauthRedirectUri}
* @param oauthRedirectUri Specifies the client URI.
* After a user is authenticated, the web browser is redirected to this URI. The field should be only set when OAUTH_CLIENT = LOOKER. In any other case the field should be left out empty. External changes for this field won't be detected. In case you want to apply external changes, you can re-create the resource manually using "terraform taint".
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_redirect_uri OauthIntegrationForPartnerApplications#oauth_redirect_uri}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder oauthRedirectUri(java.lang.String oauthRedirectUri) {
this.oauthRedirectUri = oauthRedirectUri;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getOauthRefreshTokenValidity}
* @param oauthRefreshTokenValidity Specifies how long refresh tokens should be valid (in seconds). OAUTH_ISSUE_REFRESH_TOKENS must be set to TRUE.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_refresh_token_validity OauthIntegrationForPartnerApplications#oauth_refresh_token_validity}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder oauthRefreshTokenValidity(java.lang.Number oauthRefreshTokenValidity) {
this.oauthRefreshTokenValidity = oauthRefreshTokenValidity;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getOauthUseSecondaryRoles}
* @param oauthUseSecondaryRoles Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
* Valid options are: `IMPLICIT` | `NONE`.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/oauth_integration_for_partner_applications#oauth_use_secondary_roles OauthIntegrationForPartnerApplications#oauth_use_secondary_roles}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder oauthUseSecondaryRoles(java.lang.String oauthUseSecondaryRoles) {
this.oauthUseSecondaryRoles = oauthUseSecondaryRoles;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getConnection}
* @param connection the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection) {
this.connection = connection;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getConnection}
* @param connection the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection) {
this.connection = connection;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getCount}
* @param count the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder count(java.lang.Number count) {
this.count = count;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getCount}
* @param count the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder count(com.hashicorp.cdktf.TerraformCount count) {
this.count = count;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getDependsOn}
* @param dependsOn the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder dependsOn(java.util.List dependsOn) {
this.dependsOn = (java.util.List)dependsOn;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getForEach}
* @param forEach the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach) {
this.forEach = forEach;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getLifecycle}
* @param lifecycle the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle) {
this.lifecycle = lifecycle;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getProvider}
* @param provider the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder provider(com.hashicorp.cdktf.TerraformProvider provider) {
this.provider = provider;
return this;
}
/**
* Sets the value of {@link OauthIntegrationForPartnerApplicationsConfig#getProvisioners}
* @param provisioners the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder provisioners(java.util.List provisioners) {
this.provisioners = (java.util.List)provisioners;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link OauthIntegrationForPartnerApplicationsConfig}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public OauthIntegrationForPartnerApplicationsConfig build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link OauthIntegrationForPartnerApplicationsConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements OauthIntegrationForPartnerApplicationsConfig {
private final java.util.List blockedRolesList;
private final java.lang.String name;
private final java.lang.String oauthClient;
private final java.lang.String comment;
private final java.lang.String enabled;
private final java.lang.String id;
private final java.lang.String oauthIssueRefreshTokens;
private final java.lang.String oauthRedirectUri;
private final java.lang.Number oauthRefreshTokenValidity;
private final java.lang.String oauthUseSecondaryRoles;
private final java.lang.Object connection;
private final java.lang.Object count;
private final java.util.List dependsOn;
private final com.hashicorp.cdktf.ITerraformIterator forEach;
private final com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle;
private final com.hashicorp.cdktf.TerraformProvider provider;
private final java.util.List provisioners;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.blockedRolesList = software.amazon.jsii.Kernel.get(this, "blockedRolesList", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.oauthClient = software.amazon.jsii.Kernel.get(this, "oauthClient", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.comment = software.amazon.jsii.Kernel.get(this, "comment", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.enabled = software.amazon.jsii.Kernel.get(this, "enabled", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.id = software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.oauthIssueRefreshTokens = software.amazon.jsii.Kernel.get(this, "oauthIssueRefreshTokens", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.oauthRedirectUri = software.amazon.jsii.Kernel.get(this, "oauthRedirectUri", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.oauthRefreshTokenValidity = software.amazon.jsii.Kernel.get(this, "oauthRefreshTokenValidity", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.oauthUseSecondaryRoles = software.amazon.jsii.Kernel.get(this, "oauthUseSecondaryRoles", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.connection = software.amazon.jsii.Kernel.get(this, "connection", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.count = software.amazon.jsii.Kernel.get(this, "count", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.dependsOn = software.amazon.jsii.Kernel.get(this, "dependsOn", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.ITerraformDependable.class)));
this.forEach = software.amazon.jsii.Kernel.get(this, "forEach", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.ITerraformIterator.class));
this.lifecycle = software.amazon.jsii.Kernel.get(this, "lifecycle", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.TerraformResourceLifecycle.class));
this.provider = software.amazon.jsii.Kernel.get(this, "provider", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.TerraformProvider.class));
this.provisioners = software.amazon.jsii.Kernel.get(this, "provisioners", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.blockedRolesList = java.util.Objects.requireNonNull(builder.blockedRolesList, "blockedRolesList is required");
this.name = java.util.Objects.requireNonNull(builder.name, "name is required");
this.oauthClient = java.util.Objects.requireNonNull(builder.oauthClient, "oauthClient is required");
this.comment = builder.comment;
this.enabled = builder.enabled;
this.id = builder.id;
this.oauthIssueRefreshTokens = builder.oauthIssueRefreshTokens;
this.oauthRedirectUri = builder.oauthRedirectUri;
this.oauthRefreshTokenValidity = builder.oauthRefreshTokenValidity;
this.oauthUseSecondaryRoles = builder.oauthUseSecondaryRoles;
this.connection = builder.connection;
this.count = builder.count;
this.dependsOn = (java.util.List)builder.dependsOn;
this.forEach = builder.forEach;
this.lifecycle = builder.lifecycle;
this.provider = builder.provider;
this.provisioners = (java.util.List)builder.provisioners;
}
@Override
public final java.util.List getBlockedRolesList() {
return this.blockedRolesList;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final java.lang.String getOauthClient() {
return this.oauthClient;
}
@Override
public final java.lang.String getComment() {
return this.comment;
}
@Override
public final java.lang.String getEnabled() {
return this.enabled;
}
@Override
public final java.lang.String getId() {
return this.id;
}
@Override
public final java.lang.String getOauthIssueRefreshTokens() {
return this.oauthIssueRefreshTokens;
}
@Override
public final java.lang.String getOauthRedirectUri() {
return this.oauthRedirectUri;
}
@Override
public final java.lang.Number getOauthRefreshTokenValidity() {
return this.oauthRefreshTokenValidity;
}
@Override
public final java.lang.String getOauthUseSecondaryRoles() {
return this.oauthUseSecondaryRoles;
}
@Override
public final java.lang.Object getConnection() {
return this.connection;
}
@Override
public final java.lang.Object getCount() {
return this.count;
}
@Override
public final java.util.List getDependsOn() {
return this.dependsOn;
}
@Override
public final com.hashicorp.cdktf.ITerraformIterator getForEach() {
return this.forEach;
}
@Override
public final com.hashicorp.cdktf.TerraformResourceLifecycle getLifecycle() {
return this.lifecycle;
}
@Override
public final com.hashicorp.cdktf.TerraformProvider getProvider() {
return this.provider;
}
@Override
public final java.util.List getProvisioners() {
return this.provisioners;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
data.set("blockedRolesList", om.valueToTree(this.getBlockedRolesList()));
data.set("name", om.valueToTree(this.getName()));
data.set("oauthClient", om.valueToTree(this.getOauthClient()));
if (this.getComment() != null) {
data.set("comment", om.valueToTree(this.getComment()));
}
if (this.getEnabled() != null) {
data.set("enabled", om.valueToTree(this.getEnabled()));
}
if (this.getId() != null) {
data.set("id", om.valueToTree(this.getId()));
}
if (this.getOauthIssueRefreshTokens() != null) {
data.set("oauthIssueRefreshTokens", om.valueToTree(this.getOauthIssueRefreshTokens()));
}
if (this.getOauthRedirectUri() != null) {
data.set("oauthRedirectUri", om.valueToTree(this.getOauthRedirectUri()));
}
if (this.getOauthRefreshTokenValidity() != null) {
data.set("oauthRefreshTokenValidity", om.valueToTree(this.getOauthRefreshTokenValidity()));
}
if (this.getOauthUseSecondaryRoles() != null) {
data.set("oauthUseSecondaryRoles", om.valueToTree(this.getOauthUseSecondaryRoles()));
}
if (this.getConnection() != null) {
data.set("connection", om.valueToTree(this.getConnection()));
}
if (this.getCount() != null) {
data.set("count", om.valueToTree(this.getCount()));
}
if (this.getDependsOn() != null) {
data.set("dependsOn", om.valueToTree(this.getDependsOn()));
}
if (this.getForEach() != null) {
data.set("forEach", om.valueToTree(this.getForEach()));
}
if (this.getLifecycle() != null) {
data.set("lifecycle", om.valueToTree(this.getLifecycle()));
}
if (this.getProvider() != null) {
data.set("provider", om.valueToTree(this.getProvider()));
}
if (this.getProvisioners() != null) {
data.set("provisioners", om.valueToTree(this.getProvisioners()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@cdktf/provider-snowflake.oauthIntegrationForPartnerApplications.OauthIntegrationForPartnerApplicationsConfig"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
OauthIntegrationForPartnerApplicationsConfig.Jsii$Proxy that = (OauthIntegrationForPartnerApplicationsConfig.Jsii$Proxy) o;
if (!blockedRolesList.equals(that.blockedRolesList)) return false;
if (!name.equals(that.name)) return false;
if (!oauthClient.equals(that.oauthClient)) return false;
if (this.comment != null ? !this.comment.equals(that.comment) : that.comment != null) return false;
if (this.enabled != null ? !this.enabled.equals(that.enabled) : that.enabled != null) return false;
if (this.id != null ? !this.id.equals(that.id) : that.id != null) return false;
if (this.oauthIssueRefreshTokens != null ? !this.oauthIssueRefreshTokens.equals(that.oauthIssueRefreshTokens) : that.oauthIssueRefreshTokens != null) return false;
if (this.oauthRedirectUri != null ? !this.oauthRedirectUri.equals(that.oauthRedirectUri) : that.oauthRedirectUri != null) return false;
if (this.oauthRefreshTokenValidity != null ? !this.oauthRefreshTokenValidity.equals(that.oauthRefreshTokenValidity) : that.oauthRefreshTokenValidity != null) return false;
if (this.oauthUseSecondaryRoles != null ? !this.oauthUseSecondaryRoles.equals(that.oauthUseSecondaryRoles) : that.oauthUseSecondaryRoles != null) return false;
if (this.connection != null ? !this.connection.equals(that.connection) : that.connection != null) return false;
if (this.count != null ? !this.count.equals(that.count) : that.count != null) return false;
if (this.dependsOn != null ? !this.dependsOn.equals(that.dependsOn) : that.dependsOn != null) return false;
if (this.forEach != null ? !this.forEach.equals(that.forEach) : that.forEach != null) return false;
if (this.lifecycle != null ? !this.lifecycle.equals(that.lifecycle) : that.lifecycle != null) return false;
if (this.provider != null ? !this.provider.equals(that.provider) : that.provider != null) return false;
return this.provisioners != null ? this.provisioners.equals(that.provisioners) : that.provisioners == null;
}
@Override
public final int hashCode() {
int result = this.blockedRolesList.hashCode();
result = 31 * result + (this.name.hashCode());
result = 31 * result + (this.oauthClient.hashCode());
result = 31 * result + (this.comment != null ? this.comment.hashCode() : 0);
result = 31 * result + (this.enabled != null ? this.enabled.hashCode() : 0);
result = 31 * result + (this.id != null ? this.id.hashCode() : 0);
result = 31 * result + (this.oauthIssueRefreshTokens != null ? this.oauthIssueRefreshTokens.hashCode() : 0);
result = 31 * result + (this.oauthRedirectUri != null ? this.oauthRedirectUri.hashCode() : 0);
result = 31 * result + (this.oauthRefreshTokenValidity != null ? this.oauthRefreshTokenValidity.hashCode() : 0);
result = 31 * result + (this.oauthUseSecondaryRoles != null ? this.oauthUseSecondaryRoles.hashCode() : 0);
result = 31 * result + (this.connection != null ? this.connection.hashCode() : 0);
result = 31 * result + (this.count != null ? this.count.hashCode() : 0);
result = 31 * result + (this.dependsOn != null ? this.dependsOn.hashCode() : 0);
result = 31 * result + (this.forEach != null ? this.forEach.hashCode() : 0);
result = 31 * result + (this.lifecycle != null ? this.lifecycle.hashCode() : 0);
result = 31 * result + (this.provider != null ? this.provider.hashCode() : 0);
result = 31 * result + (this.provisioners != null ? this.provisioners.hashCode() : 0);
return result;
}
}
}