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

com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObject Maven / Gradle / Ivy

The newest version!
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.436Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.grantPrivilegesToAccountRole.GrantPrivilegesToAccountRoleOnSchemaObject")
@software.amazon.jsii.Jsii.Proxy(GrantPrivilegesToAccountRoleOnSchemaObject.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface GrantPrivilegesToAccountRoleOnSchemaObject 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_account_role#all GrantPrivilegesToAccountRole#all} */ @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.GrantPrivilegesToAccountRoleOnSchemaObjectAll 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_account_role#future GrantPrivilegesToAccountRole#future} */ @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.GrantPrivilegesToAccountRoleOnSchemaObjectFuture 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_account_role#object_name GrantPrivilegesToAccountRole#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_account_role#object_type GrantPrivilegesToAccountRole#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 GrantPrivilegesToAccountRoleOnSchemaObject} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link GrantPrivilegesToAccountRoleOnSchemaObject} */ @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_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectAll all; com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectFuture future; java.lang.String objectName; java.lang.String objectType; /** * Sets the value of {@link GrantPrivilegesToAccountRoleOnSchemaObject#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_account_role#all GrantPrivilegesToAccountRole#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_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectAll all) { this.all = all; return this; } /** * Sets the value of {@link GrantPrivilegesToAccountRoleOnSchemaObject#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_account_role#future GrantPrivilegesToAccountRole#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_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectFuture future) { this.future = future; return this; } /** * Sets the value of {@link GrantPrivilegesToAccountRoleOnSchemaObject#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_account_role#object_name GrantPrivilegesToAccountRole#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 GrantPrivilegesToAccountRoleOnSchemaObject#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_account_role#object_type GrantPrivilegesToAccountRole#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 GrantPrivilegesToAccountRoleOnSchemaObject} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public GrantPrivilegesToAccountRoleOnSchemaObject build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link GrantPrivilegesToAccountRoleOnSchemaObject} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GrantPrivilegesToAccountRoleOnSchemaObject { private final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectAll all; private final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectFuture 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_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectAll.class)); this.future = software.amazon.jsii.Kernel.get(this, "future", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectFuture.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_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectAll getAll() { return this.all; } @Override public final com.hashicorp.cdktf.providers.snowflake.grant_privileges_to_account_role.GrantPrivilegesToAccountRoleOnSchemaObjectFuture 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.grantPrivilegesToAccountRole.GrantPrivilegesToAccountRoleOnSchemaObject")); 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; GrantPrivilegesToAccountRoleOnSchemaObject.Jsii$Proxy that = (GrantPrivilegesToAccountRoleOnSchemaObject.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; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy