Class MapShape.Builder
java.lang.Object
software.amazon.smithy.model.shapes.AbstractShapeBuilder<MapShape.Builder,MapShape>
 
software.amazon.smithy.model.shapes.MapShape.Builder
- All Implemented Interfaces:
- FromSourceLocation,- SmithyBuilder<MapShape>
- Enclosing class:
- MapShape
Builder used to create a 
ListShape.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddMember(MemberShape member) Adds a member to the shape IFF the shape supports members.build()Creates an immutable object that is created from the properties that have been set on the builder.Removes all members from the builder.Removes mixins from a shape and flattens them into the shape.Gets the optional member with the given name.Gets the type of shape being built.Sets the shape ID of the shape.key(MemberShape member) Sets the key member of the map.key(ShapeId target, Consumer<MemberShape.Builder> memberUpdater) Sets the key member of the map.value(MemberShape member) Sets the value member of the map.value(ShapeId target, Consumer<MemberShape.Builder> memberUpdater) Sets the value member of the map.Methods inherited from class software.amazon.smithy.model.shapes.AbstractShapeBuilderaddMixin, addTrait, addTraits, clearMixins, clearTraits, getAllTraits, getId, getSourceLocation, id, mixins, removeMixin, removeTrait, removeTrait, source, source, traits
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
buildDescription copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
 
- 
getShapeTypeDescription copied from class:AbstractShapeBuilderGets the type of shape being built.- Specified by:
- getShapeTypein class- AbstractShapeBuilder<MapShape.Builder,- MapShape> 
- Returns:
- Returns the shape type.
 
- 
getMemberDescription copied from class:AbstractShapeBuilderGets the optional member with the given name.- Overrides:
- getMemberin class- AbstractShapeBuilder<MapShape.Builder,- MapShape> 
- Returns:
- Returns the optional member with the given name.
 
- 
idDescription copied from class:AbstractShapeBuilderSets the shape ID of the shape.- Overrides:
- idin class- AbstractShapeBuilder<MapShape.Builder,- MapShape> 
- Parameters:
- shapeId- Shape ID to set.
- Returns:
- Returns the builder.
 
- 
key
- 
value
- 
addMemberDescription copied from class:AbstractShapeBuilderAdds a member to the shape IFF the shape supports members.- Overrides:
- addMemberin class- AbstractShapeBuilder<MapShape.Builder,- MapShape> 
- Parameters:
- member- Member to add to the shape.
- Returns:
- Returns the builder.
 
- 
clearMembersDescription copied from class:AbstractShapeBuilderRemoves all members from the builder.- Overrides:
- clearMembersin class- AbstractShapeBuilder<MapShape.Builder,- MapShape> 
- Returns:
- Returns the builder.
 
- 
keySets the key member of the map.- Parameters:
- target- Target of the member.
- Returns:
- Returns the builder.
 
- 
keySets the key member of the map.- Parameters:
- target- Target of the member.
- memberUpdater- Consumer that can update the created member shape.
- Returns:
- Returns the builder.
 
- 
valueSets the value member of the map.- Parameters:
- target- Target of the member.
- Returns:
- Returns the builder.
 
- 
valueSets the value member of the map.- Parameters:
- target- Target of the member.
- memberUpdater- Consumer that can updated the created member shape.
- Returns:
- Returns the builder.
 
- 
flattenMixinsDescription copied from class:AbstractShapeBuilderRemoves mixins from a shape and flattens them into the shape.Flattening a mixin into a shape copies the traits and members of a mixin onto the shape, effectively resulting in the same shape but with no trace of the mixin relationship. - Overrides:
- flattenMixinsin class- AbstractShapeBuilder<MapShape.Builder,- MapShape> 
- Returns:
- Returns the updated builder.
 
 
-