com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_share.GrantPrivilegesToShareConfig Maven / Gradle / Ivy
Show all versions of cdktf-provider-snowflake Show documentation
package com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_share;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.455Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.grantPrivilegesToShare.GrantPrivilegesToShareConfig")
@software.amazon.jsii.Jsii.Proxy(GrantPrivilegesToShareConfig.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface GrantPrivilegesToShareConfig extends software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments {
/**
* The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_share#privileges GrantPrivilegesToShare#privileges}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.util.List getPrivileges();
/**
* The fully qualified name of the share on 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_share#to_share GrantPrivilegesToShare#to_share}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getToShare();
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_share#id GrantPrivilegesToShare#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;
}
/**
* The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_share#on_all_tables_in_schema GrantPrivilegesToShare#on_all_tables_in_schema}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getOnAllTablesInSchema() {
return null;
}
/**
* The fully qualified name of the database on 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_share#on_database GrantPrivilegesToShare#on_database}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getOnDatabase() {
return null;
}
/**
* The fully qualified name of the schema on 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_share#on_schema GrantPrivilegesToShare#on_schema}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getOnSchema() {
return null;
}
/**
* The fully qualified name of the table on 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_share#on_table GrantPrivilegesToShare#on_table}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getOnTable() {
return null;
}
/**
* The fully qualified name of the tag on 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_share#on_tag GrantPrivilegesToShare#on_tag}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getOnTag() {
return null;
}
/**
* The fully qualified name of the view on 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_share#on_view GrantPrivilegesToShare#on_view}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getOnView() {
return null;
}
/**
* @return a {@link Builder} of {@link GrantPrivilegesToShareConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link GrantPrivilegesToShareConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.util.List privileges;
java.lang.String toShare;
java.lang.String id;
java.lang.String onAllTablesInSchema;
java.lang.String onDatabase;
java.lang.String onSchema;
java.lang.String onTable;
java.lang.String onTag;
java.lang.String onView;
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 GrantPrivilegesToShareConfig#getPrivileges}
* @param privileges The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax. 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_share#privileges GrantPrivilegesToShare#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 GrantPrivilegesToShareConfig#getToShare}
* @param toShare The fully qualified name of the share on 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_share#to_share GrantPrivilegesToShare#to_share}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder toShare(java.lang.String toShare) {
this.toShare = toShare;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToShareConfig#getId}
* @param id Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_share#id GrantPrivilegesToShare#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 GrantPrivilegesToShareConfig#getOnAllTablesInSchema}
* @param onAllTablesInSchema The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_share#on_all_tables_in_schema GrantPrivilegesToShare#on_all_tables_in_schema}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onAllTablesInSchema(java.lang.String onAllTablesInSchema) {
this.onAllTablesInSchema = onAllTablesInSchema;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToShareConfig#getOnDatabase}
* @param onDatabase The fully qualified name of the database on 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_share#on_database GrantPrivilegesToShare#on_database}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onDatabase(java.lang.String onDatabase) {
this.onDatabase = onDatabase;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToShareConfig#getOnSchema}
* @param onSchema The fully qualified name of the schema on 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_share#on_schema GrantPrivilegesToShare#on_schema}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onSchema(java.lang.String onSchema) {
this.onSchema = onSchema;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToShareConfig#getOnTable}
* @param onTable The fully qualified name of the table on 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_share#on_table GrantPrivilegesToShare#on_table}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onTable(java.lang.String onTable) {
this.onTable = onTable;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToShareConfig#getOnTag}
* @param onTag The fully qualified name of the tag on 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_share#on_tag GrantPrivilegesToShare#on_tag}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onTag(java.lang.String onTag) {
this.onTag = onTag;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToShareConfig#getOnView}
* @param onView The fully qualified name of the view on 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_share#on_view GrantPrivilegesToShare#on_view}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder onView(java.lang.String onView) {
this.onView = onView;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToShareConfig#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 GrantPrivilegesToShareConfig#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 GrantPrivilegesToShareConfig#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 GrantPrivilegesToShareConfig#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 GrantPrivilegesToShareConfig#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 GrantPrivilegesToShareConfig#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 GrantPrivilegesToShareConfig#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 GrantPrivilegesToShareConfig#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 GrantPrivilegesToShareConfig#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 GrantPrivilegesToShareConfig}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public GrantPrivilegesToShareConfig build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link GrantPrivilegesToShareConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GrantPrivilegesToShareConfig {
private final java.util.List privileges;
private final java.lang.String toShare;
private final java.lang.String id;
private final java.lang.String onAllTablesInSchema;
private final java.lang.String onDatabase;
private final java.lang.String onSchema;
private final java.lang.String onTable;
private final java.lang.String onTag;
private final java.lang.String onView;
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.privileges = software.amazon.jsii.Kernel.get(this, "privileges", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.toShare = software.amazon.jsii.Kernel.get(this, "toShare", 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.onAllTablesInSchema = software.amazon.jsii.Kernel.get(this, "onAllTablesInSchema", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.onDatabase = software.amazon.jsii.Kernel.get(this, "onDatabase", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.onSchema = software.amazon.jsii.Kernel.get(this, "onSchema", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.onTable = software.amazon.jsii.Kernel.get(this, "onTable", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.onTag = software.amazon.jsii.Kernel.get(this, "onTag", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.onView = software.amazon.jsii.Kernel.get(this, "onView", 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.privileges = java.util.Objects.requireNonNull(builder.privileges, "privileges is required");
this.toShare = java.util.Objects.requireNonNull(builder.toShare, "toShare is required");
this.id = builder.id;
this.onAllTablesInSchema = builder.onAllTablesInSchema;
this.onDatabase = builder.onDatabase;
this.onSchema = builder.onSchema;
this.onTable = builder.onTable;
this.onTag = builder.onTag;
this.onView = builder.onView;
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 getPrivileges() {
return this.privileges;
}
@Override
public final java.lang.String getToShare() {
return this.toShare;
}
@Override
public final java.lang.String getId() {
return this.id;
}
@Override
public final java.lang.String getOnAllTablesInSchema() {
return this.onAllTablesInSchema;
}
@Override
public final java.lang.String getOnDatabase() {
return this.onDatabase;
}
@Override
public final java.lang.String getOnSchema() {
return this.onSchema;
}
@Override
public final java.lang.String getOnTable() {
return this.onTable;
}
@Override
public final java.lang.String getOnTag() {
return this.onTag;
}
@Override
public final java.lang.String getOnView() {
return this.onView;
}
@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("privileges", om.valueToTree(this.getPrivileges()));
data.set("toShare", om.valueToTree(this.getToShare()));
if (this.getId() != null) {
data.set("id", om.valueToTree(this.getId()));
}
if (this.getOnAllTablesInSchema() != null) {
data.set("onAllTablesInSchema", om.valueToTree(this.getOnAllTablesInSchema()));
}
if (this.getOnDatabase() != null) {
data.set("onDatabase", om.valueToTree(this.getOnDatabase()));
}
if (this.getOnSchema() != null) {
data.set("onSchema", om.valueToTree(this.getOnSchema()));
}
if (this.getOnTable() != null) {
data.set("onTable", om.valueToTree(this.getOnTable()));
}
if (this.getOnTag() != null) {
data.set("onTag", om.valueToTree(this.getOnTag()));
}
if (this.getOnView() != null) {
data.set("onView", om.valueToTree(this.getOnView()));
}
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.grantPrivilegesToShare.GrantPrivilegesToShareConfig"));
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;
GrantPrivilegesToShareConfig.Jsii$Proxy that = (GrantPrivilegesToShareConfig.Jsii$Proxy) o;
if (!privileges.equals(that.privileges)) return false;
if (!toShare.equals(that.toShare)) return false;
if (this.id != null ? !this.id.equals(that.id) : that.id != null) return false;
if (this.onAllTablesInSchema != null ? !this.onAllTablesInSchema.equals(that.onAllTablesInSchema) : that.onAllTablesInSchema != null) return false;
if (this.onDatabase != null ? !this.onDatabase.equals(that.onDatabase) : that.onDatabase != null) return false;
if (this.onSchema != null ? !this.onSchema.equals(that.onSchema) : that.onSchema != null) return false;
if (this.onTable != null ? !this.onTable.equals(that.onTable) : that.onTable != null) return false;
if (this.onTag != null ? !this.onTag.equals(that.onTag) : that.onTag != null) return false;
if (this.onView != null ? !this.onView.equals(that.onView) : that.onView != 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.privileges.hashCode();
result = 31 * result + (this.toShare.hashCode());
result = 31 * result + (this.id != null ? this.id.hashCode() : 0);
result = 31 * result + (this.onAllTablesInSchema != null ? this.onAllTablesInSchema.hashCode() : 0);
result = 31 * result + (this.onDatabase != null ? this.onDatabase.hashCode() : 0);
result = 31 * result + (this.onSchema != null ? this.onSchema.hashCode() : 0);
result = 31 * result + (this.onTable != null ? this.onTable.hashCode() : 0);
result = 31 * result + (this.onTag != null ? this.onTag.hashCode() : 0);
result = 31 * result + (this.onView != null ? this.onView.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;
}
}
}