@Generated(value="software.amazon.awssdk:codegen") public final class InstancePatchStateFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstancePatchStateFilter.Builder,InstancePatchStateFilter>
Defines a filter used in DescribeInstancePatchStatesForPatchGroup used to scope down the information returned by the API.
Modifier and Type | Class and Description |
---|---|
static interface |
InstancePatchStateFilter.Builder |
Modifier and Type | Method and Description |
---|---|
static InstancePatchStateFilter.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasValues()
Returns true if the Values property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
key()
The key for the filter.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstancePatchStateFilter.Builder> |
serializableBuilderClass() |
InstancePatchStateFilter.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
InstancePatchStateOperatorType |
type()
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
|
String |
typeAsString()
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
|
List<String> |
values()
The value for the filter, must be an integer greater than or equal to 0.
|
copy
public final String key()
The key for the filter. Supported values are FailedCount, InstalledCount, InstalledOtherCount, MissingCount and NotApplicableCount.
public final boolean hasValues()
public final List<String> values()
The value for the filter, must be an integer greater than or equal to 0.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasValues()
to see if a value was sent in this field.
public final InstancePatchStateOperatorType type()
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
If the service returns an enum value that is not available in the current SDK version, type
will return
InstancePatchStateOperatorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from typeAsString()
.
InstancePatchStateOperatorType
public final String typeAsString()
The type of comparison that should be performed for the value: Equal, NotEqual, LessThan or GreaterThan.
If the service returns an enum value that is not available in the current SDK version, type
will return
InstancePatchStateOperatorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from typeAsString()
.
InstancePatchStateOperatorType
public InstancePatchStateFilter.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<InstancePatchStateFilter.Builder,InstancePatchStateFilter>
public static InstancePatchStateFilter.Builder builder()
public static Class<? extends InstancePatchStateFilter.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.