@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
The constraints that you want all returned products to match.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getField()
The product metadata field that you want to filter on.
|
String |
getType()
The type of filter that you want to use.
|
String |
getValue()
The service code or attribute value that you want to filter by.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setField(String field)
The product metadata field that you want to filter on.
|
void |
setType(String type)
The type of filter that you want to use.
|
void |
setValue(String value)
The service code or attribute value that you want to filter by.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withField(String field)
The product metadata field that you want to filter on.
|
Filter |
withType(FilterType type)
The type of filter that you want to use.
|
Filter |
withType(String type)
The type of filter that you want to use.
|
Filter |
withValue(String value)
The service code or attribute value that you want to filter by.
|
public void setType(String 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.
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.
FilterType
public String getType()
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.
Valid values are: TERM_MATCH
. TERM_MATCH
returns only products that match both
the given filter field and the given value.
FilterType
public Filter withType(String 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.
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.
FilterType
public Filter withType(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.
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.
FilterType
public void setField(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.
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.
public String getField()
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 Filter withField(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.
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.
public void setValue(String value)
The service code or attribute value that you want to filter by. If you're filtering by service code this is the
actual service code, such as AmazonEC2
. If you're filtering by attribute name, this is the attribute
value that you want the returned products to match, such as a Provisioned IOPS
volume.
value
- The service code or attribute value that you want to filter by. If you're filtering by service code this
is the actual service code, such as AmazonEC2
. If you're filtering by attribute name, this is
the attribute value that you want the returned products to match, such as a Provisioned IOPS
volume.public String getValue()
The service code or attribute value that you want to filter by. If you're filtering by service code this is the
actual service code, such as AmazonEC2
. If you're 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're 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 withValue(String value)
The service code or attribute value that you want to filter by. If you're filtering by service code this is the
actual service code, such as AmazonEC2
. If you're filtering by attribute name, this is the attribute
value that you want the returned products to match, such as a Provisioned IOPS
volume.
value
- The service code or attribute value that you want to filter by. If you're filtering by service code this
is the actual service code, such as AmazonEC2
. If you're filtering by attribute name, this is
the attribute value that you want the returned products to match, such as a Provisioned IOPS
volume.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.