Class ReferencesTrait.Reference
- java.lang.Object
-
- software.amazon.smithy.model.traits.ReferencesTrait.Reference
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<ReferencesTrait.Reference>
- Enclosing class:
- ReferencesTrait
public static final class ReferencesTrait.Reference extends java.lang.Object implements ToSmithyBuilder<ReferencesTrait.Reference>, ToNode
Reference to a resource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReferencesTrait.Reference.Builder
Builder to create aReferencesTrait.Reference
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReferencesTrait.Reference.Builder
builder()
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.lang.String>
getIds()
java.util.Optional<java.lang.String>
getRel()
ShapeId
getResource()
Get the referenced shape.java.util.Optional<ShapeId>
getService()
Get the service binding.int
hashCode()
ReferencesTrait.Reference.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.Node
toNode()
Converts a value to aNode
.java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static ReferencesTrait.Reference.Builder builder()
-
toBuilder
public ReferencesTrait.Reference.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<ReferencesTrait.Reference>
- Returns:
- a builder for type T
-
getResource
public ShapeId getResource()
Get the referenced shape.- Returns:
- Returns the referenced shape.
-
getService
public java.util.Optional<ShapeId> getService()
Get the service binding.- Returns:
- Returns the optionally referenced service.
-
getIds
public java.util.Map<java.lang.String,java.lang.String> getIds()
- Returns:
- Returns the immutable mapping of member names to resource identifier name.
-
getRel
public java.util.Optional<java.lang.String> getRel()
- Returns:
- Gets the optional rel property.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-