Class ArnTrait
java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.traits.ArnTrait
- 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<ArnTrait>
public final class ArnTrait
extends software.amazon.smithy.model.traits.AbstractTrait
implements software.amazon.smithy.utils.ToSmithyBuilder<ArnTrait>
Configures the ARN template of a resource shape, relative to the
service to which a resource is bound.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ArnTrait.Builderbuilder()protected software.amazon.smithy.model.node.NodebooleaninthashCode()booleanbooleanbooleanMethods 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
- Returns:
- Returns a builder used to create
ArnTrait.
-
isNoAccount
public boolean isNoAccount()- Returns:
- Returns the noAccount setting.
-
isNoRegion
public boolean isNoRegion()- Returns:
- Returns the noRegion setting.
-
isAbsolute
public boolean isAbsolute()- Returns:
- Returns whether or not the ARN is absolute.
-
getTemplate
- Returns:
- Gets the template of the ARN.
-
getLabels
- Returns:
- Returns the label place holder variable names.
-
createNode
protected software.amazon.smithy.model.node.Node createNode()- Specified by:
createNodein classsoftware.amazon.smithy.model.traits.AbstractTrait
-
toBuilder
- Specified by:
toBuilderin interfacesoftware.amazon.smithy.utils.ToSmithyBuilder<ArnTrait>
-
equals
- Overrides:
equalsin classsoftware.amazon.smithy.model.traits.AbstractTrait
-
hashCode
public int hashCode()- Overrides:
hashCodein classsoftware.amazon.smithy.model.traits.AbstractTrait
-