@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceTag extends Object implements Serializable, Cloneable, StructuredPojo
The resource tags that AWS Firewall Manager uses to determine if a particular resource should be included or excluded from protection by the AWS Firewall Manager policy. Tags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. Tags are combined with an "OR." That is, if you add more than one tag, if any of the tags matches, the resource is considered a match for the include or exclude. Working with Tag Editor.
| Constructor and Description |
|---|
ResourceTag() |
| Modifier and Type | Method and Description |
|---|---|
ResourceTag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The resource tag key.
|
String |
getValue()
The resource tag value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
The resource tag key.
|
void |
setValue(String value)
The resource tag value.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ResourceTag |
withKey(String key)
The resource tag key.
|
ResourceTag |
withValue(String value)
The resource tag value.
|
public void setKey(String key)
The resource tag key.
key - The resource tag key.public String getKey()
The resource tag key.
public ResourceTag withKey(String key)
The resource tag key.
key - The resource tag key.public void setValue(String value)
The resource tag value.
value - The resource tag value.public String getValue()
The resource tag value.
public ResourceTag withValue(String value)
The resource tag value.
value - The resource tag value.public String toString()
toString in class ObjectObject.toString()public ResourceTag clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.