Enum DynamoDbAttributeType

java.lang.Object
java.lang.Enum<DynamoDbAttributeType>
org.evomaster.client.java.controller.dynamodb.DynamoDbAttributeType
All Implemented Interfaces:
Serializable, Comparable<DynamoDbAttributeType>, java.lang.constant.Constable

public enum DynamoDbAttributeType extends Enum<DynamoDbAttributeType>
DynamoDB attribute types accepted by the attribute_type expression function.
  • Enum Constant Details

  • Method Details

    • values

      public static DynamoDbAttributeType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DynamoDbAttributeType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromToken

      public static DynamoDbAttributeType fromToken(String token)
      Maps an exact DynamoDB type token to its enum value.
      Parameters:
      token - DynamoDB attribute type token
      Returns:
      matching attribute type
      Throws:
      IllegalArgumentException - when the token is null or unsupported
    • getToken

      public String getToken()
      Returns:
      DynamoDB type token used in expression attribute values
    • isScalarSetVariantOf

      public boolean isScalarSetVariantOf(DynamoDbAttributeType other)
      Checks whether this type and another type are scalar/set variants of the same value family.
      Parameters:
      other - type to compare
      Returns:
      true for the S/SS, N/NS, and B/BS pairs in either direction