@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EC2TagFilter extends Object implements Serializable, Cloneable, StructuredPojo
Information about an EC2 tag filter.
Constructor and Description |
---|
EC2TagFilter() |
Modifier and Type | Method and Description |
---|---|
EC2TagFilter |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The tag filter key.
|
String |
getType()
The tag filter type:
|
String |
getValue()
The tag filter value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The tag filter key.
|
void |
setType(EC2TagFilterType type)
The tag filter type:
|
void |
setType(String type)
The tag filter type:
|
void |
setValue(String value)
The tag filter value.
|
String |
toString()
Returns a string representation of this object.
|
EC2TagFilter |
withKey(String key)
The tag filter key.
|
EC2TagFilter |
withType(EC2TagFilterType type)
The tag filter type:
|
EC2TagFilter |
withType(String type)
The tag filter type:
|
EC2TagFilter |
withValue(String value)
The tag filter value.
|
public void setKey(String key)
The tag filter key.
key
- The tag filter key.public String getKey()
The tag filter key.
public EC2TagFilter withKey(String key)
The tag filter key.
key
- The tag filter key.public void setValue(String value)
The tag filter value.
value
- The tag filter value.public String getValue()
The tag filter value.
public EC2TagFilter withValue(String value)
The tag filter value.
value
- The tag filter value.public void setType(String type)
The tag filter type:
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
type
- The tag filter type:
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
EC2TagFilterType
public String getType()
The tag filter type:
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
EC2TagFilterType
public EC2TagFilter withType(String type)
The tag filter type:
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
type
- The tag filter type:
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
EC2TagFilterType
public void setType(EC2TagFilterType type)
The tag filter type:
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
type
- The tag filter type:
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
EC2TagFilterType
public EC2TagFilter withType(EC2TagFilterType type)
The tag filter type:
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
type
- The tag filter type:
KEY_ONLY
: Key only.
VALUE_ONLY
: Value only.
KEY_AND_VALUE
: Key and value.
EC2TagFilterType
public String toString()
toString
in class Object
Object.toString()
public EC2TagFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.