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

com.pulumi.azurenative.awsconnector.outputs.AwsDynamoDBTablePropertiesResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.awsconnector.outputs;

import com.pulumi.azurenative.awsconnector.outputs.AttributeDefinitionResponse;
import com.pulumi.azurenative.awsconnector.outputs.ContributorInsightsSpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.GlobalSecondaryIndexResponse;
import com.pulumi.azurenative.awsconnector.outputs.ImportSourceSpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.KeySchemaResponse;
import com.pulumi.azurenative.awsconnector.outputs.KinesisStreamSpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.LocalSecondaryIndexResponse;
import com.pulumi.azurenative.awsconnector.outputs.PointInTimeRecoverySpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.ProvisionedThroughputResponse;
import com.pulumi.azurenative.awsconnector.outputs.ResourcePolicyResponse;
import com.pulumi.azurenative.awsconnector.outputs.SSESpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.StreamSpecificationResponse;
import com.pulumi.azurenative.awsconnector.outputs.TagResponse;
import com.pulumi.azurenative.awsconnector.outputs.TimeToLiveSpecificationResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AwsDynamoDBTablePropertiesResponse {
    /**
     * @return Property arn
     * 
     */
    private @Nullable String arn;
    /**
     * @return A list of attributes that describe the key schema for the table and indexes. This property is required to create a DDB table. Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
     * 
     */
    private @Nullable List attributeDefinitions;
    /**
     * @return Specify how you are charged for read and write throughput and how you manage capacity. Valid values include:  +   ``PROVISIONED`` - We recommend using ``PROVISIONED`` for predictable workloads. ``PROVISIONED`` sets the billing mode to [Provisioned Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual).  +   ``PAY_PER_REQUEST`` - We recommend using ``PAY_PER_REQUEST`` for unpredictable workloads. ``PAY_PER_REQUEST`` sets the billing mode to [On-Demand Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand).   If not specified, the default is ``PROVISIONED``.
     * 
     */
    private @Nullable String billingMode;
    /**
     * @return The settings used to enable or disable CloudWatch Contributor Insights for the specified table. The settings used to enable or disable CloudWatch Contributor Insights.
     * 
     */
    private @Nullable ContributorInsightsSpecificationResponse contributorInsightsSpecification;
    /**
     * @return Determines if a table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Developer Guide*.
     * 
     */
    private @Nullable Boolean deletionProtectionEnabled;
    /**
     * @return Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.  If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command. If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.  Updates are not supported. The following are exceptions:  +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.  +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
     * 
     */
    private @Nullable List globalSecondaryIndexes;
    /**
     * @return Specifies the properties of data being imported from the S3 bucket source to the table.  If you specify the ``ImportSourceSpecification`` property, and also specify either the ``StreamSpecification``, the ``TableClass`` property, or the ``DeletionProtectionEnabled`` property, the IAM entity creating/updating stack must have ``UpdateTable`` permission. Specifies the properties of data being imported from the S3 bucket source to the table.
     * 
     */
    private @Nullable ImportSourceSpecificationResponse importSourceSpecification;
    /**
     * @return Specifies the attributes that make up the primary key for the table. The attributes in the ``KeySchema`` property must also be defined in the ``AttributeDefinitions`` property.
     * 
     */
    private @Nullable List keySchema;
    /**
     * @return The Kinesis Data Streams configuration for the specified table. The Kinesis Data Streams configuration for the specified table.
     * 
     */
    private @Nullable KinesisStreamSpecificationResponse kinesisStreamSpecification;
    /**
     * @return Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
     * 
     */
    private @Nullable List localSecondaryIndexes;
    /**
     * @return The settings used to enable point in time recovery. The settings used to enable point in time recovery.
     * 
     */
    private @Nullable PointInTimeRecoverySpecificationResponse pointInTimeRecoverySpecification;
    /**
     * @return Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).  If you set ``BillingMode`` as ``PROVISIONED``, you must specify this property. If you set ``BillingMode`` as ``PAY_PER_REQUEST``, you cannot specify this property. Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).
     * 
     */
    private @Nullable ProvisionedThroughputResponse provisionedThroughput;
    /**
     * @return A resource-based policy document that contains permissions to add to the specified table. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html). When you attach a resource-based policy while creating a table, the policy creation is *strongly consistent*. For information about the considerations that you should keep in mind while attaching a resource-based policy, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html). Creates or updates a resource-based policy document that contains the permissions for DDB resources, such as a table, its indexes, and stream. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html). While defining resource-based policies in your CFNshort templates, the following considerations apply:  +  The maximum size supported for a resource-based policy document in JSON format is 20 KB. DDB counts whitespaces when calculating the size of a policy against this limit.   +  Resource-based policies don't support [drift detection](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html#). If you update a policy outside of the CFNshort stack template, you'll need to update the CFNshort stack with the changes.  +  Resource-based policies don't support out-of-band changes. If you add, update, or delete a policy outside of the CFNshort template, the change won't be overwritten if there are no changes to the policy within the template. For example, say that your template contains a resource-based policy, which you later update outside of the template. If you don't make any changes to the policy in the template, the updated policy in DDB won’t be synced with the policy in the template. Conversely, say that your template doesn’t contain a resource-based policy, but you add a policy outside of the template. This policy won’t be removed from DDB as long as you don’t add it to the template. When you add a policy to the template and update the stack, the existing policy in DDB will be updated to match the one defined in the template.   For a full list of all considerations, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html).
     * 
     */
    private @Nullable ResourcePolicyResponse resourcePolicy;
    /**
     * @return Specifies the settings to enable server-side encryption. Represents the settings used to enable server-side encryption.
     * 
     */
    private @Nullable SSESpecificationResponse sseSpecification;
    /**
     * @return Property streamArn
     * 
     */
    private @Nullable String streamArn;
    /**
     * @return The settings for the DDB table stream, which capture changes to items stored in the table. Represents the DynamoDB Streams configuration for a table in DynamoDB.
     * 
     */
    private @Nullable StreamSpecificationResponse streamSpecification;
    /**
     * @return The table class of the new table. Valid values are ``STANDARD`` and ``STANDARD_INFREQUENT_ACCESS``.
     * 
     */
    private @Nullable String tableClass;
    /**
     * @return A name for the table. If you don't specify a name, CFNlong generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).  If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
     * 
     */
    private @Nullable String tableName;
    /**
     * @return An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
     * 
     */
    private @Nullable List tags;
    /**
     * @return Specifies the Time to Live (TTL) settings for the table.  For detailed information about the limits in DynamoDB, see [Limits in Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide. Represents the settings used to enable or disable Time to Live (TTL) for the specified table.
     * 
     */
    private @Nullable TimeToLiveSpecificationResponse timeToLiveSpecification;

    private AwsDynamoDBTablePropertiesResponse() {}
    /**
     * @return Property arn
     * 
     */
    public Optional arn() {
        return Optional.ofNullable(this.arn);
    }
    /**
     * @return A list of attributes that describe the key schema for the table and indexes. This property is required to create a DDB table. Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
     * 
     */
    public List attributeDefinitions() {
        return this.attributeDefinitions == null ? List.of() : this.attributeDefinitions;
    }
    /**
     * @return Specify how you are charged for read and write throughput and how you manage capacity. Valid values include:  +   ``PROVISIONED`` - We recommend using ``PROVISIONED`` for predictable workloads. ``PROVISIONED`` sets the billing mode to [Provisioned Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual).  +   ``PAY_PER_REQUEST`` - We recommend using ``PAY_PER_REQUEST`` for unpredictable workloads. ``PAY_PER_REQUEST`` sets the billing mode to [On-Demand Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand).   If not specified, the default is ``PROVISIONED``.
     * 
     */
    public Optional billingMode() {
        return Optional.ofNullable(this.billingMode);
    }
    /**
     * @return The settings used to enable or disable CloudWatch Contributor Insights for the specified table. The settings used to enable or disable CloudWatch Contributor Insights.
     * 
     */
    public Optional contributorInsightsSpecification() {
        return Optional.ofNullable(this.contributorInsightsSpecification);
    }
    /**
     * @return Determines if a table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Developer Guide*.
     * 
     */
    public Optional deletionProtectionEnabled() {
        return Optional.ofNullable(this.deletionProtectionEnabled);
    }
    /**
     * @return Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.  If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command. If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.  Updates are not supported. The following are exceptions:  +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.  +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
     * 
     */
    public List globalSecondaryIndexes() {
        return this.globalSecondaryIndexes == null ? List.of() : this.globalSecondaryIndexes;
    }
    /**
     * @return Specifies the properties of data being imported from the S3 bucket source to the table.  If you specify the ``ImportSourceSpecification`` property, and also specify either the ``StreamSpecification``, the ``TableClass`` property, or the ``DeletionProtectionEnabled`` property, the IAM entity creating/updating stack must have ``UpdateTable`` permission. Specifies the properties of data being imported from the S3 bucket source to the table.
     * 
     */
    public Optional importSourceSpecification() {
        return Optional.ofNullable(this.importSourceSpecification);
    }
    /**
     * @return Specifies the attributes that make up the primary key for the table. The attributes in the ``KeySchema`` property must also be defined in the ``AttributeDefinitions`` property.
     * 
     */
    public List keySchema() {
        return this.keySchema == null ? List.of() : this.keySchema;
    }
    /**
     * @return The Kinesis Data Streams configuration for the specified table. The Kinesis Data Streams configuration for the specified table.
     * 
     */
    public Optional kinesisStreamSpecification() {
        return Optional.ofNullable(this.kinesisStreamSpecification);
    }
    /**
     * @return Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
     * 
     */
    public List localSecondaryIndexes() {
        return this.localSecondaryIndexes == null ? List.of() : this.localSecondaryIndexes;
    }
    /**
     * @return The settings used to enable point in time recovery. The settings used to enable point in time recovery.
     * 
     */
    public Optional pointInTimeRecoverySpecification() {
        return Optional.ofNullable(this.pointInTimeRecoverySpecification);
    }
    /**
     * @return Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).  If you set ``BillingMode`` as ``PROVISIONED``, you must specify this property. If you set ``BillingMode`` as ``PAY_PER_REQUEST``, you cannot specify this property. Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).
     * 
     */
    public Optional provisionedThroughput() {
        return Optional.ofNullable(this.provisionedThroughput);
    }
    /**
     * @return A resource-based policy document that contains permissions to add to the specified table. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html). When you attach a resource-based policy while creating a table, the policy creation is *strongly consistent*. For information about the considerations that you should keep in mind while attaching a resource-based policy, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html). Creates or updates a resource-based policy document that contains the permissions for DDB resources, such as a table, its indexes, and stream. Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html). While defining resource-based policies in your CFNshort templates, the following considerations apply:  +  The maximum size supported for a resource-based policy document in JSON format is 20 KB. DDB counts whitespaces when calculating the size of a policy against this limit.   +  Resource-based policies don't support [drift detection](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html#). If you update a policy outside of the CFNshort stack template, you'll need to update the CFNshort stack with the changes.  +  Resource-based policies don't support out-of-band changes. If you add, update, or delete a policy outside of the CFNshort template, the change won't be overwritten if there are no changes to the policy within the template. For example, say that your template contains a resource-based policy, which you later update outside of the template. If you don't make any changes to the policy in the template, the updated policy in DDB won’t be synced with the policy in the template. Conversely, say that your template doesn’t contain a resource-based policy, but you add a policy outside of the template. This policy won’t be removed from DDB as long as you don’t add it to the template. When you add a policy to the template and update the stack, the existing policy in DDB will be updated to match the one defined in the template.   For a full list of all considerations, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html).
     * 
     */
    public Optional resourcePolicy() {
        return Optional.ofNullable(this.resourcePolicy);
    }
    /**
     * @return Specifies the settings to enable server-side encryption. Represents the settings used to enable server-side encryption.
     * 
     */
    public Optional sseSpecification() {
        return Optional.ofNullable(this.sseSpecification);
    }
    /**
     * @return Property streamArn
     * 
     */
    public Optional streamArn() {
        return Optional.ofNullable(this.streamArn);
    }
    /**
     * @return The settings for the DDB table stream, which capture changes to items stored in the table. Represents the DynamoDB Streams configuration for a table in DynamoDB.
     * 
     */
    public Optional streamSpecification() {
        return Optional.ofNullable(this.streamSpecification);
    }
    /**
     * @return The table class of the new table. Valid values are ``STANDARD`` and ``STANDARD_INFREQUENT_ACCESS``.
     * 
     */
    public Optional tableClass() {
        return Optional.ofNullable(this.tableClass);
    }
    /**
     * @return A name for the table. If you don't specify a name, CFNlong generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).  If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
     * 
     */
    public Optional tableName() {
        return Optional.ofNullable(this.tableName);
    }
    /**
     * @return An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
     * 
     */
    public List tags() {
        return this.tags == null ? List.of() : this.tags;
    }
    /**
     * @return Specifies the Time to Live (TTL) settings for the table.  For detailed information about the limits in DynamoDB, see [Limits in Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide. Represents the settings used to enable or disable Time to Live (TTL) for the specified table.
     * 
     */
    public Optional timeToLiveSpecification() {
        return Optional.ofNullable(this.timeToLiveSpecification);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(AwsDynamoDBTablePropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String arn;
        private @Nullable List attributeDefinitions;
        private @Nullable String billingMode;
        private @Nullable ContributorInsightsSpecificationResponse contributorInsightsSpecification;
        private @Nullable Boolean deletionProtectionEnabled;
        private @Nullable List globalSecondaryIndexes;
        private @Nullable ImportSourceSpecificationResponse importSourceSpecification;
        private @Nullable List keySchema;
        private @Nullable KinesisStreamSpecificationResponse kinesisStreamSpecification;
        private @Nullable List localSecondaryIndexes;
        private @Nullable PointInTimeRecoverySpecificationResponse pointInTimeRecoverySpecification;
        private @Nullable ProvisionedThroughputResponse provisionedThroughput;
        private @Nullable ResourcePolicyResponse resourcePolicy;
        private @Nullable SSESpecificationResponse sseSpecification;
        private @Nullable String streamArn;
        private @Nullable StreamSpecificationResponse streamSpecification;
        private @Nullable String tableClass;
        private @Nullable String tableName;
        private @Nullable List tags;
        private @Nullable TimeToLiveSpecificationResponse timeToLiveSpecification;
        public Builder() {}
        public Builder(AwsDynamoDBTablePropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.attributeDefinitions = defaults.attributeDefinitions;
    	      this.billingMode = defaults.billingMode;
    	      this.contributorInsightsSpecification = defaults.contributorInsightsSpecification;
    	      this.deletionProtectionEnabled = defaults.deletionProtectionEnabled;
    	      this.globalSecondaryIndexes = defaults.globalSecondaryIndexes;
    	      this.importSourceSpecification = defaults.importSourceSpecification;
    	      this.keySchema = defaults.keySchema;
    	      this.kinesisStreamSpecification = defaults.kinesisStreamSpecification;
    	      this.localSecondaryIndexes = defaults.localSecondaryIndexes;
    	      this.pointInTimeRecoverySpecification = defaults.pointInTimeRecoverySpecification;
    	      this.provisionedThroughput = defaults.provisionedThroughput;
    	      this.resourcePolicy = defaults.resourcePolicy;
    	      this.sseSpecification = defaults.sseSpecification;
    	      this.streamArn = defaults.streamArn;
    	      this.streamSpecification = defaults.streamSpecification;
    	      this.tableClass = defaults.tableClass;
    	      this.tableName = defaults.tableName;
    	      this.tags = defaults.tags;
    	      this.timeToLiveSpecification = defaults.timeToLiveSpecification;
        }

        @CustomType.Setter
        public Builder arn(@Nullable String arn) {

            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder attributeDefinitions(@Nullable List attributeDefinitions) {

            this.attributeDefinitions = attributeDefinitions;
            return this;
        }
        public Builder attributeDefinitions(AttributeDefinitionResponse... attributeDefinitions) {
            return attributeDefinitions(List.of(attributeDefinitions));
        }
        @CustomType.Setter
        public Builder billingMode(@Nullable String billingMode) {

            this.billingMode = billingMode;
            return this;
        }
        @CustomType.Setter
        public Builder contributorInsightsSpecification(@Nullable ContributorInsightsSpecificationResponse contributorInsightsSpecification) {

            this.contributorInsightsSpecification = contributorInsightsSpecification;
            return this;
        }
        @CustomType.Setter
        public Builder deletionProtectionEnabled(@Nullable Boolean deletionProtectionEnabled) {

            this.deletionProtectionEnabled = deletionProtectionEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder globalSecondaryIndexes(@Nullable List globalSecondaryIndexes) {

            this.globalSecondaryIndexes = globalSecondaryIndexes;
            return this;
        }
        public Builder globalSecondaryIndexes(GlobalSecondaryIndexResponse... globalSecondaryIndexes) {
            return globalSecondaryIndexes(List.of(globalSecondaryIndexes));
        }
        @CustomType.Setter
        public Builder importSourceSpecification(@Nullable ImportSourceSpecificationResponse importSourceSpecification) {

            this.importSourceSpecification = importSourceSpecification;
            return this;
        }
        @CustomType.Setter
        public Builder keySchema(@Nullable List keySchema) {

            this.keySchema = keySchema;
            return this;
        }
        public Builder keySchema(KeySchemaResponse... keySchema) {
            return keySchema(List.of(keySchema));
        }
        @CustomType.Setter
        public Builder kinesisStreamSpecification(@Nullable KinesisStreamSpecificationResponse kinesisStreamSpecification) {

            this.kinesisStreamSpecification = kinesisStreamSpecification;
            return this;
        }
        @CustomType.Setter
        public Builder localSecondaryIndexes(@Nullable List localSecondaryIndexes) {

            this.localSecondaryIndexes = localSecondaryIndexes;
            return this;
        }
        public Builder localSecondaryIndexes(LocalSecondaryIndexResponse... localSecondaryIndexes) {
            return localSecondaryIndexes(List.of(localSecondaryIndexes));
        }
        @CustomType.Setter
        public Builder pointInTimeRecoverySpecification(@Nullable PointInTimeRecoverySpecificationResponse pointInTimeRecoverySpecification) {

            this.pointInTimeRecoverySpecification = pointInTimeRecoverySpecification;
            return this;
        }
        @CustomType.Setter
        public Builder provisionedThroughput(@Nullable ProvisionedThroughputResponse provisionedThroughput) {

            this.provisionedThroughput = provisionedThroughput;
            return this;
        }
        @CustomType.Setter
        public Builder resourcePolicy(@Nullable ResourcePolicyResponse resourcePolicy) {

            this.resourcePolicy = resourcePolicy;
            return this;
        }
        @CustomType.Setter
        public Builder sseSpecification(@Nullable SSESpecificationResponse sseSpecification) {

            this.sseSpecification = sseSpecification;
            return this;
        }
        @CustomType.Setter
        public Builder streamArn(@Nullable String streamArn) {

            this.streamArn = streamArn;
            return this;
        }
        @CustomType.Setter
        public Builder streamSpecification(@Nullable StreamSpecificationResponse streamSpecification) {

            this.streamSpecification = streamSpecification;
            return this;
        }
        @CustomType.Setter
        public Builder tableClass(@Nullable String tableClass) {

            this.tableClass = tableClass;
            return this;
        }
        @CustomType.Setter
        public Builder tableName(@Nullable String tableName) {

            this.tableName = tableName;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable List tags) {

            this.tags = tags;
            return this;
        }
        public Builder tags(TagResponse... tags) {
            return tags(List.of(tags));
        }
        @CustomType.Setter
        public Builder timeToLiveSpecification(@Nullable TimeToLiveSpecificationResponse timeToLiveSpecification) {

            this.timeToLiveSpecification = timeToLiveSpecification;
            return this;
        }
        public AwsDynamoDBTablePropertiesResponse build() {
            final var _resultValue = new AwsDynamoDBTablePropertiesResponse();
            _resultValue.arn = arn;
            _resultValue.attributeDefinitions = attributeDefinitions;
            _resultValue.billingMode = billingMode;
            _resultValue.contributorInsightsSpecification = contributorInsightsSpecification;
            _resultValue.deletionProtectionEnabled = deletionProtectionEnabled;
            _resultValue.globalSecondaryIndexes = globalSecondaryIndexes;
            _resultValue.importSourceSpecification = importSourceSpecification;
            _resultValue.keySchema = keySchema;
            _resultValue.kinesisStreamSpecification = kinesisStreamSpecification;
            _resultValue.localSecondaryIndexes = localSecondaryIndexes;
            _resultValue.pointInTimeRecoverySpecification = pointInTimeRecoverySpecification;
            _resultValue.provisionedThroughput = provisionedThroughput;
            _resultValue.resourcePolicy = resourcePolicy;
            _resultValue.sseSpecification = sseSpecification;
            _resultValue.streamArn = streamArn;
            _resultValue.streamSpecification = streamSpecification;
            _resultValue.tableClass = tableClass;
            _resultValue.tableName = tableName;
            _resultValue.tags = tags;
            _resultValue.timeToLiveSpecification = timeToLiveSpecification;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy