public final class PaginatedTrait extends AbstractTrait implements ToSmithyBuilder<PaginatedTrait>
PaginatedTraitValidator
Modifier and Type | Class and Description |
---|---|
static class |
PaginatedTrait.Builder
Builds the paginated trait.
|
static class |
PaginatedTrait.Provider |
Modifier and Type | Method and Description |
---|---|
static PaginatedTrait.Builder |
builder() |
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.Optional<java.lang.String> |
getInputToken() |
java.util.Optional<java.lang.String> |
getItems() |
java.util.Optional<java.lang.String> |
getOutputToken() |
java.util.Optional<java.lang.String> |
getPageSize() |
PaginatedTrait |
merge(PaginatedTrait other)
Merges this paginated trait with another trait.
|
static java.util.List<MemberShape> |
resolveFullPath(java.lang.String path,
Model model,
StructureShape shape)
Resolves an output path to a list of
MemberShape . |
static java.util.Optional<MemberShape> |
resolvePath(java.lang.String path,
Model model,
StructureShape shape)
Deprecated.
This method only returns the last
MemberShape of an output path. To resolve each path
identifier to it's respective MemberShape see resolveFullPath(java.lang.String, software.amazon.smithy.model.Model, software.amazon.smithy.model.shapes.StructureShape) |
PaginatedTrait.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public java.util.Optional<java.lang.String> getItems()
public java.util.Optional<java.lang.String> getInputToken()
public java.util.Optional<java.lang.String> getOutputToken()
public java.util.Optional<java.lang.String> getPageSize()
@Deprecated public static java.util.Optional<MemberShape> resolvePath(java.lang.String path, Model model, StructureShape shape)
MemberShape
of an output path. To resolve each path
identifier to it's respective MemberShape
see resolveFullPath(java.lang.String, software.amazon.smithy.model.Model, software.amazon.smithy.model.shapes.StructureShape)
A path is a series of identifiers separated by dots (`.`) where each identifier represents a member name in a structure.
path
- The path to resolve.model
- The model to be searched when resolving the path.shape
- The shape where path resolution should start, e.g. the output shape
of an operation.public static java.util.List<MemberShape> resolveFullPath(java.lang.String path, Model model, StructureShape shape)
MemberShape
.
A path is a series of identifiers separated by dots (`.`) where each identifier represents a member name in a structure.
path
- The path to resolve.model
- The model to be searched when resolving the path.shape
- The shape where path resolution should start, e.g. the output shape
of an operation.public PaginatedTrait merge(PaginatedTrait other)
Values set on this trait take precedence over values of the other trait. This operation is typically performed to merge the paginated trait of an operation with the paginated trait of a service.
If other
is null, the current trait is returned as-is.
other
- Other trait to merge with.protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait
public PaginatedTrait.Builder toBuilder()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<PaginatedTrait>
public static PaginatedTrait.Builder builder()