@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PatchFilter extends Object implements Serializable, Cloneable, StructuredPojo
Defines which patches should be included in a patch baseline.
A patch filter consists of a key and a set of values. The filter key is a patch property. For example, the available
filter keys for WINDOWS
are PATCH_SET
, PRODUCT
, PRODUCT_FAMILY
,
CLASSIFICATION
, and MSRC_SEVERITY
.
The filter values define a matching criterion for the patch property indicated by the key. For example, if the filter
key is PRODUCT
and the filter values are ["Office 2013", "Office 2016"]
, then the filter
accepts all patches where product name is either "Office 2013" or "Office 2016". The filter values can be exact
values for the patch property given as a key, or a wildcard (*), which matches all values.
You can view lists of valid values for the patch properties by running the DescribePatchProperties
command. For information about which patch properties can be used with each major operating system, see
DescribePatchProperties.
Constructor and Description |
---|
PatchFilter() |
Modifier and Type | Method and Description |
---|---|
PatchFilter |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key for the filter.
|
List<String> |
getValues()
The value for the filter key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(PatchFilterKey key)
The key for the filter.
|
void |
setKey(String key)
The key for the filter.
|
void |
setValues(Collection<String> values)
The value for the filter key.
|
String |
toString()
Returns a string representation of this object.
|
PatchFilter |
withKey(PatchFilterKey key)
The key for the filter.
|
PatchFilter |
withKey(String key)
The key for the filter.
|
PatchFilter |
withValues(Collection<String> values)
The value for the filter key.
|
PatchFilter |
withValues(String... values)
The value for the filter key.
|
public void setKey(String key)
The key for the filter.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
key
- The key for the filter.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
PatchFilterKey
public String getKey()
The key for the filter.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
PatchFilterKey
public PatchFilter withKey(String key)
The key for the filter.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
key
- The key for the filter.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
PatchFilterKey
public void setKey(PatchFilterKey key)
The key for the filter.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
key
- The key for the filter.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
PatchFilterKey
public PatchFilter withKey(PatchFilterKey key)
The key for the filter.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
key
- The key for the filter.
Run the DescribePatchProperties command to view lists of valid keys for each operating system type.
PatchFilterKey
public List<String> getValues()
The value for the filter key.
Run the DescribePatchProperties command to view lists of valid values for each key based on operating system type.
Run the DescribePatchProperties command to view lists of valid values for each key based on operating system type.
public void setValues(Collection<String> values)
The value for the filter key.
Run the DescribePatchProperties command to view lists of valid values for each key based on operating system type.
values
- The value for the filter key.
Run the DescribePatchProperties command to view lists of valid values for each key based on operating system type.
public PatchFilter withValues(String... values)
The value for the filter key.
Run the DescribePatchProperties command to view lists of valid values for each key based on operating system type.
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 key.
Run the DescribePatchProperties command to view lists of valid values for each key based on operating system type.
public PatchFilter withValues(Collection<String> values)
The value for the filter key.
Run the DescribePatchProperties command to view lists of valid values for each key based on operating system type.
values
- The value for the filter key.
Run the DescribePatchProperties command to view lists of valid values for each key based on operating system type.
public String toString()
toString
in class Object
Object.toString()
public PatchFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.