Class TaggableTrait
java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.aws.traits.tagging.TaggableTrait
- 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<TaggableTrait>
public final class TaggableTrait
extends software.amazon.smithy.model.traits.AbstractTrait
implements software.amazon.smithy.utils.ToSmithyBuilder<TaggableTrait>
Marks a resource shape as taggable for further model validation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TaggableTrait.Builderbuilder()protected software.amazon.smithy.model.node.NodeGets the TaggableApiConfig if the resource has its own APIs for tagging.booleanGets a boolean indicating whether or not the service supports the resource carrying system tags.Gets the name of the property that represents the tags on the resource, if any.Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, 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
-
getDisableSystemTags
public boolean getDisableSystemTags()Gets a boolean indicating whether or not the service supports the resource carrying system tags.- Returns:
- Returns true if the service does not support the resource carrying system tags.
-
getApiConfig
Gets the TaggableApiConfig if the resource has its own APIs for tagging.- Returns:
- the TaggableApiConfig for the resource.
-
getProperty
Gets the name of the property that represents the tags on the resource, if any.- Returns:
- the name of the property that represents the tags of the resource.
-
createNode
protected software.amazon.smithy.model.node.Node createNode()- Specified by:
createNodein classsoftware.amazon.smithy.model.traits.AbstractTrait
-
builder
-
toBuilder
- Specified by:
toBuilderin interfacesoftware.amazon.smithy.utils.ToSmithyBuilder<TaggableTrait>
-