@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstancePatchStateFilter extends Object implements Serializable, Cloneable, StructuredPojo
Defines a filter used in DescribeInstancePatchStatesForPatchGroup used to scope down the information returned by the API.
Constructor and Description |
---|
InstancePatchStateFilter() |
Modifier and Type | Method and Description |
---|---|
InstancePatchStateFilter |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key for the filter.
|
String |
getType()
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
|
List<String> |
getValues()
The value for the filter, must be an integer greater than or equal to 0.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The key for the filter.
|
void |
setType(InstancePatchStateOperatorType type)
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
|
void |
setType(String type)
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
|
void |
setValues(Collection<String> values)
The value for the filter, must be an integer greater than or equal to 0.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstancePatchStateFilter |
withKey(String key)
The key for the filter.
|
InstancePatchStateFilter |
withType(InstancePatchStateOperatorType type)
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
|
InstancePatchStateFilter |
withType(String type)
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
|
InstancePatchStateFilter |
withValues(Collection<String> values)
The value for the filter, must be an integer greater than or equal to 0.
|
InstancePatchStateFilter |
withValues(String... values)
The value for the filter, must be an integer greater than or equal to 0.
|
public void setKey(String key)
The key for the filter. Supported values are FailedCount, InstalledCount, InstalledOtherCount, MissingCount and NotApplicableCount.
key
- The key for the filter. Supported values are FailedCount, InstalledCount, InstalledOtherCount,
MissingCount and NotApplicableCount.public String getKey()
The key for the filter. Supported values are FailedCount, InstalledCount, InstalledOtherCount, MissingCount and NotApplicableCount.
public InstancePatchStateFilter withKey(String key)
The key for the filter. Supported values are FailedCount, InstalledCount, InstalledOtherCount, MissingCount and NotApplicableCount.
key
- The key for the filter. Supported values are FailedCount, InstalledCount, InstalledOtherCount,
MissingCount and NotApplicableCount.public List<String> getValues()
The value for the filter, must be an integer greater than or equal to 0.
public void setValues(Collection<String> values)
The value for the filter, must be an integer greater than or equal to 0.
values
- The value for the filter, must be an integer greater than or equal to 0.public InstancePatchStateFilter withValues(String... values)
The value for the filter, must be an integer greater than or equal to 0.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The value for the filter, must be an integer greater than or equal to 0.public InstancePatchStateFilter withValues(Collection<String> values)
The value for the filter, must be an integer greater than or equal to 0.
values
- The value for the filter, must be an integer greater than or equal to 0.public void setType(String type)
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
type
- The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.InstancePatchStateOperatorType
public String getType()
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
InstancePatchStateOperatorType
public InstancePatchStateFilter withType(String type)
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
type
- The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.InstancePatchStateOperatorType
public void setType(InstancePatchStateOperatorType type)
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
type
- The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.InstancePatchStateOperatorType
public InstancePatchStateFilter withType(InstancePatchStateOperatorType type)
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
type
- The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.InstancePatchStateOperatorType
public String toString()
toString
in class Object
Object.toString()
public InstancePatchStateFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.