Class EC2TagFilter
- java.lang.Object
-
- com.amazonaws.services.codedeploy.model.EC2TagFilter
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class EC2TagFilter extends Object implements Serializable, Cloneable
Information about a tag filter.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EC2TagFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
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; useful for testing and debugging.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.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
The tag filter key.
- Parameters:
key
- The tag filter key.
-
getKey
public String getKey()
The tag filter key.
- Returns:
- The tag filter key.
-
withKey
public EC2TagFilter withKey(String key)
The tag filter key.
- Parameters:
key
- The tag filter key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The tag filter value.
- Parameters:
value
- The tag filter value.
-
getValue
public String getValue()
The tag filter value.
- Returns:
- The tag filter value.
-
withValue
public EC2TagFilter withValue(String value)
The tag filter value.
- Parameters:
value
- The tag filter value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The tag filter type:
- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- Parameters:
type
- The tag filter type:- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- See Also:
EC2TagFilterType
-
getType
public String getType()
The tag filter type:
- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- Returns:
- The tag filter type:
- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- See Also:
EC2TagFilterType
-
withType
public EC2TagFilter withType(String type)
The tag filter type:
- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- Parameters:
type
- The tag filter type:- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EC2TagFilterType
-
setType
public void setType(EC2TagFilterType type)
The tag filter type:
- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- Parameters:
type
- The tag filter type:- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- See Also:
EC2TagFilterType
-
withType
public EC2TagFilter withType(EC2TagFilterType type)
The tag filter type:
- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- Parameters:
type
- The tag filter type:- KEY_ONLY: Key only.
- VALUE_ONLY: Value only.
- KEY_AND_VALUE: Key and value.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EC2TagFilterType
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EC2TagFilter clone()
-
-