public static final class ObjectNode.Builder extends java.lang.Object implements SmithyBuilder<ObjectNode>
Modifier and Type | Method and Description |
---|---|
ObjectNode |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
boolean |
hasMember(java.lang.String key) |
ObjectNode.Builder |
merge(ObjectNode other) |
ObjectNode.Builder |
sourceLocation(SourceLocation sourceLocation) |
ObjectNode.Builder |
withMember(java.lang.String key,
boolean value) |
<T extends ToNode> |
withMember(StringNode key,
T value) |
ObjectNode.Builder |
withMember(java.lang.String key,
java.lang.Number value) |
ObjectNode.Builder |
withMember(java.lang.String key,
java.lang.String value) |
<T extends ToNode> |
withMember(java.lang.String key,
T value) |
<T extends ToNode> |
withOptionalMember(java.lang.String key,
java.util.Optional<T> value) |
ObjectNode.Builder |
withoutMember(java.lang.String memberName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public ObjectNode build()
SmithyBuilder
build
in interface SmithyBuilder<ObjectNode>
public ObjectNode.Builder sourceLocation(SourceLocation sourceLocation)
public boolean hasMember(java.lang.String key)
public <T extends ToNode> ObjectNode.Builder withMember(StringNode key, T value)
public <T extends ToNode> ObjectNode.Builder withMember(java.lang.String key, T value)
public ObjectNode.Builder withMember(java.lang.String key, java.lang.String value)
public ObjectNode.Builder withMember(java.lang.String key, boolean value)
public ObjectNode.Builder withMember(java.lang.String key, java.lang.Number value)
public <T extends ToNode> ObjectNode.Builder withOptionalMember(java.lang.String key, java.util.Optional<T> value)
public ObjectNode.Builder withoutMember(java.lang.String memberName)
public ObjectNode.Builder merge(ObjectNode other)