com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObject Maven / Gradle / Ivy
Show all versions of cdktf-provider-snowflake Show documentation
package com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.442Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.grantPrivilegesToDatabaseRole.GrantPrivilegesToDatabaseRoleOnSchemaObject")
@software.amazon.jsii.Jsii.Proxy(GrantPrivilegesToDatabaseRoleOnSchemaObject.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface GrantPrivilegesToDatabaseRoleOnSchemaObject extends software.amazon.jsii.JsiiSerializable {
/**
* all block.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_database_role#all GrantPrivilegesToDatabaseRole#all}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectAll getAll() {
return null;
}
/**
* future block.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_database_role#future GrantPrivilegesToDatabaseRole#future}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectFuture getFuture() {
return null;
}
/**
* The fully qualified name of the object 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_database_role#object_name GrantPrivilegesToDatabaseRole#object_name}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getObjectName() {
return null;
}
/**
* The object type of the schema object on which privileges will be granted.
*
* Valid values are: AGGREGATION POLICY | ALERT | AUTHENTICATION POLICY | CORTEX SEARCH SERVICE | DATA METRIC FUNCTION | DYNAMIC TABLE | EVENT TABLE | EXTERNAL TABLE | FILE FORMAT | FUNCTION | GIT REPOSITORY | HYBRID TABLE | IMAGE REPOSITORY | ICEBERG TABLE | MASKING POLICY | MATERIALIZED VIEW | MODEL | NETWORK RULE | NOTEBOOK | PACKAGES POLICY | PASSWORD POLICY | PIPE | PROCEDURE | PROJECTION POLICY | ROW ACCESS POLICY | SECRET | SERVICE | SESSION POLICY | SEQUENCE | SNAPSHOT | STAGE | STREAM | TABLE | TAG | TASK | VIEW | STREAMLIT
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_database_role#object_type GrantPrivilegesToDatabaseRole#object_type}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getObjectType() {
return null;
}
/**
* @return a {@link Builder} of {@link GrantPrivilegesToDatabaseRoleOnSchemaObject}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link GrantPrivilegesToDatabaseRoleOnSchemaObject}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectAll all;
com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectFuture future;
java.lang.String objectName;
java.lang.String objectType;
/**
* Sets the value of {@link GrantPrivilegesToDatabaseRoleOnSchemaObject#getAll}
* @param all all block.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_database_role#all GrantPrivilegesToDatabaseRole#all}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder all(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectAll all) {
this.all = all;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToDatabaseRoleOnSchemaObject#getFuture}
* @param future future block.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_database_role#future GrantPrivilegesToDatabaseRole#future}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder future(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectFuture future) {
this.future = future;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToDatabaseRoleOnSchemaObject#getObjectName}
* @param objectName The fully qualified name of the object 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_database_role#object_name GrantPrivilegesToDatabaseRole#object_name}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder objectName(java.lang.String objectName) {
this.objectName = objectName;
return this;
}
/**
* Sets the value of {@link GrantPrivilegesToDatabaseRoleOnSchemaObject#getObjectType}
* @param objectType The object type of the schema object on which privileges will be granted.
* Valid values are: AGGREGATION POLICY | ALERT | AUTHENTICATION POLICY | CORTEX SEARCH SERVICE | DATA METRIC FUNCTION | DYNAMIC TABLE | EVENT TABLE | EXTERNAL TABLE | FILE FORMAT | FUNCTION | GIT REPOSITORY | HYBRID TABLE | IMAGE REPOSITORY | ICEBERG TABLE | MASKING POLICY | MATERIALIZED VIEW | MODEL | NETWORK RULE | NOTEBOOK | PACKAGES POLICY | PASSWORD POLICY | PIPE | PROCEDURE | PROJECTION POLICY | ROW ACCESS POLICY | SECRET | SERVICE | SESSION POLICY | SEQUENCE | SNAPSHOT | STAGE | STREAM | TABLE | TAG | TASK | VIEW | STREAMLIT
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_privileges_to_database_role#object_type GrantPrivilegesToDatabaseRole#object_type}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder objectType(java.lang.String objectType) {
this.objectType = objectType;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link GrantPrivilegesToDatabaseRoleOnSchemaObject}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public GrantPrivilegesToDatabaseRoleOnSchemaObject build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link GrantPrivilegesToDatabaseRoleOnSchemaObject}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GrantPrivilegesToDatabaseRoleOnSchemaObject {
private final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectAll all;
private final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectFuture future;
private final java.lang.String objectName;
private final java.lang.String objectType;
/**
* 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.all = software.amazon.jsii.Kernel.get(this, "all", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectAll.class));
this.future = software.amazon.jsii.Kernel.get(this, "future", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectFuture.class));
this.objectName = software.amazon.jsii.Kernel.get(this, "objectName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.objectType = software.amazon.jsii.Kernel.get(this, "objectType", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.all = builder.all;
this.future = builder.future;
this.objectName = builder.objectName;
this.objectType = builder.objectType;
}
@Override
public final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectAll getAll() {
return this.all;
}
@Override
public final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_database_role.GrantPrivilegesToDatabaseRoleOnSchemaObjectFuture getFuture() {
return this.future;
}
@Override
public final java.lang.String getObjectName() {
return this.objectName;
}
@Override
public final java.lang.String getObjectType() {
return this.objectType;
}
@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();
if (this.getAll() != null) {
data.set("all", om.valueToTree(this.getAll()));
}
if (this.getFuture() != null) {
data.set("future", om.valueToTree(this.getFuture()));
}
if (this.getObjectName() != null) {
data.set("objectName", om.valueToTree(this.getObjectName()));
}
if (this.getObjectType() != null) {
data.set("objectType", om.valueToTree(this.getObjectType()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@cdktf/provider-snowflake.grantPrivilegesToDatabaseRole.GrantPrivilegesToDatabaseRoleOnSchemaObject"));
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;
GrantPrivilegesToDatabaseRoleOnSchemaObject.Jsii$Proxy that = (GrantPrivilegesToDatabaseRoleOnSchemaObject.Jsii$Proxy) o;
if (this.all != null ? !this.all.equals(that.all) : that.all != null) return false;
if (this.future != null ? !this.future.equals(that.future) : that.future != null) return false;
if (this.objectName != null ? !this.objectName.equals(that.objectName) : that.objectName != null) return false;
return this.objectType != null ? this.objectType.equals(that.objectType) : that.objectType == null;
}
@Override
public final int hashCode() {
int result = this.all != null ? this.all.hashCode() : 0;
result = 31 * result + (this.future != null ? this.future.hashCode() : 0);
result = 31 * result + (this.objectName != null ? this.objectName.hashCode() : 0);
result = 31 * result + (this.objectType != null ? this.objectType.hashCode() : 0);
return result;
}
}
}