Class ArnReferenceTrait
java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.traits.ArnReferenceTrait
- All Implemented Interfaces:
software.amazon.smithy.model.FromSourceLocation
,software.amazon.smithy.model.node.ToNode
,software.amazon.smithy.model.shapes.ToShapeId
,software.amazon.smithy.model.traits.Trait
,software.amazon.smithy.utils.ToSmithyBuilder<ArnReferenceTrait>
public final class ArnReferenceTrait
extends software.amazon.smithy.model.traits.AbstractTrait
implements software.amazon.smithy.utils.ToSmithyBuilder<ArnReferenceTrait>
Indicates that a string shape contains an ARN.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder forArnReferenceTrait
.static final class
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ArnReferenceTrait.Builder
builder()
protected software.amazon.smithy.model.node.Node
boolean
Optional<software.amazon.smithy.model.shapes.ShapeId>
Get the Smithy resource shape ID of the ARN.Optional<software.amazon.smithy.model.shapes.ShapeId>
Get the Smithy service shape ID of the ARN.getType()
Get the AWS CloudFormation type of the ARN.int
hashCode()
Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
getSourceLocation, setNodeCache, toNode, toShapeId, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
Field Details
-
ID
public static final software.amazon.smithy.model.shapes.ShapeId ID
-
-
Method Details
-
builder
-
getType
Get the AWS CloudFormation type of the ARN.- Returns:
- Returns the optional type.
-
getResource
Get the Smithy resource shape ID of the ARN.- Returns:
- Returns the optionally present shape ID.
-
getService
Get the Smithy service shape ID of the ARN.- Returns:
- Returns the optionally present shape ID.
-
toBuilder
- Specified by:
toBuilder
in interfacesoftware.amazon.smithy.utils.ToSmithyBuilder<ArnReferenceTrait>
-
createNode
protected software.amazon.smithy.model.node.Node createNode()- Specified by:
createNode
in classsoftware.amazon.smithy.model.traits.AbstractTrait
-
equals
- Overrides:
equals
in classsoftware.amazon.smithy.model.traits.AbstractTrait
-
hashCode
public int hashCode()- Overrides:
hashCode
in classsoftware.amazon.smithy.model.traits.AbstractTrait
-