@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstancePatchStateFilter extends Object implements Serializable, Cloneable, StructuredPojo
Defines a filter used in DescribeInstancePatchStatesForPatchGroup to scope down the information returned by the API.
Example: To filter for all managed nodes in a patch group having more than three patches with a
FailedCount
status, use the following for the filter:
Value for Key
: FailedCount
Value for Type
: GreaterThan
Value for Values
: 3
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.
|
List<String> |
getValues()
The value for the filter.
|
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.
|
void |
setType(String type)
The type of comparison that should be performed for the value.
|
void |
setValues(Collection<String> values)
The value for the filter.
|
String |
toString()
Returns a string representation of this object.
|
InstancePatchStateFilter |
withKey(String key)
The key for the filter.
|
InstancePatchStateFilter |
withType(InstancePatchStateOperatorType type)
The type of comparison that should be performed for the value.
|
InstancePatchStateFilter |
withType(String type)
The type of comparison that should be performed for the value.
|
InstancePatchStateFilter |
withValues(Collection<String> values)
The value for the filter.
|
InstancePatchStateFilter |
withValues(String... values)
The value for the filter.
|
public void setKey(String key)
The key for the filter. Supported values include the following:
InstalledCount
InstalledOtherCount
InstalledPendingRebootCount
InstalledRejectedCount
MissingCount
FailedCount
UnreportedNotApplicableCount
NotApplicableCount
key
- The key for the filter. Supported values include the following:
InstalledCount
InstalledOtherCount
InstalledPendingRebootCount
InstalledRejectedCount
MissingCount
FailedCount
UnreportedNotApplicableCount
NotApplicableCount
public String getKey()
The key for the filter. Supported values include the following:
InstalledCount
InstalledOtherCount
InstalledPendingRebootCount
InstalledRejectedCount
MissingCount
FailedCount
UnreportedNotApplicableCount
NotApplicableCount
InstalledCount
InstalledOtherCount
InstalledPendingRebootCount
InstalledRejectedCount
MissingCount
FailedCount
UnreportedNotApplicableCount
NotApplicableCount
public InstancePatchStateFilter withKey(String key)
The key for the filter. Supported values include the following:
InstalledCount
InstalledOtherCount
InstalledPendingRebootCount
InstalledRejectedCount
MissingCount
FailedCount
UnreportedNotApplicableCount
NotApplicableCount
key
- The key for the filter. Supported values include the following:
InstalledCount
InstalledOtherCount
InstalledPendingRebootCount
InstalledRejectedCount
MissingCount
FailedCount
UnreportedNotApplicableCount
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.
type
- The type of comparison that should be performed for the value.InstancePatchStateOperatorType
public String getType()
The type of comparison that should be performed for the value.
InstancePatchStateOperatorType
public InstancePatchStateFilter withType(String type)
The type of comparison that should be performed for the value.
type
- The type of comparison that should be performed for the value.InstancePatchStateOperatorType
public void setType(InstancePatchStateOperatorType type)
The type of comparison that should be performed for the value.
type
- The type of comparison that should be performed for the value.InstancePatchStateOperatorType
public InstancePatchStateFilter withType(InstancePatchStateOperatorType type)
The type of comparison that should be performed for the value.
type
- The type of comparison that should be performed for the value.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.