public final class ReferencesTrait extends AbstractTrait implements software.amazon.smithy.utils.ToSmithyBuilder<ReferencesTrait>
ReferencesTraitValidator
Modifier and Type | Class and Description |
---|---|
static class |
ReferencesTrait.Builder
Builder use to create the references trait.
|
static class |
ReferencesTrait.Provider |
static class |
ReferencesTrait.Reference
Reference to a resource.
|
Modifier and Type | Method and Description |
---|---|
static ReferencesTrait.Builder |
builder() |
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.List<ReferencesTrait.Reference> |
getReferences()
Gets the references.
|
java.util.List<ReferencesTrait.Reference> |
getResourceReferences(ShapeId shapeId)
Gets a list of all references to a particular shape.
|
ReferencesTrait.Builder |
toBuilder() |
equals, getSourceLocation, hashCode, toNode, toShapeId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, makeAbsoluteName, makeAbsoluteName
public static final ShapeId ID
public java.util.List<ReferencesTrait.Reference> getReferences()
public java.util.List<ReferencesTrait.Reference> getResourceReferences(ShapeId shapeId)
shapeId
- Shape ID to search for.protected Node createNode()
AbstractTrait
createNode
in class AbstractTrait
public ReferencesTrait.Builder toBuilder()
toBuilder
in interface software.amazon.smithy.utils.ToSmithyBuilder<ReferencesTrait>
public static ReferencesTrait.Builder builder()