{-# 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.RasterDataCollectionQueryInput 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 RasterDataCollectionQueryInput = RasterDataCollectionQueryInput'
{
RasterDataCollectionQueryInput -> Maybe AreaOfInterest
areaOfInterest :: Prelude.Maybe AreaOfInterest,
RasterDataCollectionQueryInput -> Maybe PropertyFilters
propertyFilters :: Prelude.Maybe PropertyFilters,
RasterDataCollectionQueryInput -> Text
rasterDataCollectionArn :: Prelude.Text,
RasterDataCollectionQueryInput -> Sensitive TimeRangeFilterInput
timeRangeFilter :: Data.Sensitive TimeRangeFilterInput
}
deriving (RasterDataCollectionQueryInput
-> RasterDataCollectionQueryInput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RasterDataCollectionQueryInput
-> RasterDataCollectionQueryInput -> Bool
$c/= :: RasterDataCollectionQueryInput
-> RasterDataCollectionQueryInput -> Bool
== :: RasterDataCollectionQueryInput
-> RasterDataCollectionQueryInput -> Bool
$c== :: RasterDataCollectionQueryInput
-> RasterDataCollectionQueryInput -> Bool
Prelude.Eq, Int -> RasterDataCollectionQueryInput -> ShowS
[RasterDataCollectionQueryInput] -> ShowS
RasterDataCollectionQueryInput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RasterDataCollectionQueryInput] -> ShowS
$cshowList :: [RasterDataCollectionQueryInput] -> ShowS
show :: RasterDataCollectionQueryInput -> String
$cshow :: RasterDataCollectionQueryInput -> String
showsPrec :: Int -> RasterDataCollectionQueryInput -> ShowS
$cshowsPrec :: Int -> RasterDataCollectionQueryInput -> ShowS
Prelude.Show, forall x.
Rep RasterDataCollectionQueryInput x
-> RasterDataCollectionQueryInput
forall x.
RasterDataCollectionQueryInput
-> Rep RasterDataCollectionQueryInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RasterDataCollectionQueryInput x
-> RasterDataCollectionQueryInput
$cfrom :: forall x.
RasterDataCollectionQueryInput
-> Rep RasterDataCollectionQueryInput x
Prelude.Generic)
newRasterDataCollectionQueryInput ::
Prelude.Text ->
TimeRangeFilterInput ->
RasterDataCollectionQueryInput
newRasterDataCollectionQueryInput :: Text -> TimeRangeFilterInput -> RasterDataCollectionQueryInput
newRasterDataCollectionQueryInput
Text
pRasterDataCollectionArn_
TimeRangeFilterInput
pTimeRangeFilter_ =
RasterDataCollectionQueryInput'
{ $sel:areaOfInterest:RasterDataCollectionQueryInput' :: Maybe AreaOfInterest
areaOfInterest =
forall a. Maybe a
Prelude.Nothing,
$sel:propertyFilters:RasterDataCollectionQueryInput' :: Maybe PropertyFilters
propertyFilters = forall a. Maybe a
Prelude.Nothing,
$sel:rasterDataCollectionArn:RasterDataCollectionQueryInput' :: Text
rasterDataCollectionArn =
Text
pRasterDataCollectionArn_,
$sel:timeRangeFilter:RasterDataCollectionQueryInput' :: Sensitive TimeRangeFilterInput
timeRangeFilter =
forall a. Iso' (Sensitive a) a
Data._Sensitive forall t b. AReview t b -> b -> t
Lens.# TimeRangeFilterInput
pTimeRangeFilter_
}
rasterDataCollectionQueryInput_areaOfInterest :: Lens.Lens' RasterDataCollectionQueryInput (Prelude.Maybe AreaOfInterest)
rasterDataCollectionQueryInput_areaOfInterest :: Lens' RasterDataCollectionQueryInput (Maybe AreaOfInterest)
rasterDataCollectionQueryInput_areaOfInterest = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryInput' {Maybe AreaOfInterest
areaOfInterest :: Maybe AreaOfInterest
$sel:areaOfInterest:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Maybe AreaOfInterest
areaOfInterest} -> Maybe AreaOfInterest
areaOfInterest) (\s :: RasterDataCollectionQueryInput
s@RasterDataCollectionQueryInput' {} Maybe AreaOfInterest
a -> RasterDataCollectionQueryInput
s {$sel:areaOfInterest:RasterDataCollectionQueryInput' :: Maybe AreaOfInterest
areaOfInterest = Maybe AreaOfInterest
a} :: RasterDataCollectionQueryInput)
rasterDataCollectionQueryInput_propertyFilters :: Lens.Lens' RasterDataCollectionQueryInput (Prelude.Maybe PropertyFilters)
rasterDataCollectionQueryInput_propertyFilters :: Lens' RasterDataCollectionQueryInput (Maybe PropertyFilters)
rasterDataCollectionQueryInput_propertyFilters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryInput' {Maybe PropertyFilters
propertyFilters :: Maybe PropertyFilters
$sel:propertyFilters:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Maybe PropertyFilters
propertyFilters} -> Maybe PropertyFilters
propertyFilters) (\s :: RasterDataCollectionQueryInput
s@RasterDataCollectionQueryInput' {} Maybe PropertyFilters
a -> RasterDataCollectionQueryInput
s {$sel:propertyFilters:RasterDataCollectionQueryInput' :: Maybe PropertyFilters
propertyFilters = Maybe PropertyFilters
a} :: RasterDataCollectionQueryInput)
rasterDataCollectionQueryInput_rasterDataCollectionArn :: Lens.Lens' RasterDataCollectionQueryInput Prelude.Text
rasterDataCollectionQueryInput_rasterDataCollectionArn :: Lens' RasterDataCollectionQueryInput Text
rasterDataCollectionQueryInput_rasterDataCollectionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryInput' {Text
rasterDataCollectionArn :: Text
$sel:rasterDataCollectionArn:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Text
rasterDataCollectionArn} -> Text
rasterDataCollectionArn) (\s :: RasterDataCollectionQueryInput
s@RasterDataCollectionQueryInput' {} Text
a -> RasterDataCollectionQueryInput
s {$sel:rasterDataCollectionArn:RasterDataCollectionQueryInput' :: Text
rasterDataCollectionArn = Text
a} :: RasterDataCollectionQueryInput)
rasterDataCollectionQueryInput_timeRangeFilter :: Lens.Lens' RasterDataCollectionQueryInput TimeRangeFilterInput
rasterDataCollectionQueryInput_timeRangeFilter :: Lens' RasterDataCollectionQueryInput TimeRangeFilterInput
rasterDataCollectionQueryInput_timeRangeFilter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryInput' {Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
$sel:timeRangeFilter:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Sensitive TimeRangeFilterInput
timeRangeFilter} -> Sensitive TimeRangeFilterInput
timeRangeFilter) (\s :: RasterDataCollectionQueryInput
s@RasterDataCollectionQueryInput' {} Sensitive TimeRangeFilterInput
a -> RasterDataCollectionQueryInput
s {$sel:timeRangeFilter:RasterDataCollectionQueryInput' :: Sensitive TimeRangeFilterInput
timeRangeFilter = Sensitive TimeRangeFilterInput
a} :: RasterDataCollectionQueryInput) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. Iso' (Sensitive a) a
Data._Sensitive
instance
Prelude.Hashable
RasterDataCollectionQueryInput
where
hashWithSalt :: Int -> RasterDataCollectionQueryInput -> Int
hashWithSalt
Int
_salt
RasterDataCollectionQueryInput' {Maybe AreaOfInterest
Maybe PropertyFilters
Text
Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
rasterDataCollectionArn :: Text
propertyFilters :: Maybe PropertyFilters
areaOfInterest :: Maybe AreaOfInterest
$sel:timeRangeFilter:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Sensitive TimeRangeFilterInput
$sel:rasterDataCollectionArn:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Text
$sel:propertyFilters:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Maybe PropertyFilters
$sel:areaOfInterest:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> 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 PropertyFilters
propertyFilters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
rasterDataCollectionArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Sensitive TimeRangeFilterInput
timeRangeFilter
instance
Prelude.NFData
RasterDataCollectionQueryInput
where
rnf :: RasterDataCollectionQueryInput -> ()
rnf RasterDataCollectionQueryInput' {Maybe AreaOfInterest
Maybe PropertyFilters
Text
Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
rasterDataCollectionArn :: Text
propertyFilters :: Maybe PropertyFilters
areaOfInterest :: Maybe AreaOfInterest
$sel:timeRangeFilter:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Sensitive TimeRangeFilterInput
$sel:rasterDataCollectionArn:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Text
$sel:propertyFilters:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Maybe PropertyFilters
$sel:areaOfInterest:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> 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 PropertyFilters
propertyFilters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
rasterDataCollectionArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Sensitive TimeRangeFilterInput
timeRangeFilter
instance Data.ToJSON RasterDataCollectionQueryInput where
toJSON :: RasterDataCollectionQueryInput -> Value
toJSON RasterDataCollectionQueryInput' {Maybe AreaOfInterest
Maybe PropertyFilters
Text
Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
rasterDataCollectionArn :: Text
propertyFilters :: Maybe PropertyFilters
areaOfInterest :: Maybe AreaOfInterest
$sel:timeRangeFilter:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Sensitive TimeRangeFilterInput
$sel:rasterDataCollectionArn:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Text
$sel:propertyFilters:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> Maybe PropertyFilters
$sel:areaOfInterest:RasterDataCollectionQueryInput' :: RasterDataCollectionQueryInput -> 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
"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
"RasterDataCollectionArn"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
rasterDataCollectionArn
),
forall a. a -> Maybe a
Prelude.Just
(Key
"TimeRangeFilter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Sensitive TimeRangeFilterInput
timeRangeFilter)
]
)