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

com.aliyun.ros.cdk.maxcompute.RosTable Maven / Gradle / Ivy

Go to download

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

The newest version!
package com.aliyun.ros.cdk.maxcompute;

/**
 * This class is a base encapsulation around the ROS resource type ALIYUN::MaxCompute::Table, which is used to create a table.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:09.257Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.maxcompute.$Module.class, fqn = "@alicloud/ros-cdk-maxcompute.RosTable")
public class RosTable extends com.aliyun.ros.cdk.core.RosResource {

    protected RosTable(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected RosTable(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    static {
        ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.maxcompute.RosTable.class, "ROS_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
    }

    /**
     * @param scope 
  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param props
  • resource properties.
This parameter is required. * @param enableResourcePropertyConstraint This parameter is required. */ public RosTable(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.maxcompute.RosTableProps props, final @org.jetbrains.annotations.NotNull java.lang.Boolean enableResourcePropertyConstraint) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required"), java.util.Objects.requireNonNull(enableResourcePropertyConstraint, "enableResourcePropertyConstraint is required") }); } @Override protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") })); } /** * The resource type name for this resource class. */ public final static java.lang.String ROS_RESOURCE_TYPE_NAME; /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrName() { return software.amazon.jsii.Kernel.get(this, "attrName", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrProject() { return software.amazon.jsii.Kernel.get(this, "attrProject", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } @Override protected @org.jetbrains.annotations.NotNull java.util.Map getRosProperties() { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "rosProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } public @org.jetbrains.annotations.NotNull java.lang.Boolean getEnableResourcePropertyConstraint() { return software.amazon.jsii.Kernel.get(this, "enableResourcePropertyConstraint", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); } public void setEnableResourcePropertyConstraint(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "enableResourcePropertyConstraint", java.util.Objects.requireNonNull(value, "enableResourcePropertyConstraint is required")); } /** */ public @org.jetbrains.annotations.NotNull java.lang.Object getName() { return software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setName(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "name", java.util.Objects.requireNonNull(value, "name is required")); } /** */ public void setName(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "name", java.util.Objects.requireNonNull(value, "name is required")); } /** */ public @org.jetbrains.annotations.NotNull java.lang.Object getProject() { return software.amazon.jsii.Kernel.get(this, "project", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setProject(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "project", java.util.Objects.requireNonNull(value, "project is required")); } /** */ public void setProject(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "project", java.util.Objects.requireNonNull(value, "project is required")); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getComment() { return software.amazon.jsii.Kernel.get(this, "comment", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setComment(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "comment", value); } /** */ public void setComment(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "comment", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getIfNotExists() { return software.amazon.jsii.Kernel.get(this, "ifNotExists", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setIfNotExists(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "ifNotExists", value); } /** */ public void setIfNotExists(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "ifNotExists", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getLifecycle() { return software.amazon.jsii.Kernel.get(this, "lifecycle", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setLifecycle(final @org.jetbrains.annotations.Nullable java.lang.Number value) { software.amazon.jsii.Kernel.set(this, "lifecycle", value); } /** */ public void setLifecycle(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "lifecycle", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSchema() { return software.amazon.jsii.Kernel.get(this, "schema", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSchema(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "schema", value); } /** */ public void setSchema(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.maxcompute.RosTable.SchemaProperty value) { software.amazon.jsii.Kernel.set(this, "schema", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getStringSchema() { return software.amazon.jsii.Kernel.get(this, "stringSchema", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setStringSchema(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "stringSchema", value); } /** */ public void setStringSchema(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "stringSchema", value); } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.maxcompute.$Module.class, fqn = "@alicloud/ros-cdk-maxcompute.RosTable.ColumnsProperty") @software.amazon.jsii.Jsii.Proxy(ColumnsProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface ColumnsProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.Object getName(); /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.Object getType(); /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getComment() { return null; } /** * @return a {@link Builder} of {@link ColumnsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link ColumnsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object name; java.lang.Object type; java.lang.Object comment; /** * Sets the value of {@link ColumnsProperty#getName} * @param name the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link ColumnsProperty#getName} * @param name the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(com.aliyun.ros.cdk.core.IResolvable name) { this.name = name; return this; } /** * Sets the value of {@link ColumnsProperty#getType} * @param type the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder type(java.lang.String type) { this.type = type; return this; } /** * Sets the value of {@link ColumnsProperty#getType} * @param type the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder type(com.aliyun.ros.cdk.core.IResolvable type) { this.type = type; return this; } /** * Sets the value of {@link ColumnsProperty#getComment} * @param comment the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder comment(java.lang.String comment) { this.comment = comment; return this; } /** * Sets the value of {@link ColumnsProperty#getComment} * @param comment the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder comment(com.aliyun.ros.cdk.core.IResolvable comment) { this.comment = comment; return this; } /** * Builds the configured instance. * @return a new instance of {@link ColumnsProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public ColumnsProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link ColumnsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ColumnsProperty { private final java.lang.Object name; private final java.lang.Object type; private final java.lang.Object comment; /** * 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.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.type = software.amazon.jsii.Kernel.get(this, "type", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.comment = software.amazon.jsii.Kernel.get(this, "comment", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.name = java.util.Objects.requireNonNull(builder.name, "name is required"); this.type = java.util.Objects.requireNonNull(builder.type, "type is required"); this.comment = builder.comment; } @Override public final java.lang.Object getName() { return this.name; } @Override public final java.lang.Object getType() { return this.type; } @Override public final java.lang.Object getComment() { return this.comment; } @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("name", om.valueToTree(this.getName())); data.set("type", om.valueToTree(this.getType())); if (this.getComment() != null) { data.set("comment", om.valueToTree(this.getComment())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-maxcompute.RosTable.ColumnsProperty")); 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; ColumnsProperty.Jsii$Proxy that = (ColumnsProperty.Jsii$Proxy) o; if (!name.equals(that.name)) return false; if (!type.equals(that.type)) return false; return this.comment != null ? this.comment.equals(that.comment) : that.comment == null; } @Override public final int hashCode() { int result = this.name.hashCode(); result = 31 * result + (this.type.hashCode()); result = 31 * result + (this.comment != null ? this.comment.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.maxcompute.$Module.class, fqn = "@alicloud/ros-cdk-maxcompute.RosTable.PartitionsProperty") @software.amazon.jsii.Jsii.Proxy(PartitionsProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface PartitionsProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.Object getName(); /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.Object getType(); /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getComment() { return null; } /** * @return a {@link Builder} of {@link PartitionsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link PartitionsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object name; java.lang.Object type; java.lang.Object comment; /** * Sets the value of {@link PartitionsProperty#getName} * @param name the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link PartitionsProperty#getName} * @param name the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(com.aliyun.ros.cdk.core.IResolvable name) { this.name = name; return this; } /** * Sets the value of {@link PartitionsProperty#getType} * @param type the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder type(java.lang.String type) { this.type = type; return this; } /** * Sets the value of {@link PartitionsProperty#getType} * @param type the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder type(com.aliyun.ros.cdk.core.IResolvable type) { this.type = type; return this; } /** * Sets the value of {@link PartitionsProperty#getComment} * @param comment the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder comment(java.lang.String comment) { this.comment = comment; return this; } /** * Sets the value of {@link PartitionsProperty#getComment} * @param comment the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder comment(com.aliyun.ros.cdk.core.IResolvable comment) { this.comment = comment; return this; } /** * Builds the configured instance. * @return a new instance of {@link PartitionsProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public PartitionsProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link PartitionsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PartitionsProperty { private final java.lang.Object name; private final java.lang.Object type; private final java.lang.Object comment; /** * 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.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.type = software.amazon.jsii.Kernel.get(this, "type", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.comment = software.amazon.jsii.Kernel.get(this, "comment", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.name = java.util.Objects.requireNonNull(builder.name, "name is required"); this.type = java.util.Objects.requireNonNull(builder.type, "type is required"); this.comment = builder.comment; } @Override public final java.lang.Object getName() { return this.name; } @Override public final java.lang.Object getType() { return this.type; } @Override public final java.lang.Object getComment() { return this.comment; } @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("name", om.valueToTree(this.getName())); data.set("type", om.valueToTree(this.getType())); if (this.getComment() != null) { data.set("comment", om.valueToTree(this.getComment())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-maxcompute.RosTable.PartitionsProperty")); 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; PartitionsProperty.Jsii$Proxy that = (PartitionsProperty.Jsii$Proxy) o; if (!name.equals(that.name)) return false; if (!type.equals(that.type)) return false; return this.comment != null ? this.comment.equals(that.comment) : that.comment == null; } @Override public final int hashCode() { int result = this.name.hashCode(); result = 31 * result + (this.type.hashCode()); result = 31 * result + (this.comment != null ? this.comment.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.maxcompute.$Module.class, fqn = "@alicloud/ros-cdk-maxcompute.RosTable.SchemaProperty") @software.amazon.jsii.Jsii.Proxy(SchemaProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface SchemaProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.Object getColumns(); /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getPartitions() { return null; } /** * @return a {@link Builder} of {@link SchemaProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link SchemaProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object columns; java.lang.Object partitions; /** * Sets the value of {@link SchemaProperty#getColumns} * @param columns the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder columns(com.aliyun.ros.cdk.core.IResolvable columns) { this.columns = columns; return this; } /** * Sets the value of {@link SchemaProperty#getColumns} * @param columns the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder columns(java.util.List columns) { this.columns = columns; return this; } /** * Sets the value of {@link SchemaProperty#getPartitions} * @param partitions the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder partitions(com.aliyun.ros.cdk.core.IResolvable partitions) { this.partitions = partitions; return this; } /** * Sets the value of {@link SchemaProperty#getPartitions} * @param partitions the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder partitions(java.util.List partitions) { this.partitions = partitions; return this; } /** * Builds the configured instance. * @return a new instance of {@link SchemaProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public SchemaProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link SchemaProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SchemaProperty { private final java.lang.Object columns; private final java.lang.Object partitions; /** * 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.columns = software.amazon.jsii.Kernel.get(this, "columns", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.partitions = software.amazon.jsii.Kernel.get(this, "partitions", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.columns = java.util.Objects.requireNonNull(builder.columns, "columns is required"); this.partitions = builder.partitions; } @Override public final java.lang.Object getColumns() { return this.columns; } @Override public final java.lang.Object getPartitions() { return this.partitions; } @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("columns", om.valueToTree(this.getColumns())); if (this.getPartitions() != null) { data.set("partitions", om.valueToTree(this.getPartitions())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-maxcompute.RosTable.SchemaProperty")); 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; SchemaProperty.Jsii$Proxy that = (SchemaProperty.Jsii$Proxy) o; if (!columns.equals(that.columns)) return false; return this.partitions != null ? this.partitions.equals(that.partitions) : that.partitions == null; } @Override public final int hashCode() { int result = this.columns.hashCode(); result = 31 * result + (this.partitions != null ? this.partitions.hashCode() : 0); return result; } } } /** * A fluent builder for {@link com.aliyun.ros.cdk.maxcompute.RosTable}. */ public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope
  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param enableResourcePropertyConstraint This parameter is required. */ public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) { return new Builder(scope, id, enableResourcePropertyConstraint); } private final com.aliyun.ros.cdk.core.Construct scope; private final java.lang.String id; private final java.lang.Boolean enableResourcePropertyConstraint; private final com.aliyun.ros.cdk.maxcompute.RosTableProps.Builder props; private Builder(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) { this.scope = scope; this.id = id; this.enableResourcePropertyConstraint = enableResourcePropertyConstraint; this.props = new com.aliyun.ros.cdk.maxcompute.RosTableProps.Builder(); } /** * @return {@code this} * @param name This parameter is required. */ public Builder name(final java.lang.String name) { this.props.name(name); return this; } /** * @return {@code this} * @param name This parameter is required. */ public Builder name(final com.aliyun.ros.cdk.core.IResolvable name) { this.props.name(name); return this; } /** * @return {@code this} * @param project This parameter is required. */ public Builder project(final java.lang.String project) { this.props.project(project); return this; } /** * @return {@code this} * @param project This parameter is required. */ public Builder project(final com.aliyun.ros.cdk.core.IResolvable project) { this.props.project(project); return this; } /** * @return {@code this} * @param comment This parameter is required. */ public Builder comment(final java.lang.String comment) { this.props.comment(comment); return this; } /** * @return {@code this} * @param comment This parameter is required. */ public Builder comment(final com.aliyun.ros.cdk.core.IResolvable comment) { this.props.comment(comment); return this; } /** * @return {@code this} * @param ifNotExists This parameter is required. */ public Builder ifNotExists(final java.lang.Boolean ifNotExists) { this.props.ifNotExists(ifNotExists); return this; } /** * @return {@code this} * @param ifNotExists This parameter is required. */ public Builder ifNotExists(final com.aliyun.ros.cdk.core.IResolvable ifNotExists) { this.props.ifNotExists(ifNotExists); return this; } /** * @return {@code this} * @param lifecycle This parameter is required. */ public Builder lifecycle(final java.lang.Number lifecycle) { this.props.lifecycle(lifecycle); return this; } /** * @return {@code this} * @param lifecycle This parameter is required. */ public Builder lifecycle(final com.aliyun.ros.cdk.core.IResolvable lifecycle) { this.props.lifecycle(lifecycle); return this; } /** * @return {@code this} * @param schema This parameter is required. */ public Builder schema(final com.aliyun.ros.cdk.core.IResolvable schema) { this.props.schema(schema); return this; } /** * @return {@code this} * @param schema This parameter is required. */ public Builder schema(final com.aliyun.ros.cdk.maxcompute.RosTable.SchemaProperty schema) { this.props.schema(schema); return this; } /** * @return {@code this} * @param stringSchema This parameter is required. */ public Builder stringSchema(final java.lang.String stringSchema) { this.props.stringSchema(stringSchema); return this; } /** * @return {@code this} * @param stringSchema This parameter is required. */ public Builder stringSchema(final com.aliyun.ros.cdk.core.IResolvable stringSchema) { this.props.stringSchema(stringSchema); return this; } /** * @return a newly built instance of {@link com.aliyun.ros.cdk.maxcompute.RosTable}. */ @Override public com.aliyun.ros.cdk.maxcompute.RosTable build() { return new com.aliyun.ros.cdk.maxcompute.RosTable( this.scope, this.id, this.props.build(), this.enableResourcePropertyConstraint ); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy