Class ArrayNode.Builder
- java.lang.Object
-
- software.amazon.smithy.model.node.ArrayNode.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ArrayNode>
- Enclosing class:
- ArrayNode
public static final class ArrayNode.Builder extends java.lang.Object implements SmithyBuilder<ArrayNode>
Builder used to efficiently create an ArrayNode.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayNode
build()
Creates an immutable object that is created from the properties that have been set on the builder.ArrayNode.Builder
merge(ArrayNode other)
ArrayNode.Builder
sourceLocation(SourceLocation sourceLocation)
ArrayNode.Builder
withoutValue(java.lang.Object value)
ArrayNode.Builder
withValue(boolean value)
ArrayNode.Builder
withValue(java.lang.Number value)
ArrayNode.Builder
withValue(java.lang.String value)
<T extends ToNode>
ArrayNode.BuilderwithValue(T value)
-
-
-
Method Detail
-
build
public ArrayNode 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<ArrayNode>
- Returns:
- an instance of T
-
sourceLocation
public ArrayNode.Builder sourceLocation(SourceLocation sourceLocation)
-
withValue
public <T extends ToNode> ArrayNode.Builder withValue(T value)
-
withValue
public ArrayNode.Builder withValue(java.lang.String value)
-
withValue
public ArrayNode.Builder withValue(boolean value)
-
withValue
public ArrayNode.Builder withValue(java.lang.Number value)
-
withoutValue
public ArrayNode.Builder withoutValue(java.lang.Object value)
-
merge
public ArrayNode.Builder merge(ArrayNode other)
-
-