{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SageMakerGeoSpatial.Types.RasterDataCollectionQueryWithBandFilterInput where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMakerGeoSpatial.Types.AreaOfInterest
import Amazonka.SageMakerGeoSpatial.Types.PropertyFilters
import Amazonka.SageMakerGeoSpatial.Types.TimeRangeFilterInput
data RasterDataCollectionQueryWithBandFilterInput = RasterDataCollectionQueryWithBandFilterInput'
{ RasterDataCollectionQueryWithBandFilterInput
-> Maybe AreaOfInterest
areaOfInterest :: Prelude.Maybe AreaOfInterest,
RasterDataCollectionQueryWithBandFilterInput
-> Maybe (NonEmpty Text)
bandFilter :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
RasterDataCollectionQueryWithBandFilterInput
-> Maybe PropertyFilters
propertyFilters :: Prelude.Maybe PropertyFilters,
RasterDataCollectionQueryWithBandFilterInput
-> Sensitive TimeRangeFilterInput
timeRangeFilter :: Data.Sensitive TimeRangeFilterInput
}
deriving (RasterDataCollectionQueryWithBandFilterInput
-> RasterDataCollectionQueryWithBandFilterInput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RasterDataCollectionQueryWithBandFilterInput
-> RasterDataCollectionQueryWithBandFilterInput -> Bool
$c/= :: RasterDataCollectionQueryWithBandFilterInput
-> RasterDataCollectionQueryWithBandFilterInput -> Bool
== :: RasterDataCollectionQueryWithBandFilterInput
-> RasterDataCollectionQueryWithBandFilterInput -> Bool
$c== :: RasterDataCollectionQueryWithBandFilterInput
-> RasterDataCollectionQueryWithBandFilterInput -> Bool
Prelude.Eq, Int -> RasterDataCollectionQueryWithBandFilterInput -> ShowS
[RasterDataCollectionQueryWithBandFilterInput] -> ShowS
RasterDataCollectionQueryWithBandFilterInput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RasterDataCollectionQueryWithBandFilterInput] -> ShowS
$cshowList :: [RasterDataCollectionQueryWithBandFilterInput] -> ShowS
show :: RasterDataCollectionQueryWithBandFilterInput -> String
$cshow :: RasterDataCollectionQueryWithBandFilterInput -> String
showsPrec :: Int -> RasterDataCollectionQueryWithBandFilterInput -> ShowS
$cshowsPrec :: Int -> RasterDataCollectionQueryWithBandFilterInput -> ShowS
Prelude.Show, forall x.
Rep RasterDataCollectionQueryWithBandFilterInput x
-> RasterDataCollectionQueryWithBandFilterInput
forall x.
RasterDataCollectionQueryWithBandFilterInput
-> Rep RasterDataCollectionQueryWithBandFilterInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RasterDataCollectionQueryWithBandFilterInput x
-> RasterDataCollectionQueryWithBandFilterInput
$cfrom :: forall x.
RasterDataCollectionQueryWithBandFilterInput
-> Rep RasterDataCollectionQueryWithBandFilterInput x
Prelude.Generic)
newRasterDataCollectionQueryWithBandFilterInput ::
TimeRangeFilterInput ->
RasterDataCollectionQueryWithBandFilterInput
newRasterDataCollectionQueryWithBandFilterInput :: TimeRangeFilterInput
-> RasterDataCollectionQueryWithBandFilterInput
newRasterDataCollectionQueryWithBandFilterInput
TimeRangeFilterInput
pTimeRangeFilter_ =
RasterDataCollectionQueryWithBandFilterInput'
{ $sel:areaOfInterest:RasterDataCollectionQueryWithBandFilterInput' :: Maybe AreaOfInterest
areaOfInterest =
forall a. Maybe a
Prelude.Nothing,
$sel:bandFilter:RasterDataCollectionQueryWithBandFilterInput' :: Maybe (NonEmpty Text)
bandFilter = forall a. Maybe a
Prelude.Nothing,
$sel:propertyFilters:RasterDataCollectionQueryWithBandFilterInput' :: Maybe PropertyFilters
propertyFilters =
forall a. Maybe a
Prelude.Nothing,
$sel:timeRangeFilter:RasterDataCollectionQueryWithBandFilterInput' :: Sensitive TimeRangeFilterInput
timeRangeFilter =
forall a. Iso' (Sensitive a) a
Data._Sensitive
forall t b. AReview t b -> b -> t
Lens.# TimeRangeFilterInput
pTimeRangeFilter_
}
rasterDataCollectionQueryWithBandFilterInput_areaOfInterest :: Lens.Lens' RasterDataCollectionQueryWithBandFilterInput (Prelude.Maybe AreaOfInterest)
rasterDataCollectionQueryWithBandFilterInput_areaOfInterest :: Lens'
RasterDataCollectionQueryWithBandFilterInput (Maybe AreaOfInterest)
rasterDataCollectionQueryWithBandFilterInput_areaOfInterest = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryWithBandFilterInput' {Maybe AreaOfInterest
areaOfInterest :: Maybe AreaOfInterest
$sel:areaOfInterest:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe AreaOfInterest
areaOfInterest} -> Maybe AreaOfInterest
areaOfInterest) (\s :: RasterDataCollectionQueryWithBandFilterInput
s@RasterDataCollectionQueryWithBandFilterInput' {} Maybe AreaOfInterest
a -> RasterDataCollectionQueryWithBandFilterInput
s {$sel:areaOfInterest:RasterDataCollectionQueryWithBandFilterInput' :: Maybe AreaOfInterest
areaOfInterest = Maybe AreaOfInterest
a} :: RasterDataCollectionQueryWithBandFilterInput)
rasterDataCollectionQueryWithBandFilterInput_bandFilter :: Lens.Lens' RasterDataCollectionQueryWithBandFilterInput (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
rasterDataCollectionQueryWithBandFilterInput_bandFilter :: Lens'
RasterDataCollectionQueryWithBandFilterInput
(Maybe (NonEmpty Text))
rasterDataCollectionQueryWithBandFilterInput_bandFilter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryWithBandFilterInput' {Maybe (NonEmpty Text)
bandFilter :: Maybe (NonEmpty Text)
$sel:bandFilter:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe (NonEmpty Text)
bandFilter} -> Maybe (NonEmpty Text)
bandFilter) (\s :: RasterDataCollectionQueryWithBandFilterInput
s@RasterDataCollectionQueryWithBandFilterInput' {} Maybe (NonEmpty Text)
a -> RasterDataCollectionQueryWithBandFilterInput
s {$sel:bandFilter:RasterDataCollectionQueryWithBandFilterInput' :: Maybe (NonEmpty Text)
bandFilter = Maybe (NonEmpty Text)
a} :: RasterDataCollectionQueryWithBandFilterInput) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
rasterDataCollectionQueryWithBandFilterInput_propertyFilters :: Lens.Lens' RasterDataCollectionQueryWithBandFilterInput (Prelude.Maybe PropertyFilters)
rasterDataCollectionQueryWithBandFilterInput_propertyFilters :: Lens'
RasterDataCollectionQueryWithBandFilterInput
(Maybe PropertyFilters)
rasterDataCollectionQueryWithBandFilterInput_propertyFilters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryWithBandFilterInput' {Maybe PropertyFilters
propertyFilters :: Maybe PropertyFilters
$sel:propertyFilters:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe PropertyFilters
propertyFilters} -> Maybe PropertyFilters
propertyFilters) (\s :: RasterDataCollectionQueryWithBandFilterInput
s@RasterDataCollectionQueryWithBandFilterInput' {} Maybe PropertyFilters
a -> RasterDataCollectionQueryWithBandFilterInput
s {$sel:propertyFilters:RasterDataCollectionQueryWithBandFilterInput' :: Maybe PropertyFilters
propertyFilters = Maybe PropertyFilters
a} :: RasterDataCollectionQueryWithBandFilterInput)
rasterDataCollectionQueryWithBandFilterInput_timeRangeFilter :: Lens.Lens' RasterDataCollectionQueryWithBandFilterInput TimeRangeFilterInput
rasterDataCollectionQueryWithBandFilterInput_timeRangeFilter :: Lens'
RasterDataCollectionQueryWithBandFilterInput TimeRangeFilterInput
rasterDataCollectionQueryWithBandFilterInput_timeRangeFilter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryWithBandFilterInput' {Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
$sel:timeRangeFilter:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Sensitive TimeRangeFilterInput
timeRangeFilter} -> Sensitive TimeRangeFilterInput
timeRangeFilter) (\s :: RasterDataCollectionQueryWithBandFilterInput
s@RasterDataCollectionQueryWithBandFilterInput' {} Sensitive TimeRangeFilterInput
a -> RasterDataCollectionQueryWithBandFilterInput
s {$sel:timeRangeFilter:RasterDataCollectionQueryWithBandFilterInput' :: Sensitive TimeRangeFilterInput
timeRangeFilter = Sensitive TimeRangeFilterInput
a} :: RasterDataCollectionQueryWithBandFilterInput) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. Iso' (Sensitive a) a
Data._Sensitive
instance
Prelude.Hashable
RasterDataCollectionQueryWithBandFilterInput
where
hashWithSalt :: Int -> RasterDataCollectionQueryWithBandFilterInput -> Int
hashWithSalt
Int
_salt
RasterDataCollectionQueryWithBandFilterInput' {Maybe (NonEmpty Text)
Maybe AreaOfInterest
Maybe PropertyFilters
Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
propertyFilters :: Maybe PropertyFilters
bandFilter :: Maybe (NonEmpty Text)
areaOfInterest :: Maybe AreaOfInterest
$sel:timeRangeFilter:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Sensitive TimeRangeFilterInput
$sel:propertyFilters:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe PropertyFilters
$sel:bandFilter:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe (NonEmpty Text)
$sel:areaOfInterest:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe AreaOfInterest
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AreaOfInterest
areaOfInterest
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
bandFilter
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PropertyFilters
propertyFilters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Sensitive TimeRangeFilterInput
timeRangeFilter
instance
Prelude.NFData
RasterDataCollectionQueryWithBandFilterInput
where
rnf :: RasterDataCollectionQueryWithBandFilterInput -> ()
rnf RasterDataCollectionQueryWithBandFilterInput' {Maybe (NonEmpty Text)
Maybe AreaOfInterest
Maybe PropertyFilters
Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
propertyFilters :: Maybe PropertyFilters
bandFilter :: Maybe (NonEmpty Text)
areaOfInterest :: Maybe AreaOfInterest
$sel:timeRangeFilter:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Sensitive TimeRangeFilterInput
$sel:propertyFilters:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe PropertyFilters
$sel:bandFilter:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe (NonEmpty Text)
$sel:areaOfInterest:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe AreaOfInterest
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AreaOfInterest
areaOfInterest
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
bandFilter
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PropertyFilters
propertyFilters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Sensitive TimeRangeFilterInput
timeRangeFilter
instance
Data.ToJSON
RasterDataCollectionQueryWithBandFilterInput
where
toJSON :: RasterDataCollectionQueryWithBandFilterInput -> Value
toJSON
RasterDataCollectionQueryWithBandFilterInput' {Maybe (NonEmpty Text)
Maybe AreaOfInterest
Maybe PropertyFilters
Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
propertyFilters :: Maybe PropertyFilters
bandFilter :: Maybe (NonEmpty Text)
areaOfInterest :: Maybe AreaOfInterest
$sel:timeRangeFilter:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Sensitive TimeRangeFilterInput
$sel:propertyFilters:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe PropertyFilters
$sel:bandFilter:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe (NonEmpty Text)
$sel:areaOfInterest:RasterDataCollectionQueryWithBandFilterInput' :: RasterDataCollectionQueryWithBandFilterInput
-> Maybe AreaOfInterest
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AreaOfInterest" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AreaOfInterest
areaOfInterest,
(Key
"BandFilter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
bandFilter,
(Key
"PropertyFilters" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PropertyFilters
propertyFilters,
forall a. a -> Maybe a
Prelude.Just
(Key
"TimeRangeFilter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Sensitive TimeRangeFilterInput
timeRangeFilter)
]
)