Class MapDocument.MapBuilderInternal

java.lang.Object
software.amazon.awssdk.core.document.internal.MapDocument.MapBuilderInternal
All Implemented Interfaces:
Document.MapBuilder
Enclosing class:
MapDocument

public static class MapDocument.MapBuilderInternal extends Object implements Document.MapBuilder
  • Constructor Details

    • MapBuilderInternal

      public MapBuilderInternal()
  • Method Details

    • putString

      public Document.MapBuilder putString(String key, String stringValue)
      Specified by:
      putString in interface Document.MapBuilder
      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

      public Document.MapBuilder putNumber(String key, SdkNumber numberValue)
      Specified by:
      putNumber in interface Document.MapBuilder
      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

      public Document.MapBuilder putNumber(String key, int numberValue)
      Specified by:
      putNumber in interface Document.MapBuilder
      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

      public Document.MapBuilder putNumber(String key, long numberValue)
      Specified by:
      putNumber in interface Document.MapBuilder
      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

      public Document.MapBuilder putNumber(String key, double numberValue)
      Specified by:
      putNumber in interface Document.MapBuilder
      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

      public Document.MapBuilder putNumber(String key, float numberValue)
      Specified by:
      putNumber in interface Document.MapBuilder
      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

      public Document.MapBuilder putNumber(String key, BigDecimal numberValue)
      Specified by:
      putNumber in interface Document.MapBuilder
      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

      public Document.MapBuilder putNumber(String key, BigInteger numberValue)
      Specified by:
      putNumber in interface Document.MapBuilder
      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

      public Document.MapBuilder putNumber(String key, String numberValue)
      Specified by:
      putNumber in interface Document.MapBuilder
      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

      public Document.MapBuilder putBoolean(String key, boolean booleanValue)
      Specified by:
      putBoolean in interface Document.MapBuilder
      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

      public Document.MapBuilder putDocument(String key, Document document)
      Specified by:
      putDocument in interface Document.MapBuilder
      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

      public Document.MapBuilder putNull(String key)
      Specified by:
      putNull in interface Document.MapBuilder
      Parameters:
      key - Map Key for the Document.
      Returns:
      Builder which provides APIs to put Key Value pair to a Document Map.
    • putList

      public Document.MapBuilder putList(String key, List<Document> documentList)
      Specified by:
      putList in interface Document.MapBuilder
      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

      public Document.MapBuilder putList(String key, Consumer<Document.ListBuilder> listBuilderConsumer)
      Specified by:
      putList in interface Document.MapBuilder
      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

      public Document.MapBuilder putMap(String key, Map<String,Document> documentMap)
      Specified by:
      putMap in interface Document.MapBuilder
      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

      public Document.MapBuilder putMap(String key, Consumer<Document.MapBuilder> mapBuilderConsumer)
      Specified by:
      putMap in interface 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

      public Document build()
      Specified by:
      build in interface Document.MapBuilder
      Returns:
      The new Document.