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 EC2TagFilterclone()booleanequals(Object obj)StringgetKey()The tag filter key.StringgetType()The tag filter type:StringgetValue()The tag filter value.inthashCode()voidsetKey(String key)The tag filter key.voidsetType(EC2TagFilterType type)The tag filter type:voidsetType(String type)The tag filter type:voidsetValue(String value)The tag filter value.StringtoString()Returns a string representation of this object; useful for testing and debugging.EC2TagFilterwithKey(String key)The tag filter key.EC2TagFilterwithType(EC2TagFilterType type)The tag filter type:EC2TagFilterwithType(String type)The tag filter type:EC2TagFilterwithValue(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EC2TagFilter clone()
-
-