Interface AttributeValue.Builder

  • Method Details

    • booleanValue

      AttributeValue.Builder booleanValue(Boolean booleanValue)

      An attribute value of Boolean type.

      Example: {"boolean": true}

      Parameters:
      booleanValue - An attribute value of Boolean type.

      Example: {"boolean": true}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entityIdentifier

      AttributeValue.Builder entityIdentifier(EntityIdentifier entityIdentifier)

      An attribute value of type EntityIdentifier.

      Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}

      Parameters:
      entityIdentifier - An attribute value of type EntityIdentifier.

      Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entityIdentifier

      default AttributeValue.Builder entityIdentifier(Consumer<EntityIdentifier.Builder> entityIdentifier)

      An attribute value of type EntityIdentifier.

      Example: "entityIdentifier": { "entityId": "<id>", "entityType": "<entity type>"}

      This is a convenience method that creates an instance of the EntityIdentifier.Builder avoiding the need to create one manually via EntityIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to entityIdentifier(EntityIdentifier).

      Parameters:
      entityIdentifier - a consumer that will call methods on EntityIdentifier.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • longValue

      AttributeValue.Builder longValue(Long longValue)

      An attribute value of Long type.

      Example: {"long": 0}

      Parameters:
      longValue - An attribute value of Long type.

      Example: {"long": 0}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • string

      An attribute value of String type.

      Example: {"string": "abc"}

      Parameters:
      string - An attribute value of String type.

      Example: {"string": "abc"}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • set

      An attribute value of Set type.

      Example: {"set": [ {} ] }

      Parameters:
      set - An attribute value of Set type.

      Example: {"set": [ {} ] }

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • set

      An attribute value of Set type.

      Example: {"set": [ {} ] }

      Parameters:
      set - An attribute value of Set type.

      Example: {"set": [ {} ] }

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • set

      An attribute value of Set type.

      Example: {"set": [ {} ] }

      This is a convenience method that creates an instance of the AttributeValue.Builder avoiding the need to create one manually via AttributeValue.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to set(List<AttributeValue>).

      Parameters:
      set - a consumer that will call methods on AttributeValue.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • record

      An attribute value of Record type.

      Example: {"record": { "keyName": {} } }

      Parameters:
      record - An attribute value of Record type.

      Example: {"record": { "keyName": {} } }

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipaddr

      An attribute value of ipaddr type.

      Example: {"ip": "192.168.1.100"}

      Parameters:
      ipaddr - An attribute value of ipaddr type.

      Example: {"ip": "192.168.1.100"}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • decimal

      AttributeValue.Builder decimal(String decimal)

      An attribute value of decimal type.

      Example: {"decimal": "1.1"}

      Parameters:
      decimal - An attribute value of decimal type.

      Example: {"decimal": "1.1"}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • datetime

      AttributeValue.Builder datetime(String datetime)

      An attribute value of datetime type.

      Example: {"datetime": "2024-10-15T11:35:00Z"}

      Parameters:
      datetime - An attribute value of datetime type.

      Example: {"datetime": "2024-10-15T11:35:00Z"}

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • duration

      AttributeValue.Builder duration(String duration)

      An attribute value of duration type.

      Example: {"duration": "1h30m"}

      Parameters:
      duration - An attribute value of duration type.

      Example: {"duration": "1h30m"}

      Returns:
      Returns a reference to this object so that method calls can be chained together.