com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleConfig Maven / Gradle / Ivy
Show all versions of cdktf-provider-snowflake Show documentation
package com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.434Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.grantPrivilegesToAccountRole.GrantPrivilegesToAccountRoleConfig")
@software.amazon.jsii.Jsii.Proxy(GrantPrivilegesToAccountRoleConfig.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface GrantPrivilegesToAccountRoleConfig extends software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments {
/**
* The fully qualified name of the account role to which privileges will be granted.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#account_role_name GrantPrivilegesToAccountRole#account_role_name}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getAccountRoleName();
/**
* Grant all privileges on the account role.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#all_privileges GrantPrivilegesToAccountRole#all_privileges}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getAllPrivileges() {
return null;
}
/**
* If true, the resource will always produce a “plan” and on “apply” it will re-grant defined privileges.
*
* It is supposed to be used only in “grant privileges on all X’s in database / schema Y” or “grant all privileges to X” scenarios to make sure that every new object in a given database / schema is granted by the account role and every new privilege is granted to the database role. Important note: this flag is not compliant with the Terraform assumptions of the config being eventually convergent (producing an empty plan).
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#always_apply GrantPrivilegesToAccountRole#always_apply}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getAlwaysApply() {
return null;
}
/**
* This is a helper field and should not be set.
*
* Its main purpose is to help to achieve the functionality described by the always_apply field.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#always_apply_trigger GrantPrivilegesToAccountRole#always_apply_trigger}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getAlwaysApplyTrigger() {
return null;
}
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#id GrantPrivilegesToAccountRole#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;
}
/**
* If true, the privileges will be granted on the account.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#on_account GrantPrivilegesToAccountRole#on_account}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getOnAccount() {
return null;
}
/**
* on_account_object block.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#on_account_object GrantPrivilegesToAccountRole#on_account_object}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnAccountObject getOnAccountObject() {
return null;
}
/**
* on_schema block.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#on_schema GrantPrivilegesToAccountRole#on_schema}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchema getOnSchema() {
return null;
}
/**
* on_schema_object block.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#on_schema_object GrantPrivilegesToAccountRole#on_schema_object}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObject getOnSchemaObject() {
return null;
}
/**
* The privileges to grant on the account role.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#privileges GrantPrivilegesToAccountRole#privileges}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getPrivileges() {
return null;
}
/**
* Specifies whether the grantee can grant the privileges to other users.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#with_grant_option GrantPrivilegesToAccountRole#with_grant_option}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getWithGrantOption() {
return null;
}
/**
* @return a {@link Builder} of {@link GrantPrivilegesToAccountRoleConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link GrantPrivilegesToAccountRoleConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String accountRoleName;
java.lang.Object allPrivileges;
java.lang.Object alwaysApply;
java.lang.String alwaysApplyTrigger;
java.lang.String id;
java.lang.Object onAccount;
com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnAccountObject onAccountObject;
com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchema onSchema;
com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObject onSchemaObject;
java.util.List privileges;
java.lang.Object withGrantOption;
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 GrantPrivilegesToAccountRoleConfig#getAccountRoleName}
* @param accountRoleName The fully qualified name of the account role to which privileges will be granted. This parameter is required.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#account_role_name GrantPrivilegesToAccountRole#account_role_name}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder accountRoleName(java.lang.String accountRoleName) {
this.accountRoleName = accountRoleName;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getAllPrivileges}
* @param allPrivileges Grant all privileges on the account role.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#all_privileges GrantPrivilegesToAccountRole#all_privileges}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder allPrivileges(java.lang.Boolean allPrivileges) {
this.allPrivileges = allPrivileges;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getAllPrivileges}
* @param allPrivileges Grant all privileges on the account role.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#all_privileges GrantPrivilegesToAccountRole#all_privileges}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder allPrivileges(com.hashicorp.cdktf.IResolvable allPrivileges) {
this.allPrivileges = allPrivileges;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getAlwaysApply}
* @param alwaysApply If true, the resource will always produce a “plan” and on “apply” it will re-grant defined privileges.
* It is supposed to be used only in “grant privileges on all X’s in database / schema Y” or “grant all privileges to X” scenarios to make sure that every new object in a given database / schema is granted by the account role and every new privilege is granted to the database role. Important note: this flag is not compliant with the Terraform assumptions of the config being eventually convergent (producing an empty plan).
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#always_apply GrantPrivilegesToAccountRole#always_apply}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder alwaysApply(java.lang.Boolean alwaysApply) {
this.alwaysApply = alwaysApply;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getAlwaysApply}
* @param alwaysApply If true, the resource will always produce a “plan” and on “apply” it will re-grant defined privileges.
* It is supposed to be used only in “grant privileges on all X’s in database / schema Y” or “grant all privileges to X” scenarios to make sure that every new object in a given database / schema is granted by the account role and every new privilege is granted to the database role. Important note: this flag is not compliant with the Terraform assumptions of the config being eventually convergent (producing an empty plan).
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#always_apply GrantPrivilegesToAccountRole#always_apply}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder alwaysApply(com.hashicorp.cdktf.IResolvable alwaysApply) {
this.alwaysApply = alwaysApply;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getAlwaysApplyTrigger}
* @param alwaysApplyTrigger This is a helper field and should not be set.
* Its main purpose is to help to achieve the functionality described by the always_apply field.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#always_apply_trigger GrantPrivilegesToAccountRole#always_apply_trigger}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder alwaysApplyTrigger(java.lang.String alwaysApplyTrigger) {
this.alwaysApplyTrigger = alwaysApplyTrigger;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getId}
* @param id Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#id GrantPrivilegesToAccountRole#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 GrantPrivilegesToAccountRoleConfig#getOnAccount}
* @param onAccount If true, the privileges will be granted on the account.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#on_account GrantPrivilegesToAccountRole#on_account}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onAccount(java.lang.Boolean onAccount) {
this.onAccount = onAccount;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getOnAccount}
* @param onAccount If true, the privileges will be granted on the account.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#on_account GrantPrivilegesToAccountRole#on_account}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onAccount(com.hashicorp.cdktf.IResolvable onAccount) {
this.onAccount = onAccount;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getOnAccountObject}
* @param onAccountObject on_account_object block.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#on_account_object GrantPrivilegesToAccountRole#on_account_object}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onAccountObject(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnAccountObject onAccountObject) {
this.onAccountObject = onAccountObject;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getOnSchema}
* @param onSchema on_schema block.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#on_schema GrantPrivilegesToAccountRole#on_schema}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onSchema(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchema onSchema) {
this.onSchema = onSchema;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getOnSchemaObject}
* @param onSchemaObject on_schema_object block.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#on_schema_object GrantPrivilegesToAccountRole#on_schema_object}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onSchemaObject(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObject onSchemaObject) {
this.onSchemaObject = onSchemaObject;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getPrivileges}
* @param privileges The privileges to grant on the account role.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#privileges GrantPrivilegesToAccountRole#privileges}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder privileges(java.util.List privileges) {
this.privileges = privileges;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getWithGrantOption}
* @param withGrantOption Specifies whether the grantee can grant the privileges to other users.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#with_grant_option GrantPrivilegesToAccountRole#with_grant_option}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder withGrantOption(java.lang.Boolean withGrantOption) {
this.withGrantOption = withGrantOption;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#getWithGrantOption}
* @param withGrantOption Specifies whether the grantee can grant the privileges to other users.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_account_role#with_grant_option GrantPrivilegesToAccountRole#with_grant_option}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder withGrantOption(com.hashicorp.cdktf.IResolvable withGrantOption) {
this.withGrantOption = withGrantOption;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToAccountRoleConfig#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 GrantPrivilegesToAccountRoleConfig#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 GrantPrivilegesToAccountRoleConfig#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 GrantPrivilegesToAccountRoleConfig#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 GrantPrivilegesToAccountRoleConfig#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 GrantPrivilegesToAccountRoleConfig#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 GrantPrivilegesToAccountRoleConfig#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 GrantPrivilegesToAccountRoleConfig#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 GrantPrivilegesToAccountRoleConfig#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 GrantPrivilegesToAccountRoleConfig}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public GrantPrivilegesToAccountRoleConfig build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link GrantPrivilegesToAccountRoleConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GrantPrivilegesToAccountRoleConfig {
private final java.lang.String accountRoleName;
private final java.lang.Object allPrivileges;
private final java.lang.Object alwaysApply;
private final java.lang.String alwaysApplyTrigger;
private final java.lang.String id;
private final java.lang.Object onAccount;
private final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnAccountObject onAccountObject;
private final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchema onSchema;
private final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObject onSchemaObject;
private final java.util.List privileges;
private final java.lang.Object withGrantOption;
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.accountRoleName = software.amazon.jsii.Kernel.get(this, "accountRoleName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.allPrivileges = software.amazon.jsii.Kernel.get(this, "allPrivileges", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.alwaysApply = software.amazon.jsii.Kernel.get(this, "alwaysApply", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.alwaysApplyTrigger = software.amazon.jsii.Kernel.get(this, "alwaysApplyTrigger", 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.onAccount = software.amazon.jsii.Kernel.get(this, "onAccount", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.onAccountObject = software.amazon.jsii.Kernel.get(this, "onAccountObject", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnAccountObject.class));
this.onSchema = software.amazon.jsii.Kernel.get(this, "onSchema", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchema.class));
this.onSchemaObject = software.amazon.jsii.Kernel.get(this, "onSchemaObject", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObject.class));
this.privileges = software.amazon.jsii.Kernel.get(this, "privileges", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.withGrantOption = software.amazon.jsii.Kernel.get(this, "withGrantOption", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.accountRoleName = java.util.Objects.requireNonNull(builder.accountRoleName, "accountRoleName is required");
this.allPrivileges = builder.allPrivileges;
this.alwaysApply = builder.alwaysApply;
this.alwaysApplyTrigger = builder.alwaysApplyTrigger;
this.id = builder.id;
this.onAccount = builder.onAccount;
this.onAccountObject = builder.onAccountObject;
this.onSchema = builder.onSchema;
this.onSchemaObject = builder.onSchemaObject;
this.privileges = builder.privileges;
this.withGrantOption = builder.withGrantOption;
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.lang.String getAccountRoleName() {
return this.accountRoleName;
}
@Override
public final java.lang.Object getAllPrivileges() {
return this.allPrivileges;
}
@Override
public final java.lang.Object getAlwaysApply() {
return this.alwaysApply;
}
@Override
public final java.lang.String getAlwaysApplyTrigger() {
return this.alwaysApplyTrigger;
}
@Override
public final java.lang.String getId() {
return this.id;
}
@Override
public final java.lang.Object getOnAccount() {
return this.onAccount;
}
@Override
public final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnAccountObject getOnAccountObject() {
return this.onAccountObject;
}
@Override
public final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchema getOnSchema() {
return this.onSchema;
}
@Override
public final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObject getOnSchemaObject() {
return this.onSchemaObject;
}
@Override
public final java.util.List getPrivileges() {
return this.privileges;
}
@Override
public final java.lang.Object getWithGrantOption() {
return this.withGrantOption;
}
@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("accountRoleName", om.valueToTree(this.getAccountRoleName()));
if (this.getAllPrivileges() != null) {
data.set("allPrivileges", om.valueToTree(this.getAllPrivileges()));
}
if (this.getAlwaysApply() != null) {
data.set("alwaysApply", om.valueToTree(this.getAlwaysApply()));
}
if (this.getAlwaysApplyTrigger() != null) {
data.set("alwaysApplyTrigger", om.valueToTree(this.getAlwaysApplyTrigger()));
}
if (this.getId() != null) {
data.set("id", om.valueToTree(this.getId()));
}
if (this.getOnAccount() != null) {
data.set("onAccount", om.valueToTree(this.getOnAccount()));
}
if (this.getOnAccountObject() != null) {
data.set("onAccountObject", om.valueToTree(this.getOnAccountObject()));
}
if (this.getOnSchema() != null) {
data.set("onSchema", om.valueToTree(this.getOnSchema()));
}
if (this.getOnSchemaObject() != null) {
data.set("onSchemaObject", om.valueToTree(this.getOnSchemaObject()));
}
if (this.getPrivileges() != null) {
data.set("privileges", om.valueToTree(this.getPrivileges()));
}
if (this.getWithGrantOption() != null) {
data.set("withGrantOption", om.valueToTree(this.getWithGrantOption()));
}
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.grantPrivilegesToAccountRole.GrantPrivilegesToAccountRoleConfig"));
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;
GrantPrivilegesToAccountRoleConfig.Jsii$Proxy that = (GrantPrivilegesToAccountRoleConfig.Jsii$Proxy) o;
if (!accountRoleName.equals(that.accountRoleName)) return false;
if (this.allPrivileges != null ? !this.allPrivileges.equals(that.allPrivileges) : that.allPrivileges != null) return false;
if (this.alwaysApply != null ? !this.alwaysApply.equals(that.alwaysApply) : that.alwaysApply != null) return false;
if (this.alwaysApplyTrigger != null ? !this.alwaysApplyTrigger.equals(that.alwaysApplyTrigger) : that.alwaysApplyTrigger != null) return false;
if (this.id != null ? !this.id.equals(that.id) : that.id != null) return false;
if (this.onAccount != null ? !this.onAccount.equals(that.onAccount) : that.onAccount != null) return false;
if (this.onAccountObject != null ? !this.onAccountObject.equals(that.onAccountObject) : that.onAccountObject != null) return false;
if (this.onSchema != null ? !this.onSchema.equals(that.onSchema) : that.onSchema != null) return false;
if (this.onSchemaObject != null ? !this.onSchemaObject.equals(that.onSchemaObject) : that.onSchemaObject != null) return false;
if (this.privileges != null ? !this.privileges.equals(that.privileges) : that.privileges != null) return false;
if (this.withGrantOption != null ? !this.withGrantOption.equals(that.withGrantOption) : that.withGrantOption != 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.accountRoleName.hashCode();
result = 31 * result + (this.allPrivileges != null ? this.allPrivileges.hashCode() : 0);
result = 31 * result + (this.alwaysApply != null ? this.alwaysApply.hashCode() : 0);
result = 31 * result + (this.alwaysApplyTrigger != null ? this.alwaysApplyTrigger.hashCode() : 0);
result = 31 * result + (this.id != null ? this.id.hashCode() : 0);
result = 31 * result + (this.onAccount != null ? this.onAccount.hashCode() : 0);
result = 31 * result + (this.onAccountObject != null ? this.onAccountObject.hashCode() : 0);
result = 31 * result + (this.onSchema != null ? this.onSchema.hashCode() : 0);
result = 31 * result + (this.onSchemaObject != null ? this.onSchemaObject.hashCode() : 0);
result = 31 * result + (this.privileges != null ? this.privileges.hashCode() : 0);
result = 31 * result + (this.withGrantOption != null ? this.withGrantOption.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;
}
}
}