com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOn Maven / Gradle / Ivy
Show all versions of cdktf-provider-snowflake Show documentation
package com.hashicorp.cdktf.providers.snowflake.grant_ownership;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.431Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.grantOwnership.GrantOwnershipOn")
@software.amazon.jsii.Jsii.Proxy(GrantOwnershipOn.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface GrantOwnershipOn 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_ownership#all GrantOwnership#all}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOnAll getAll() {
return null;
}
/**
* future block.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_ownership#future GrantOwnership#future}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOnFuture getFuture() {
return null;
}
/**
* Specifies the identifier for the object on which you are transferring ownership.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_ownership#object_name GrantOwnership#object_name}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getObjectName() {
return null;
}
/**
* Specifies the type of object on which you are transferring ownership.
*
* Available values are: AGGREGATION POLICY | ALERT | AUTHENTICATION POLICY | COMPUTE POOL | DATA METRIC FUNCTION | DATABASE | DATABASE ROLE | DYNAMIC TABLE | EVENT TABLE | EXTERNAL TABLE | EXTERNAL VOLUME | FAILOVER GROUP | FILE FORMAT | FUNCTION | GIT REPOSITORY | HYBRID TABLE | ICEBERG TABLE | IMAGE REPOSITORY | INTEGRATION | MATERIALIZED VIEW | NETWORK POLICY | NETWORK RULE | PACKAGES POLICY | PIPE | PROCEDURE | MASKING POLICY | PASSWORD POLICY | PROJECTION POLICY | REPLICATION GROUP | ROLE | ROW ACCESS POLICY | SCHEMA | SESSION POLICY | SECRET | SEQUENCE | STAGE | STREAM | TABLE | TAG | TASK | USER | VIEW | WAREHOUSE
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_ownership#object_type GrantOwnership#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 GrantOwnershipOn}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link GrantOwnershipOn}
*/
@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_ownership.GrantOwnershipOnAll all;
com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOnFuture future;
java.lang.String objectName;
java.lang.String objectType;
/**
* Sets the value of {@link GrantOwnershipOn#getAll}
* @param all all block.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_ownership#all GrantOwnership#all}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder all(com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOnAll all) {
this.all = all;
return this;
}
/**
* Sets the value of {@link GrantOwnershipOn#getFuture}
* @param future future block.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_ownership#future GrantOwnership#future}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder future(com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOnFuture future) {
this.future = future;
return this;
}
/**
* Sets the value of {@link GrantOwnershipOn#getObjectName}
* @param objectName Specifies the identifier for the object on which you are transferring ownership.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_ownership#object_name GrantOwnership#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 GrantOwnershipOn#getObjectType}
* @param objectType Specifies the type of object on which you are transferring ownership.
* Available values are: AGGREGATION POLICY | ALERT | AUTHENTICATION POLICY | COMPUTE POOL | DATA METRIC FUNCTION | DATABASE | DATABASE ROLE | DYNAMIC TABLE | EVENT TABLE | EXTERNAL TABLE | EXTERNAL VOLUME | FAILOVER GROUP | FILE FORMAT | FUNCTION | GIT REPOSITORY | HYBRID TABLE | ICEBERG TABLE | IMAGE REPOSITORY | INTEGRATION | MATERIALIZED VIEW | NETWORK POLICY | NETWORK RULE | PACKAGES POLICY | PIPE | PROCEDURE | MASKING POLICY | PASSWORD POLICY | PROJECTION POLICY | REPLICATION GROUP | ROLE | ROW ACCESS POLICY | SCHEMA | SESSION POLICY | SECRET | SEQUENCE | STAGE | STREAM | TABLE | TAG | TASK | USER | VIEW | WAREHOUSE
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/grant_ownership#object_type GrantOwnership#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 GrantOwnershipOn}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public GrantOwnershipOn build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link GrantOwnershipOn}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GrantOwnershipOn {
private final com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOnAll all;
private final com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOnFuture 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_ownership.GrantOwnershipOnAll.class));
this.future = software.amazon.jsii.Kernel.get(this, "future", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOnFuture.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_ownership.GrantOwnershipOnAll getAll() {
return this.all;
}
@Override
public final com.hashicorp.cdktf.providers.snowflake.grant_ownership.GrantOwnershipOnFuture 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.grantOwnership.GrantOwnershipOn"));
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;
GrantOwnershipOn.Jsii$Proxy that = (GrantOwnershipOn.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;
}
}
}