Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Filter = Filter' {
- field :: FilterField
- operator :: FilterOperator
- value :: Text
- newFilter :: FilterField -> FilterOperator -> Text -> Filter
- filter_field :: Lens' Filter FilterField
- filter_operator :: Lens' Filter FilterOperator
- filter_value :: Lens' Filter Text
Documentation
A search filter.
See: newFilter
smart constructor.
Filter' | |
|
Instances
Eq Filter Source # | |
Read Filter Source # | |
Show Filter Source # | |
Generic Filter Source # | |
NFData Filter Source # | |
Defined in Amazonka.Wisdom.Types.Filter | |
Hashable Filter Source # | |
Defined in Amazonka.Wisdom.Types.Filter | |
ToJSON Filter Source # | |
Defined in Amazonka.Wisdom.Types.Filter | |
type Rep Filter Source # | |
Defined in Amazonka.Wisdom.Types.Filter type Rep Filter = D1 ('MetaData "Filter" "Amazonka.Wisdom.Types.Filter" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "Filter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "field") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FilterField) :*: (S1 ('MetaSel ('Just "operator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FilterOperator) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |
:: FilterField | |
-> FilterOperator | |
-> Text | |
-> Filter |
Create a value of Filter
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:field:Filter'
, filter_field
- The field on which to filter.
$sel:operator:Filter'
, filter_operator
- The operator to use for comparing the field’s value with the provided
value.
$sel:value:Filter'
, filter_value
- The desired field value on which to filter.
filter_field :: Lens' Filter FilterField Source #
The field on which to filter.
filter_operator :: Lens' Filter FilterOperator Source #
The operator to use for comparing the field’s value with the provided value.