Document.MapBuilder (AWS SDK for Java

Document.MapBuilder (AWS SDK for Java - 2.25.21)
All Known Implementing Classes:
MapDocument.MapBuilderInternal
Enclosing interface:
Document

public static interface Document.MapBuilder

  • Method Summary

    Creates a new Document with the key value pair pair inserted using put method.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given boolean.

    Inserts a Key Value pair to a Document Map with String key and the given Document.

    Inserts a Key Value pair to a Document Map with String key and value constructed from Consumer of Document.ListBuilder.

    Inserts a Key Value pair to a Document Map with String key and value as List of Document.

    Inserts a Key Value pair to a Document Map with String key and value constructed from Consumer of Document.MapBuilder.

    Inserts a Key Value pair to a Document Map with String key and Document constructed from Document Map.

    Inserts a Key Value pair to a Document Map with String key and value with Null Document.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given double.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given float.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given integer.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given long.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given String.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given BigDecimal.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given BigInteger.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given Number.

    Inserts a Key Value pair to a Document Map with String key and a Document created from the given String.

  • Method Details

    • putString

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given String.

      Parameters:
      key - Map Key for the Document.
      stringValue - String value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putNumber

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given Number.

      Parameters:
      key - Map Key for the Document.
      numberValue - Number value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putNumber

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given integer.

      Parameters:
      key - Map Key for the Document.
      numberValue - Integer value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putNumber

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given long.

      Parameters:
      key - Map Key for the Document.
      numberValue - long value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putNumber

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given double.

      Parameters:
      key - Map Key for the Document.
      numberValue - double value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putNumber

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given float.

      Parameters:
      key - Map Key for the Document.
      numberValue - float value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putNumber

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given BigDecimal.

      Parameters:
      key - Map Key for the Document.
      numberValue - BigDecimal value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putNumber

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given BigInteger.

      Parameters:
      key - Map Key for the Document.
      numberValue - BigInteger value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putNumber

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given String.

      Parameters:
      key - Map Key for the Document.
      numberValue - String value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putBoolean

      Inserts a Key Value pair to a Document Map with String key and a Document created from the given boolean.

      Parameters:
      key - Map Key for the Document.
      booleanValue - Boolean value which will be used to create a Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putDocument

      Inserts a Key Value pair to a Document Map with String key and the given Document.

      Parameters:
      key - Map Key for the Document.
      document - Document to be inserted in a DocumentMap.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putNull

      Inserts a Key Value pair to a Document Map with String key and value with Null Document.

      Parameters:
      key - Map Key for the Document.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putList

      Inserts a Key Value pair to a Document Map with String key and value as List of Document.

      Parameters:
      key - Map Key for the Document.
      documentList - List of Documents.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putList

      Inserts a Key Value pair to a Document Map with String key and value constructed from Consumer of Document.ListBuilder.
      Parameters:
      key - Map Key for the Document.
      listBuilderConsumer - Consumer that accepts Document.ListBuilder
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putMap

      Inserts a Key Value pair to a Document Map with String key and Document constructed from Document Map.

      Parameters:
      key - Map Key for the Document.
      documentMap - Map of Document.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putMap

      Inserts a Key Value pair to a Document Map with String key and value constructed from Consumer of Document.MapBuilder.
      Parameters:
      key - Map Key for the Document.
      mapBuilderConsumer - Consumer that accepts Document.ListBuilder
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • build

      Creates a new Document with the key value pair pair inserted using put method.
      Returns:
      The new Document.

You Might Also Like