com.amazonaws.services.dynamodbv2.datamodeling

## クラス DynamoDBMapperConfig

- java.lang.Object
- - com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapperConfig

-     public class DynamoDBMapperConfig
      extends java.lang.Object

  Immutable configuration object for service call behavior. An instance of this configuration is supplied to every `DynamoDBMapper` at construction; if not provided explicitly, `DEFAULT` is used. New instances can be given to the mapper object on individual save, load, and delete operations to override the defaults. For example:

       DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
       // Force this read to be consistent
       DomainClass obj = mapper.load(DomainClass.class, key, new DynamoDBMapperConfig(ConsistentReads.CONSISTENT));
       // Force this save operation to use putItem rather than updateItem
       mapper.save(obj, new DynamoDBMapperConfig(SaveBehavior.CLOBBER));
       // Save the object into a different table
       mapper.save(obj, new DynamoDBMapperConfig(new TableNameOverride("AnotherTable")));
       // Delete the object even if the version field is out of date
       mapper.delete(obj, new DynamoDBMapperConfig(SaveBehavior.CLOBBER));

- - ### ネストされたクラスの概要

    ネストされたクラス
    修飾子とタイプ | クラスと説明
    --- | ---
    `static class` | `DynamoDBMapperConfig.ConsistentReads` Enumeration of consistent read behavior.
    `static class` | `DynamoDBMapperConfig.SaveBehavior` Enumeration of behaviors for the save operation.
    `static class` | `DynamoDBMapperConfig.TableNameOverride` Allows overriding the table name declared on a domain class by the `DynamoDBTable` annotation.

  - ### フィールドの概要

    フィールド
    修飾子とタイプ | フィールドと説明
    --- | ---
    `static DynamoDBMapperConfig` | `DEFAULT` Default configuration uses UPDATE behavior for saves and EVENTUALly consistent reads, with no table name override.

  - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `DynamoDBMapperConfig(DynamoDBMapperConfig.ConsistentReads consistentReads)` Constructs a new configuration object with the consistent read behavior given.
    `DynamoDBMapperConfig(DynamoDBMapperConfig.SaveBehavior saveBehavior)` Constructs a new configuration object with the save behavior given.
    `DynamoDBMapperConfig(DynamoDBMapperConfig.SaveBehavior saveBehavior, DynamoDBMapperConfig.ConsistentReads consistentReads, DynamoDBMapperConfig.TableNameOverride tableNameOverride)` Constructs a new configuration object with the save behavior, consistent read behavior, and table name override given.
    `DynamoDBMapperConfig(DynamoDBMapperConfig.TableNameOverride tableNameOverride)` Constructs a new configuration object with the table name override given.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `DynamoDBMapperConfig.ConsistentReads` | `getConsistentReads()` Returns the consistent read behavior for this configuration.
    `DynamoDBMapperConfig.SaveBehavior` | `getSaveBehavior()` Returns the save behavior for this configuration.
    `DynamoDBMapperConfig.TableNameOverride` | `getTableNameOverride()` Returns the table name override for this configuration.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### フィールドの詳細

    - #### DEFAULT

          public static final DynamoDBMapperConfig DEFAULT

      Default configuration uses UPDATE behavior for saves and EVENTUALly consistent reads, with no table name override.

  - ### コンストラクタの詳細

    - #### DynamoDBMapperConfig

          public DynamoDBMapperConfig(DynamoDBMapperConfig.SaveBehavior saveBehavior,
                              DynamoDBMapperConfig.ConsistentReads consistentReads,
                              DynamoDBMapperConfig.TableNameOverride tableNameOverride)

      Constructs a new configuration object with the save behavior, consistent read behavior, and table name override given.
      パラメータ:
        `saveBehavior` - The `DynamoDBMapperConfig.SaveBehavior` to use, or null for default.
        `consistentReads` - The `DynamoDBMapperConfig.ConsistentReads` to use, or null for default.
        `tableNameOverride` - An override for the table name, or null for no override.

    - #### DynamoDBMapperConfig

          public DynamoDBMapperConfig(DynamoDBMapperConfig.SaveBehavior saveBehavior)

      Constructs a new configuration object with the save behavior given.

    - #### DynamoDBMapperConfig

          public DynamoDBMapperConfig(DynamoDBMapperConfig.ConsistentReads consistentReads)

      Constructs a new configuration object with the consistent read behavior given.

    - #### DynamoDBMapperConfig

          public DynamoDBMapperConfig(DynamoDBMapperConfig.TableNameOverride tableNameOverride)

      Constructs a new configuration object with the table name override given.

  - ### メソッドの詳細

    - #### getSaveBehavior

          public DynamoDBMapperConfig.SaveBehavior getSaveBehavior()

      Returns the save behavior for this configuration.

    - #### getConsistentReads

          public DynamoDBMapperConfig.ConsistentReads getConsistentReads()

      Returns the consistent read behavior for this configuration.

    - #### getTableNameOverride

          public DynamoDBMapperConfig.TableNameOverride getTableNameOverride()

      Returns the table name override for this configuration. This value will override the table name specified in a `DynamoDBTable` annotation, either by replacing the table name entirely or else by pre-pending a string to each table name. This is useful for partitioning data in multiple tables at runtime.
      関連項目:
        `DynamoDBMapperConfig.TableNameOverride.withTableNamePrefix(String)`, `DynamoDBMapperConfig.TableNameOverride.withTableNameReplacement(String)`