@Generated(value="software.amazon.awssdk:codegen") public final class Filter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Filter.Builder,Filter>
The constraints that you want all returned products to match.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Filter.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Filter.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
field()
The product metadata field that you want to filter on.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Filter.Builder> |
serializableBuilderClass() |
Filter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
FilterType |
type()
The type of filter that you want to use.
|
String |
typeAsString()
The type of filter that you want to use.
|
String |
value()
The service code or attribute value that you want to filter by.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final FilterType type()
The type of filter that you want to use.
Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both the
given filter field and the given value.
If the service returns an enum value that is not available in the current SDK version, type will return
FilterType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both
the given filter field and the given value.
FilterTypepublic final String typeAsString()
The type of filter that you want to use.
Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both the
given filter field and the given value.
If the service returns an enum value that is not available in the current SDK version, type will return
FilterType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both
the given filter field and the given value.
FilterTypepublic final String field()
The product metadata field that you want to filter on. You can filter by just the service code to see all products for a specific service, filter by just the attribute name to see a specific attribute for multiple services, or use both a service code and an attribute name to retrieve only products that match both fields.
Valid values include: ServiceCode, and all attribute names
For example, you can filter by the AmazonEC2 service code and the volumeType attribute
name to get the prices for only Amazon EC2 volumes.
Valid values include: ServiceCode, and all attribute names
For example, you can filter by the AmazonEC2 service code and the volumeType
attribute name to get the prices for only Amazon EC2 volumes.
public final String value()
The service code or attribute value that you want to filter by. If you are filtering by service code this is the
actual service code, such as AmazonEC2. If you are filtering by attribute name, this is the
attribute value that you want the returned products to match, such as a Provisioned IOPS volume.
AmazonEC2. If you are filtering by attribute name, this
is the attribute value that you want the returned products to match, such as a
Provisioned IOPS volume.public Filter.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Filter.Builder,Filter>public static Filter.Builder builder()
public static Class<? extends Filter.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.