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

software.amazon.awssdk.services.dynamodb.model.GlobalSecondaryIndexDescription Maven / Gradle / Ivy

Go to download

A single bundled dependency that includes all service and dependent JARs with third-party libraries relocated to different namespaces.

There is a newer version: 2.5.20
Show newest version
/*
 * Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.dynamodb.model;

import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.core.protocol.ProtocolMarshaller;
import software.amazon.awssdk.core.protocol.StructuredPojo;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.services.dynamodb.transform.GlobalSecondaryIndexDescriptionMarshaller;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* Represents the properties of a global secondary index. *

*/ @Generated("software.amazon.awssdk:codegen") public final class GlobalSecondaryIndexDescription implements StructuredPojo, ToCopyableBuilder { private final String indexName; private final List keySchema; private final Projection projection; private final String indexStatus; private final Boolean backfilling; private final ProvisionedThroughputDescription provisionedThroughput; private final Long indexSizeBytes; private final Long itemCount; private final String indexArn; private GlobalSecondaryIndexDescription(BuilderImpl builder) { this.indexName = builder.indexName; this.keySchema = builder.keySchema; this.projection = builder.projection; this.indexStatus = builder.indexStatus; this.backfilling = builder.backfilling; this.provisionedThroughput = builder.provisionedThroughput; this.indexSizeBytes = builder.indexSizeBytes; this.itemCount = builder.itemCount; this.indexArn = builder.indexArn; } /** *

* The name of the global secondary index. *

* * @return The name of the global secondary index. */ public String indexName() { return indexName; } /** *

* The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and * key types: *

*
    *
  • *

    * HASH - partition key *

    *
  • *
  • *

    * RANGE - sort key *

    *
  • *
* *

* The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from * DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on their * partition key values. *

*

* The sort key of an item is also known as its range attribute. The term "range attribute" derives from the * way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key * value. *

*
*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

* * @return The complete key schema for a global secondary index, which consists of one or more pairs of attribute * names and key types:

*
    *
  • *

    * HASH - partition key *

    *
  • *
  • *

    * RANGE - sort key *

    *
  • *
* *

* The partition key of an item is also known as its hash attribute. The term "hash attribute" * derives from DynamoDB' usage of an internal hash function to evenly distribute data items across * partitions, based on their partition key values. *

*

* The sort key of an item is also known as its range attribute. The term "range attribute" derives * from the way DynamoDB stores items with the same partition key physically close together, in sorted order * by the sort key value. *

*/ public List keySchema() { return keySchema; } /** *

* Represents attributes that are copied (projected) from the table into the global secondary index. These are in * addition to the primary key attributes and index key attributes, which are automatically projected. *

* * @return Represents attributes that are copied (projected) from the table into the global secondary index. These * are in addition to the primary key attributes and index key attributes, which are automatically * projected. */ public Projection projection() { return projection; } /** *

* The current state of the global secondary index: *

*
    *
  • *

    * CREATING - The index is being created. *

    *
  • *
  • *

    * UPDATING - The index is being updated. *

    *
  • *
  • *

    * DELETING - The index is being deleted. *

    *
  • *
  • *

    * ACTIVE - The index is ready for use. *

    *
  • *
*

* If the service returns an enum value that is not available in the current SDK version, {@link #indexStatus} will * return {@link IndexStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #indexStatusAsString}. *

* * @return The current state of the global secondary index:

*
    *
  • *

    * CREATING - The index is being created. *

    *
  • *
  • *

    * UPDATING - The index is being updated. *

    *
  • *
  • *

    * DELETING - The index is being deleted. *

    *
  • *
  • *

    * ACTIVE - The index is ready for use. *

    *
  • * @see IndexStatus */ public IndexStatus indexStatus() { return IndexStatus.fromValue(indexStatus); } /** *

    * The current state of the global secondary index: *

    *
      *
    • *

      * CREATING - The index is being created. *

      *
    • *
    • *

      * UPDATING - The index is being updated. *

      *
    • *
    • *

      * DELETING - The index is being deleted. *

      *
    • *
    • *

      * ACTIVE - The index is ready for use. *

      *
    • *
    *

    * If the service returns an enum value that is not available in the current SDK version, {@link #indexStatus} will * return {@link IndexStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #indexStatusAsString}. *

    * * @return The current state of the global secondary index:

    *
      *
    • *

      * CREATING - The index is being created. *

      *
    • *
    • *

      * UPDATING - The index is being updated. *

      *
    • *
    • *

      * DELETING - The index is being deleted. *

      *
    • *
    • *

      * ACTIVE - The index is ready for use. *

      *
    • * @see IndexStatus */ public String indexStatusAsString() { return indexStatus; } /** *

      * Indicates whether the index is currently backfilling. Backfilling is the process of reading items from the * table and determining whether they can be added to the index. (Not all items will qualify: For example, a * partition key cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. After * all items have been processed, the backfilling operation is complete and Backfilling is false. *

      * *

      * For indexes that were created during a CreateTable operation, the Backfilling attribute * does not appear in the DescribeTable output. *

      *
      * * @return Indicates whether the index is currently backfilling. Backfilling is the process of reading items * from the table and determining whether they can be added to the index. (Not all items will qualify: For * example, a partition key cannot have any duplicate values.) If an item can be added to the index, * DynamoDB will do so. After all items have been processed, the backfilling operation is complete and * Backfilling is false.

      *

      * For indexes that were created during a CreateTable operation, the Backfilling * attribute does not appear in the DescribeTable output. *

      */ public Boolean backfilling() { return backfilling; } /** *

      * Represents the provisioned throughput settings for the specified global secondary index. *

      *

      * For current minimum and maximum provisioned throughput values, see Limits in the Amazon * DynamoDB Developer Guide. *

      * * @return Represents the provisioned throughput settings for the specified global secondary index.

      *

      * For current minimum and maximum provisioned throughput values, see Limits in the * Amazon DynamoDB Developer Guide. */ public ProvisionedThroughputDescription provisionedThroughput() { return provisionedThroughput; } /** *

      * The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. * Recent changes might not be reflected in this value. *

      * * @return The total size of the specified index, in bytes. DynamoDB updates this value approximately every six * hours. Recent changes might not be reflected in this value. */ public Long indexSizeBytes() { return indexSizeBytes; } /** *

      * The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent * changes might not be reflected in this value. *

      * * @return The number of items in the specified index. DynamoDB updates this value approximately every six hours. * Recent changes might not be reflected in this value. */ public Long itemCount() { return itemCount; } /** *

      * The Amazon Resource Name (ARN) that uniquely identifies the index. *

      * * @return The Amazon Resource Name (ARN) that uniquely identifies the index. */ public String indexArn() { return indexArn; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(indexName()); hashCode = 31 * hashCode + Objects.hashCode(keySchema()); hashCode = 31 * hashCode + Objects.hashCode(projection()); hashCode = 31 * hashCode + Objects.hashCode(indexStatusAsString()); hashCode = 31 * hashCode + Objects.hashCode(backfilling()); hashCode = 31 * hashCode + Objects.hashCode(provisionedThroughput()); hashCode = 31 * hashCode + Objects.hashCode(indexSizeBytes()); hashCode = 31 * hashCode + Objects.hashCode(itemCount()); hashCode = 31 * hashCode + Objects.hashCode(indexArn()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof GlobalSecondaryIndexDescription)) { return false; } GlobalSecondaryIndexDescription other = (GlobalSecondaryIndexDescription) obj; return Objects.equals(indexName(), other.indexName()) && Objects.equals(keySchema(), other.keySchema()) && Objects.equals(projection(), other.projection()) && Objects.equals(indexStatusAsString(), other.indexStatusAsString()) && Objects.equals(backfilling(), other.backfilling()) && Objects.equals(provisionedThroughput(), other.provisionedThroughput()) && Objects.equals(indexSizeBytes(), other.indexSizeBytes()) && Objects.equals(itemCount(), other.itemCount()) && Objects.equals(indexArn(), other.indexArn()); } @Override public String toString() { return ToString.builder("GlobalSecondaryIndexDescription").add("IndexName", indexName()).add("KeySchema", keySchema()) .add("Projection", projection()).add("IndexStatus", indexStatusAsString()).add("Backfilling", backfilling()) .add("ProvisionedThroughput", provisionedThroughput()).add("IndexSizeBytes", indexSizeBytes()) .add("ItemCount", itemCount()).add("IndexArn", indexArn()).build(); } public Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "IndexName": return Optional.ofNullable(clazz.cast(indexName())); case "KeySchema": return Optional.ofNullable(clazz.cast(keySchema())); case "Projection": return Optional.ofNullable(clazz.cast(projection())); case "IndexStatus": return Optional.ofNullable(clazz.cast(indexStatusAsString())); case "Backfilling": return Optional.ofNullable(clazz.cast(backfilling())); case "ProvisionedThroughput": return Optional.ofNullable(clazz.cast(provisionedThroughput())); case "IndexSizeBytes": return Optional.ofNullable(clazz.cast(indexSizeBytes())); case "ItemCount": return Optional.ofNullable(clazz.cast(itemCount())); case "IndexArn": return Optional.ofNullable(clazz.cast(indexArn())); default: return Optional.empty(); } } @SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { GlobalSecondaryIndexDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller); } public interface Builder extends CopyableBuilder { /** *

      * The name of the global secondary index. *

      * * @param indexName * The name of the global secondary index. * @return Returns a reference to this object so that method calls can be chained together. */ Builder indexName(String indexName); /** *

      * The complete key schema for a global secondary index, which consists of one or more pairs of attribute names * and key types: *

      *
        *
      • *

        * HASH - partition key *

        *
      • *
      • *

        * RANGE - sort key *

        *
      • *
      * *

      * The partition key of an item is also known as its hash attribute. The term "hash attribute" derives * from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on * their partition key values. *

      *

      * The sort key of an item is also known as its range attribute. The term "range attribute" derives from * the way DynamoDB stores items with the same partition key physically close together, in sorted order by the * sort key value. *

      *
      * * @param keySchema * The complete key schema for a global secondary index, which consists of one or more pairs of attribute * names and key types:

      *
        *
      • *

        * HASH - partition key *

        *
      • *
      • *

        * RANGE - sort key *

        *
      • *
      * *

      * The partition key of an item is also known as its hash attribute. The term "hash attribute" * derives from DynamoDB' usage of an internal hash function to evenly distribute data items across * partitions, based on their partition key values. *

      *

      * The sort key of an item is also known as its range attribute. The term "range attribute" * derives from the way DynamoDB stores items with the same partition key physically close together, in * sorted order by the sort key value. *

      * @return Returns a reference to this object so that method calls can be chained together. */ Builder keySchema(Collection keySchema); /** *

      * The complete key schema for a global secondary index, which consists of one or more pairs of attribute names * and key types: *

      *
        *
      • *

        * HASH - partition key *

        *
      • *
      • *

        * RANGE - sort key *

        *
      • *
      * *

      * The partition key of an item is also known as its hash attribute. The term "hash attribute" derives * from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on * their partition key values. *

      *

      * The sort key of an item is also known as its range attribute. The term "range attribute" derives from * the way DynamoDB stores items with the same partition key physically close together, in sorted order by the * sort key value. *

      *
      * * @param keySchema * The complete key schema for a global secondary index, which consists of one or more pairs of attribute * names and key types:

      *
        *
      • *

        * HASH - partition key *

        *
      • *
      • *

        * RANGE - sort key *

        *
      • *
      * *

      * The partition key of an item is also known as its hash attribute. The term "hash attribute" * derives from DynamoDB' usage of an internal hash function to evenly distribute data items across * partitions, based on their partition key values. *

      *

      * The sort key of an item is also known as its range attribute. The term "range attribute" * derives from the way DynamoDB stores items with the same partition key physically close together, in * sorted order by the sort key value. *

      * @return Returns a reference to this object so that method calls can be chained together. */ Builder keySchema(KeySchemaElement... keySchema); /** *

      * The complete key schema for a global secondary index, which consists of one or more pairs of attribute names * and key types: *

      *
        *
      • *

        * HASH - partition key *

        *
      • *
      • *

        * RANGE - sort key *

        *
      • *
      * *

      * The partition key of an item is also known as its hash attribute. The term "hash attribute" derives * from DynamoDB' usage of an internal hash function to evenly distribute data items across partitions, based on * their partition key values. *

      *

      * The sort key of an item is also known as its range attribute. The term "range attribute" derives from * the way DynamoDB stores items with the same partition key physically close together, in sorted order by the * sort key value. *

      *
      This is a convenience that creates an instance of the {@link List.Builder} avoiding * the need to create one manually via {@link List#builder()}. * * When the {@link Consumer} completes, {@link List.Builder#build()} is called immediately and * its result is passed to {@link #keySchema(List)}. * * @param keySchema * a consumer that will call methods on {@link List.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #keySchema(List) */ Builder keySchema(Consumer... keySchema); /** *

      * Represents attributes that are copied (projected) from the table into the global secondary index. These are * in addition to the primary key attributes and index key attributes, which are automatically projected. *

      * * @param projection * Represents attributes that are copied (projected) from the table into the global secondary index. * These are in addition to the primary key attributes and index key attributes, which are automatically * projected. * @return Returns a reference to this object so that method calls can be chained together. */ Builder projection(Projection projection); /** *

      * Represents attributes that are copied (projected) from the table into the global secondary index. These are * in addition to the primary key attributes and index key attributes, which are automatically projected. *

      * This is a convenience that creates an instance of the {@link Projection.Builder} avoiding the need to create * one manually via {@link Projection#builder()}. * * When the {@link Consumer} completes, {@link Projection.Builder#build()} is called immediately and its result * is passed to {@link #projection(Projection)}. * * @param projection * a consumer that will call methods on {@link Projection.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #projection(Projection) */ default Builder projection(Consumer projection) { return projection(Projection.builder().applyMutation(projection).build()); } /** *

      * The current state of the global secondary index: *

      *
        *
      • *

        * CREATING - The index is being created. *

        *
      • *
      • *

        * UPDATING - The index is being updated. *

        *
      • *
      • *

        * DELETING - The index is being deleted. *

        *
      • *
      • *

        * ACTIVE - The index is ready for use. *

        *
      • *
      * * @param indexStatus * The current state of the global secondary index:

      *
        *
      • *

        * CREATING - The index is being created. *

        *
      • *
      • *

        * UPDATING - The index is being updated. *

        *
      • *
      • *

        * DELETING - The index is being deleted. *

        *
      • *
      • *

        * ACTIVE - The index is ready for use. *

        *
      • * @see IndexStatus * @return Returns a reference to this object so that method calls can be chained together. * @see IndexStatus */ Builder indexStatus(String indexStatus); /** *

        * The current state of the global secondary index: *

        *
          *
        • *

          * CREATING - The index is being created. *

          *
        • *
        • *

          * UPDATING - The index is being updated. *

          *
        • *
        • *

          * DELETING - The index is being deleted. *

          *
        • *
        • *

          * ACTIVE - The index is ready for use. *

          *
        • *
        * * @param indexStatus * The current state of the global secondary index:

        *
          *
        • *

          * CREATING - The index is being created. *

          *
        • *
        • *

          * UPDATING - The index is being updated. *

          *
        • *
        • *

          * DELETING - The index is being deleted. *

          *
        • *
        • *

          * ACTIVE - The index is ready for use. *

          *
        • * @see IndexStatus * @return Returns a reference to this object so that method calls can be chained together. * @see IndexStatus */ Builder indexStatus(IndexStatus indexStatus); /** *

          * Indicates whether the index is currently backfilling. Backfilling is the process of reading items from * the table and determining whether they can be added to the index. (Not all items will qualify: For example, a * partition key cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. * After all items have been processed, the backfilling operation is complete and Backfilling is * false. *

          * *

          * For indexes that were created during a CreateTable operation, the Backfilling * attribute does not appear in the DescribeTable output. *

          *
          * * @param backfilling * Indicates whether the index is currently backfilling. Backfilling is the process of reading * items from the table and determining whether they can be added to the index. (Not all items will * qualify: For example, a partition key cannot have any duplicate values.) If an item can be added to * the index, DynamoDB will do so. After all items have been processed, the backfilling operation is * complete and Backfilling is false.

          *

          * For indexes that were created during a CreateTable operation, the * Backfilling attribute does not appear in the DescribeTable output. *

          * @return Returns a reference to this object so that method calls can be chained together. */ Builder backfilling(Boolean backfilling); /** *

          * Represents the provisioned throughput settings for the specified global secondary index. *

          *

          * For current minimum and maximum provisioned throughput values, see Limits in the * Amazon DynamoDB Developer Guide. *

          * * @param provisionedThroughput * Represents the provisioned throughput settings for the specified global secondary index.

          *

          * For current minimum and maximum provisioned throughput values, see Limits in the * Amazon DynamoDB Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder provisionedThroughput(ProvisionedThroughputDescription provisionedThroughput); /** *

          * Represents the provisioned throughput settings for the specified global secondary index. *

          *

          * For current minimum and maximum provisioned throughput values, see Limits in the * Amazon DynamoDB Developer Guide. *

          * This is a convenience that creates an instance of the {@link ProvisionedThroughputDescription.Builder} * avoiding the need to create one manually via {@link ProvisionedThroughputDescription#builder()}. * * When the {@link Consumer} completes, {@link ProvisionedThroughputDescription.Builder#build()} is called * immediately and its result is passed to {@link #provisionedThroughput(ProvisionedThroughputDescription)}. * * @param provisionedThroughput * a consumer that will call methods on {@link ProvisionedThroughputDescription.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #provisionedThroughput(ProvisionedThroughputDescription) */ default Builder provisionedThroughput(Consumer provisionedThroughput) { return provisionedThroughput(ProvisionedThroughputDescription.builder().applyMutation(provisionedThroughput).build()); } /** *

          * The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. * Recent changes might not be reflected in this value. *

          * * @param indexSizeBytes * The total size of the specified index, in bytes. DynamoDB updates this value approximately every six * hours. Recent changes might not be reflected in this value. * @return Returns a reference to this object so that method calls can be chained together. */ Builder indexSizeBytes(Long indexSizeBytes); /** *

          * The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent * changes might not be reflected in this value. *

          * * @param itemCount * The number of items in the specified index. DynamoDB updates this value approximately every six hours. * Recent changes might not be reflected in this value. * @return Returns a reference to this object so that method calls can be chained together. */ Builder itemCount(Long itemCount); /** *

          * The Amazon Resource Name (ARN) that uniquely identifies the index. *

          * * @param indexArn * The Amazon Resource Name (ARN) that uniquely identifies the index. * @return Returns a reference to this object so that method calls can be chained together. */ Builder indexArn(String indexArn); } static final class BuilderImpl implements Builder { private String indexName; private List keySchema = DefaultSdkAutoConstructList.getInstance(); private Projection projection; private String indexStatus; private Boolean backfilling; private ProvisionedThroughputDescription provisionedThroughput; private Long indexSizeBytes; private Long itemCount; private String indexArn; private BuilderImpl() { } private BuilderImpl(GlobalSecondaryIndexDescription model) { indexName(model.indexName); keySchema(model.keySchema); projection(model.projection); indexStatus(model.indexStatus); backfilling(model.backfilling); provisionedThroughput(model.provisionedThroughput); indexSizeBytes(model.indexSizeBytes); itemCount(model.itemCount); indexArn(model.indexArn); } public final String getIndexName() { return indexName; } @Override public final Builder indexName(String indexName) { this.indexName = indexName; return this; } public final void setIndexName(String indexName) { this.indexName = indexName; } public final Collection getKeySchema() { return keySchema != null ? keySchema.stream().map(KeySchemaElement::toBuilder).collect(Collectors.toList()) : null; } @Override public final Builder keySchema(Collection keySchema) { this.keySchema = KeySchemaCopier.copy(keySchema); return this; } @Override @SafeVarargs public final Builder keySchema(KeySchemaElement... keySchema) { keySchema(Arrays.asList(keySchema)); return this; } @Override @SafeVarargs public final Builder keySchema(Consumer... keySchema) { keySchema(Stream.of(keySchema).map(c -> KeySchemaElement.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; } public final void setKeySchema(Collection keySchema) { this.keySchema = KeySchemaCopier.copyFromBuilder(keySchema); } public final Projection.Builder getProjection() { return projection != null ? projection.toBuilder() : null; } @Override public final Builder projection(Projection projection) { this.projection = projection; return this; } public final void setProjection(Projection.BuilderImpl projection) { this.projection = projection != null ? projection.build() : null; } public final String getIndexStatus() { return indexStatus; } @Override public final Builder indexStatus(String indexStatus) { this.indexStatus = indexStatus; return this; } @Override public final Builder indexStatus(IndexStatus indexStatus) { this.indexStatus(indexStatus.toString()); return this; } public final void setIndexStatus(String indexStatus) { this.indexStatus = indexStatus; } public final Boolean getBackfilling() { return backfilling; } @Override public final Builder backfilling(Boolean backfilling) { this.backfilling = backfilling; return this; } public final void setBackfilling(Boolean backfilling) { this.backfilling = backfilling; } public final ProvisionedThroughputDescription.Builder getProvisionedThroughput() { return provisionedThroughput != null ? provisionedThroughput.toBuilder() : null; } @Override public final Builder provisionedThroughput(ProvisionedThroughputDescription provisionedThroughput) { this.provisionedThroughput = provisionedThroughput; return this; } public final void setProvisionedThroughput(ProvisionedThroughputDescription.BuilderImpl provisionedThroughput) { this.provisionedThroughput = provisionedThroughput != null ? provisionedThroughput.build() : null; } public final Long getIndexSizeBytes() { return indexSizeBytes; } @Override public final Builder indexSizeBytes(Long indexSizeBytes) { this.indexSizeBytes = indexSizeBytes; return this; } public final void setIndexSizeBytes(Long indexSizeBytes) { this.indexSizeBytes = indexSizeBytes; } public final Long getItemCount() { return itemCount; } @Override public final Builder itemCount(Long itemCount) { this.itemCount = itemCount; return this; } public final void setItemCount(Long itemCount) { this.itemCount = itemCount; } public final String getIndexArn() { return indexArn; } @Override public final Builder indexArn(String indexArn) { this.indexArn = indexArn; return this; } public final void setIndexArn(String indexArn) { this.indexArn = indexArn; } @Override public GlobalSecondaryIndexDescription build() { return new GlobalSecondaryIndexDescription(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy