Class ResourceTag
- java.lang.Object
-
- software.amazon.awssdk.services.fms.model.ResourceTag
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceTag.Builder,ResourceTag>
@Generated("software.amazon.awssdk:codegen") public final class ResourceTag extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceTag.Builder,ResourceTag>
The resource tags that Firewall Manager uses to determine if a particular resource should be included or excluded from the Firewall Manager policy. Tags enable you to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value. Firewall Manager combines the tags with "AND" so that, if you add more than one tag to a policy scope, a resource must have all the specified tags to be included or excluded. For more information, see Working with Tag Editor.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResourceTag.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceTag.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkey()The resource tag key.List<SdkField<?>>sdkFields()static Class<? extends ResourceTag.Builder>serializableBuilderClass()ResourceTag.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()The resource tag value.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
key
public final String key()
The resource tag key.
- Returns:
- The resource tag key.
-
value
public final String value()
The resource tag value.
- Returns:
- The resource tag value.
-
toBuilder
public ResourceTag.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceTag.Builder,ResourceTag>
-
builder
public static ResourceTag.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceTag.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-