{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMakerGeoSpatial.Types.RasterDataCollectionQueryOutput
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMakerGeoSpatial.Types.RasterDataCollectionQueryOutput 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

-- |
--
-- /See:/ 'newRasterDataCollectionQueryOutput' smart constructor.
data RasterDataCollectionQueryOutput = RasterDataCollectionQueryOutput'
  { RasterDataCollectionQueryOutput -> Maybe AreaOfInterest
areaOfInterest :: Prelude.Maybe AreaOfInterest,
    RasterDataCollectionQueryOutput -> Maybe PropertyFilters
propertyFilters :: Prelude.Maybe PropertyFilters,
    RasterDataCollectionQueryOutput -> Text
rasterDataCollectionArn :: Prelude.Text,
    -- | The name of the raster data collection.
    RasterDataCollectionQueryOutput -> Text
rasterDataCollectionName :: Prelude.Text,
    RasterDataCollectionQueryOutput -> Sensitive TimeRangeFilterInput
timeRangeFilter :: Data.Sensitive TimeRangeFilterInput
  }
  deriving (RasterDataCollectionQueryOutput
-> RasterDataCollectionQueryOutput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RasterDataCollectionQueryOutput
-> RasterDataCollectionQueryOutput -> Bool
$c/= :: RasterDataCollectionQueryOutput
-> RasterDataCollectionQueryOutput -> Bool
== :: RasterDataCollectionQueryOutput
-> RasterDataCollectionQueryOutput -> Bool
$c== :: RasterDataCollectionQueryOutput
-> RasterDataCollectionQueryOutput -> Bool
Prelude.Eq, Int -> RasterDataCollectionQueryOutput -> ShowS
[RasterDataCollectionQueryOutput] -> ShowS
RasterDataCollectionQueryOutput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RasterDataCollectionQueryOutput] -> ShowS
$cshowList :: [RasterDataCollectionQueryOutput] -> ShowS
show :: RasterDataCollectionQueryOutput -> String
$cshow :: RasterDataCollectionQueryOutput -> String
showsPrec :: Int -> RasterDataCollectionQueryOutput -> ShowS
$cshowsPrec :: Int -> RasterDataCollectionQueryOutput -> ShowS
Prelude.Show, forall x.
Rep RasterDataCollectionQueryOutput x
-> RasterDataCollectionQueryOutput
forall x.
RasterDataCollectionQueryOutput
-> Rep RasterDataCollectionQueryOutput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RasterDataCollectionQueryOutput x
-> RasterDataCollectionQueryOutput
$cfrom :: forall x.
RasterDataCollectionQueryOutput
-> Rep RasterDataCollectionQueryOutput x
Prelude.Generic)

-- |
-- Create a value of 'RasterDataCollectionQueryOutput' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'areaOfInterest', 'rasterDataCollectionQueryOutput_areaOfInterest' -
--
-- 'propertyFilters', 'rasterDataCollectionQueryOutput_propertyFilters' -
--
-- 'rasterDataCollectionArn', 'rasterDataCollectionQueryOutput_rasterDataCollectionArn' -
--
-- 'rasterDataCollectionName', 'rasterDataCollectionQueryOutput_rasterDataCollectionName' - The name of the raster data collection.
--
-- 'timeRangeFilter', 'rasterDataCollectionQueryOutput_timeRangeFilter' -
newRasterDataCollectionQueryOutput ::
  -- | 'rasterDataCollectionArn'
  Prelude.Text ->
  -- | 'rasterDataCollectionName'
  Prelude.Text ->
  -- | 'timeRangeFilter'
  TimeRangeFilterInput ->
  RasterDataCollectionQueryOutput
newRasterDataCollectionQueryOutput :: Text
-> Text -> TimeRangeFilterInput -> RasterDataCollectionQueryOutput
newRasterDataCollectionQueryOutput
  Text
pRasterDataCollectionArn_
  Text
pRasterDataCollectionName_
  TimeRangeFilterInput
pTimeRangeFilter_ =
    RasterDataCollectionQueryOutput'
      { $sel:areaOfInterest:RasterDataCollectionQueryOutput' :: Maybe AreaOfInterest
areaOfInterest =
          forall a. Maybe a
Prelude.Nothing,
        $sel:propertyFilters:RasterDataCollectionQueryOutput' :: Maybe PropertyFilters
propertyFilters = forall a. Maybe a
Prelude.Nothing,
        $sel:rasterDataCollectionArn:RasterDataCollectionQueryOutput' :: Text
rasterDataCollectionArn =
          Text
pRasterDataCollectionArn_,
        $sel:rasterDataCollectionName:RasterDataCollectionQueryOutput' :: Text
rasterDataCollectionName =
          Text
pRasterDataCollectionName_,
        $sel:timeRangeFilter:RasterDataCollectionQueryOutput' :: Sensitive TimeRangeFilterInput
timeRangeFilter =
          forall a. Iso' (Sensitive a) a
Data._Sensitive forall t b. AReview t b -> b -> t
Lens.# TimeRangeFilterInput
pTimeRangeFilter_
      }

rasterDataCollectionQueryOutput_areaOfInterest :: Lens.Lens' RasterDataCollectionQueryOutput (Prelude.Maybe AreaOfInterest)
rasterDataCollectionQueryOutput_areaOfInterest :: Lens' RasterDataCollectionQueryOutput (Maybe AreaOfInterest)
rasterDataCollectionQueryOutput_areaOfInterest = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryOutput' {Maybe AreaOfInterest
areaOfInterest :: Maybe AreaOfInterest
$sel:areaOfInterest:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Maybe AreaOfInterest
areaOfInterest} -> Maybe AreaOfInterest
areaOfInterest) (\s :: RasterDataCollectionQueryOutput
s@RasterDataCollectionQueryOutput' {} Maybe AreaOfInterest
a -> RasterDataCollectionQueryOutput
s {$sel:areaOfInterest:RasterDataCollectionQueryOutput' :: Maybe AreaOfInterest
areaOfInterest = Maybe AreaOfInterest
a} :: RasterDataCollectionQueryOutput)

rasterDataCollectionQueryOutput_propertyFilters :: Lens.Lens' RasterDataCollectionQueryOutput (Prelude.Maybe PropertyFilters)
rasterDataCollectionQueryOutput_propertyFilters :: Lens' RasterDataCollectionQueryOutput (Maybe PropertyFilters)
rasterDataCollectionQueryOutput_propertyFilters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryOutput' {Maybe PropertyFilters
propertyFilters :: Maybe PropertyFilters
$sel:propertyFilters:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Maybe PropertyFilters
propertyFilters} -> Maybe PropertyFilters
propertyFilters) (\s :: RasterDataCollectionQueryOutput
s@RasterDataCollectionQueryOutput' {} Maybe PropertyFilters
a -> RasterDataCollectionQueryOutput
s {$sel:propertyFilters:RasterDataCollectionQueryOutput' :: Maybe PropertyFilters
propertyFilters = Maybe PropertyFilters
a} :: RasterDataCollectionQueryOutput)

rasterDataCollectionQueryOutput_rasterDataCollectionArn :: Lens.Lens' RasterDataCollectionQueryOutput Prelude.Text
rasterDataCollectionQueryOutput_rasterDataCollectionArn :: Lens' RasterDataCollectionQueryOutput Text
rasterDataCollectionQueryOutput_rasterDataCollectionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryOutput' {Text
rasterDataCollectionArn :: Text
$sel:rasterDataCollectionArn:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Text
rasterDataCollectionArn} -> Text
rasterDataCollectionArn) (\s :: RasterDataCollectionQueryOutput
s@RasterDataCollectionQueryOutput' {} Text
a -> RasterDataCollectionQueryOutput
s {$sel:rasterDataCollectionArn:RasterDataCollectionQueryOutput' :: Text
rasterDataCollectionArn = Text
a} :: RasterDataCollectionQueryOutput)

-- | The name of the raster data collection.
rasterDataCollectionQueryOutput_rasterDataCollectionName :: Lens.Lens' RasterDataCollectionQueryOutput Prelude.Text
rasterDataCollectionQueryOutput_rasterDataCollectionName :: Lens' RasterDataCollectionQueryOutput Text
rasterDataCollectionQueryOutput_rasterDataCollectionName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryOutput' {Text
rasterDataCollectionName :: Text
$sel:rasterDataCollectionName:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Text
rasterDataCollectionName} -> Text
rasterDataCollectionName) (\s :: RasterDataCollectionQueryOutput
s@RasterDataCollectionQueryOutput' {} Text
a -> RasterDataCollectionQueryOutput
s {$sel:rasterDataCollectionName:RasterDataCollectionQueryOutput' :: Text
rasterDataCollectionName = Text
a} :: RasterDataCollectionQueryOutput)

rasterDataCollectionQueryOutput_timeRangeFilter :: Lens.Lens' RasterDataCollectionQueryOutput TimeRangeFilterInput
rasterDataCollectionQueryOutput_timeRangeFilter :: Lens' RasterDataCollectionQueryOutput TimeRangeFilterInput
rasterDataCollectionQueryOutput_timeRangeFilter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RasterDataCollectionQueryOutput' {Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
$sel:timeRangeFilter:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Sensitive TimeRangeFilterInput
timeRangeFilter} -> Sensitive TimeRangeFilterInput
timeRangeFilter) (\s :: RasterDataCollectionQueryOutput
s@RasterDataCollectionQueryOutput' {} Sensitive TimeRangeFilterInput
a -> RasterDataCollectionQueryOutput
s {$sel:timeRangeFilter:RasterDataCollectionQueryOutput' :: Sensitive TimeRangeFilterInput
timeRangeFilter = Sensitive TimeRangeFilterInput
a} :: RasterDataCollectionQueryOutput) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. Iso' (Sensitive a) a
Data._Sensitive

instance
  Data.FromJSON
    RasterDataCollectionQueryOutput
  where
  parseJSON :: Value -> Parser RasterDataCollectionQueryOutput
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"RasterDataCollectionQueryOutput"
      ( \Object
x ->
          Maybe AreaOfInterest
-> Maybe PropertyFilters
-> Text
-> Text
-> Sensitive TimeRangeFilterInput
-> RasterDataCollectionQueryOutput
RasterDataCollectionQueryOutput'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AreaOfInterest")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"PropertyFilters")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RasterDataCollectionArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RasterDataCollectionName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"TimeRangeFilter")
      )

instance
  Prelude.Hashable
    RasterDataCollectionQueryOutput
  where
  hashWithSalt :: Int -> RasterDataCollectionQueryOutput -> Int
hashWithSalt
    Int
_salt
    RasterDataCollectionQueryOutput' {Maybe AreaOfInterest
Maybe PropertyFilters
Text
Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
rasterDataCollectionName :: Text
rasterDataCollectionArn :: Text
propertyFilters :: Maybe PropertyFilters
areaOfInterest :: Maybe AreaOfInterest
$sel:timeRangeFilter:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Sensitive TimeRangeFilterInput
$sel:rasterDataCollectionName:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Text
$sel:rasterDataCollectionArn:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Text
$sel:propertyFilters:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Maybe PropertyFilters
$sel:areaOfInterest:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> 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` Text
rasterDataCollectionName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Sensitive TimeRangeFilterInput
timeRangeFilter

instance
  Prelude.NFData
    RasterDataCollectionQueryOutput
  where
  rnf :: RasterDataCollectionQueryOutput -> ()
rnf RasterDataCollectionQueryOutput' {Maybe AreaOfInterest
Maybe PropertyFilters
Text
Sensitive TimeRangeFilterInput
timeRangeFilter :: Sensitive TimeRangeFilterInput
rasterDataCollectionName :: Text
rasterDataCollectionArn :: Text
propertyFilters :: Maybe PropertyFilters
areaOfInterest :: Maybe AreaOfInterest
$sel:timeRangeFilter:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Sensitive TimeRangeFilterInput
$sel:rasterDataCollectionName:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Text
$sel:rasterDataCollectionArn:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Text
$sel:propertyFilters:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> Maybe PropertyFilters
$sel:areaOfInterest:RasterDataCollectionQueryOutput' :: RasterDataCollectionQueryOutput -> 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 Text
rasterDataCollectionName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Sensitive TimeRangeFilterInput
timeRangeFilter