Class ObjectNode.Builder
java.lang.Object
software.amazon.smithy.model.node.ObjectNode.Builder
- All Implemented Interfaces:
SmithyBuilder<ObjectNode>
- Enclosing class:
- ObjectNode
Builder used to efficiently create an ObjectNode.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates an immutable object that is created from the properties that have been set on the builder.boolean
merge
(ObjectNode other) sourceLocation
(SourceLocation sourceLocation) withMember
(String key, boolean value) withMember
(String key, Number value) withMember
(String key, String value) <T extends ToNode>
ObjectNode.BuilderwithMember
(String key, T value) <T extends ToNode>
ObjectNode.BuilderwithMember
(StringNode key, T value) <T extends ToNode>
ObjectNode.BuilderwithOptionalMember
(String key, Optional<T> value) withoutMember
(String memberName)
-
Method Details
-
build
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceSmithyBuilder<ObjectNode>
- Returns:
- an instance of T
-
sourceLocation
-
hasMember
-
withMember
-
withMember
-
withMember
-
withMember
-
withMember
-
withOptionalMember
-
withoutMember
-
merge
-