public final class ReferencesTrait extends AbstractTrait implements 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.
|
boolean |
equals(java.lang.Object other) |
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.
|
int |
hashCode() |
ReferencesTrait.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
getSourceLocation, 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.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()
ToSmithyBuilder
toBuilder
in interface ToSmithyBuilder<ReferencesTrait>
public boolean equals(java.lang.Object other)
equals
in class AbstractTrait
public int hashCode()
hashCode
in class AbstractTrait
public static ReferencesTrait.Builder builder()