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 ArrayNodebuild()Creates an immutable object that is created from the properties that have been set on the builder.ArrayNode.Buildermerge(ArrayNode other)ArrayNode.BuildersourceLocation(SourceLocation sourceLocation)ArrayNode.BuilderwithoutValue(java.lang.Object value)ArrayNode.BuilderwithValue(boolean value)ArrayNode.BuilderwithValue(java.lang.Number value)ArrayNode.BuilderwithValue(java.lang.String value)<T extends ToNode>
ArrayNode.BuilderwithValue(T value)
-
-
-
Method Detail
-
build
public ArrayNode build()
Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Specified by:
buildin 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)
-
-