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 Classes Modifier and Type Class Description static class
ArnReferenceTrait.Builder
Builder forArnReferenceTrait
.static class
ArnReferenceTrait.Provider
-
Field Summary
Fields Modifier and Type Field Description static software.amazon.smithy.model.shapes.ShapeId
ID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArnReferenceTrait.Builder
builder()
protected software.amazon.smithy.model.node.Node
createNode()
java.util.Optional<software.amazon.smithy.model.shapes.ShapeId>
getResource()
Get the Smithy resource shape ID of the ARN.java.util.Optional<software.amazon.smithy.model.shapes.ShapeId>
getService()
Get the Smithy service shape ID of the ARN.java.util.Optional<java.lang.String>
getType()
Get the AWS CloudFormation type of the ARN.ArnReferenceTrait.Builder
toBuilder()
-
-
-
Method Detail
-
builder
public static ArnReferenceTrait.Builder builder()
-
getType
public java.util.Optional<java.lang.String> getType()
Get the AWS CloudFormation type of the ARN.- Returns:
- Returns the optional type.
-
getResource
public java.util.Optional<software.amazon.smithy.model.shapes.ShapeId> getResource()
Get the Smithy resource shape ID of the ARN.- Returns:
- Returns the optionally present shape ID.
-
getService
public java.util.Optional<software.amazon.smithy.model.shapes.ShapeId> getService()
Get the Smithy service shape ID of the ARN.- Returns:
- Returns the optionally present shape ID.
-
toBuilder
public ArnReferenceTrait.Builder 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
-
-