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 classBuilder forArnReferenceTrait.static final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ArnReferenceTrait.Builderbuilder()protected software.amazon.smithy.model.node.NodebooleanOptional<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.inthashCode()Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
getSourceLocation, setNodeCache, toNode, toShapeId, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
toBuilderin interfacesoftware.amazon.smithy.utils.ToSmithyBuilder<ArnReferenceTrait>
-
createNode
protected software.amazon.smithy.model.node.Node createNode()- Specified by:
createNodein classsoftware.amazon.smithy.model.traits.AbstractTrait
-
equals
- Overrides:
equalsin classsoftware.amazon.smithy.model.traits.AbstractTrait
-
hashCode
public int hashCode()- Overrides:
hashCodein classsoftware.amazon.smithy.model.traits.AbstractTrait
-