Package software.amazon.smithy.utils
Interface Tagged
-
- All Known Implementing Classes:
BigDecimalShape,BigIntegerShape,BlobShape,BooleanShape,ByteShape,CollectionShape,DocumentShape,DoubleShape,EntityShape,EnumDefinition,EnumShape,FloatShape,HttpMalformedRequestTestCase,HttpMessageTestCase,HttpRequestTestCase,HttpResponseTestCase,IntegerShape,IntEnumShape,ListShape,LongShape,MapShape,MemberShape,NumberShape,OperationShape,ResourceShape,ServiceShape,SetShape,Shape,ShortShape,SimpleShape,StringShape,StructureShape,TagsTrait,TimestampShape,UnionShape,Waiter
public interface TaggedA type that contains tags.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.List<java.lang.String>getTags()Gets the tags applied to an object.default booleanhasTag(java.lang.String tag)Checks if the value has the given tag by name.
-
-
-
Method Detail
-
getTags
default java.util.List<java.lang.String> getTags()
Gets the tags applied to an object.- Returns:
- Returns the tag values.
-
hasTag
default boolean hasTag(java.lang.String tag)
Checks if the value has the given tag by name.- Parameters:
tag- Tag value to search for.- Returns:
- Returns true if the tag is present.
-
-