{-# 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.JobConfigInput
-- 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.JobConfigInput 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.BandMathConfigInput
import Amazonka.SageMakerGeoSpatial.Types.CloudMaskingConfigInput
import Amazonka.SageMakerGeoSpatial.Types.CloudRemovalConfigInput
import Amazonka.SageMakerGeoSpatial.Types.GeoMosaicConfigInput
import Amazonka.SageMakerGeoSpatial.Types.LandCoverSegmentationConfigInput
import Amazonka.SageMakerGeoSpatial.Types.ResamplingConfigInput
import Amazonka.SageMakerGeoSpatial.Types.StackConfigInput
import Amazonka.SageMakerGeoSpatial.Types.TemporalStatisticsConfigInput
import Amazonka.SageMakerGeoSpatial.Types.ZonalStatisticsConfigInput

-- | The input structure for the JobConfig in an EarthObservationJob.
--
-- /See:/ 'newJobConfigInput' smart constructor.
data JobConfigInput = JobConfigInput'
  { JobConfigInput -> Maybe BandMathConfigInput
bandMathConfig :: Prelude.Maybe BandMathConfigInput,
    -- | An object containing information about the job configuration for cloud
    -- masking.
    JobConfigInput -> Maybe CloudMaskingConfigInput
cloudMaskingConfig :: Prelude.Maybe CloudMaskingConfigInput,
    -- | An object containing information about the job configuration for cloud
    -- removal.
    JobConfigInput -> Maybe CloudRemovalConfigInput
cloudRemovalConfig :: Prelude.Maybe CloudRemovalConfigInput,
    -- | An object containing information about the job configuration for
    -- geomosaic.
    JobConfigInput -> Maybe GeoMosaicConfigInput
geoMosaicConfig :: Prelude.Maybe GeoMosaicConfigInput,
    -- | An object containing information about the job configuration for land
    -- cover segmentation.
    JobConfigInput -> Maybe LandCoverSegmentationConfigInput
landCoverSegmentationConfig :: Prelude.Maybe LandCoverSegmentationConfigInput,
    -- | An object containing information about the job configuration for
    -- resampling.
    JobConfigInput -> Maybe ResamplingConfigInput
resamplingConfig :: Prelude.Maybe ResamplingConfigInput,
    JobConfigInput -> Maybe StackConfigInput
stackConfig :: Prelude.Maybe StackConfigInput,
    -- | An object containing information about the job configuration for
    -- temporal statistics.
    JobConfigInput -> Maybe TemporalStatisticsConfigInput
temporalStatisticsConfig :: Prelude.Maybe TemporalStatisticsConfigInput,
    -- | An object containing information about the job configuration for zonal
    -- statistics.
    JobConfigInput -> Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig :: Prelude.Maybe ZonalStatisticsConfigInput
  }
  deriving (JobConfigInput -> JobConfigInput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JobConfigInput -> JobConfigInput -> Bool
$c/= :: JobConfigInput -> JobConfigInput -> Bool
== :: JobConfigInput -> JobConfigInput -> Bool
$c== :: JobConfigInput -> JobConfigInput -> Bool
Prelude.Eq, ReadPrec [JobConfigInput]
ReadPrec JobConfigInput
Int -> ReadS JobConfigInput
ReadS [JobConfigInput]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JobConfigInput]
$creadListPrec :: ReadPrec [JobConfigInput]
readPrec :: ReadPrec JobConfigInput
$creadPrec :: ReadPrec JobConfigInput
readList :: ReadS [JobConfigInput]
$creadList :: ReadS [JobConfigInput]
readsPrec :: Int -> ReadS JobConfigInput
$creadsPrec :: Int -> ReadS JobConfigInput
Prelude.Read, Int -> JobConfigInput -> ShowS
[JobConfigInput] -> ShowS
JobConfigInput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JobConfigInput] -> ShowS
$cshowList :: [JobConfigInput] -> ShowS
show :: JobConfigInput -> String
$cshow :: JobConfigInput -> String
showsPrec :: Int -> JobConfigInput -> ShowS
$cshowsPrec :: Int -> JobConfigInput -> ShowS
Prelude.Show, forall x. Rep JobConfigInput x -> JobConfigInput
forall x. JobConfigInput -> Rep JobConfigInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JobConfigInput x -> JobConfigInput
$cfrom :: forall x. JobConfigInput -> Rep JobConfigInput x
Prelude.Generic)

-- |
-- Create a value of 'JobConfigInput' 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:
--
-- 'bandMathConfig', 'jobConfigInput_bandMathConfig' -
--
-- 'cloudMaskingConfig', 'jobConfigInput_cloudMaskingConfig' - An object containing information about the job configuration for cloud
-- masking.
--
-- 'cloudRemovalConfig', 'jobConfigInput_cloudRemovalConfig' - An object containing information about the job configuration for cloud
-- removal.
--
-- 'geoMosaicConfig', 'jobConfigInput_geoMosaicConfig' - An object containing information about the job configuration for
-- geomosaic.
--
-- 'landCoverSegmentationConfig', 'jobConfigInput_landCoverSegmentationConfig' - An object containing information about the job configuration for land
-- cover segmentation.
--
-- 'resamplingConfig', 'jobConfigInput_resamplingConfig' - An object containing information about the job configuration for
-- resampling.
--
-- 'stackConfig', 'jobConfigInput_stackConfig' -
--
-- 'temporalStatisticsConfig', 'jobConfigInput_temporalStatisticsConfig' - An object containing information about the job configuration for
-- temporal statistics.
--
-- 'zonalStatisticsConfig', 'jobConfigInput_zonalStatisticsConfig' - An object containing information about the job configuration for zonal
-- statistics.
newJobConfigInput ::
  JobConfigInput
newJobConfigInput :: JobConfigInput
newJobConfigInput =
  JobConfigInput'
    { $sel:bandMathConfig:JobConfigInput' :: Maybe BandMathConfigInput
bandMathConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:cloudMaskingConfig:JobConfigInput' :: Maybe CloudMaskingConfigInput
cloudMaskingConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:cloudRemovalConfig:JobConfigInput' :: Maybe CloudRemovalConfigInput
cloudRemovalConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:geoMosaicConfig:JobConfigInput' :: Maybe GeoMosaicConfigInput
geoMosaicConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:landCoverSegmentationConfig:JobConfigInput' :: Maybe LandCoverSegmentationConfigInput
landCoverSegmentationConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:resamplingConfig:JobConfigInput' :: Maybe ResamplingConfigInput
resamplingConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:stackConfig:JobConfigInput' :: Maybe StackConfigInput
stackConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:temporalStatisticsConfig:JobConfigInput' :: Maybe TemporalStatisticsConfigInput
temporalStatisticsConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:zonalStatisticsConfig:JobConfigInput' :: Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig = forall a. Maybe a
Prelude.Nothing
    }

jobConfigInput_bandMathConfig :: Lens.Lens' JobConfigInput (Prelude.Maybe BandMathConfigInput)
jobConfigInput_bandMathConfig :: Lens' JobConfigInput (Maybe BandMathConfigInput)
jobConfigInput_bandMathConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobConfigInput' {Maybe BandMathConfigInput
bandMathConfig :: Maybe BandMathConfigInput
$sel:bandMathConfig:JobConfigInput' :: JobConfigInput -> Maybe BandMathConfigInput
bandMathConfig} -> Maybe BandMathConfigInput
bandMathConfig) (\s :: JobConfigInput
s@JobConfigInput' {} Maybe BandMathConfigInput
a -> JobConfigInput
s {$sel:bandMathConfig:JobConfigInput' :: Maybe BandMathConfigInput
bandMathConfig = Maybe BandMathConfigInput
a} :: JobConfigInput)

-- | An object containing information about the job configuration for cloud
-- masking.
jobConfigInput_cloudMaskingConfig :: Lens.Lens' JobConfigInput (Prelude.Maybe CloudMaskingConfigInput)
jobConfigInput_cloudMaskingConfig :: Lens' JobConfigInput (Maybe CloudMaskingConfigInput)
jobConfigInput_cloudMaskingConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobConfigInput' {Maybe CloudMaskingConfigInput
cloudMaskingConfig :: Maybe CloudMaskingConfigInput
$sel:cloudMaskingConfig:JobConfigInput' :: JobConfigInput -> Maybe CloudMaskingConfigInput
cloudMaskingConfig} -> Maybe CloudMaskingConfigInput
cloudMaskingConfig) (\s :: JobConfigInput
s@JobConfigInput' {} Maybe CloudMaskingConfigInput
a -> JobConfigInput
s {$sel:cloudMaskingConfig:JobConfigInput' :: Maybe CloudMaskingConfigInput
cloudMaskingConfig = Maybe CloudMaskingConfigInput
a} :: JobConfigInput)

-- | An object containing information about the job configuration for cloud
-- removal.
jobConfigInput_cloudRemovalConfig :: Lens.Lens' JobConfigInput (Prelude.Maybe CloudRemovalConfigInput)
jobConfigInput_cloudRemovalConfig :: Lens' JobConfigInput (Maybe CloudRemovalConfigInput)
jobConfigInput_cloudRemovalConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobConfigInput' {Maybe CloudRemovalConfigInput
cloudRemovalConfig :: Maybe CloudRemovalConfigInput
$sel:cloudRemovalConfig:JobConfigInput' :: JobConfigInput -> Maybe CloudRemovalConfigInput
cloudRemovalConfig} -> Maybe CloudRemovalConfigInput
cloudRemovalConfig) (\s :: JobConfigInput
s@JobConfigInput' {} Maybe CloudRemovalConfigInput
a -> JobConfigInput
s {$sel:cloudRemovalConfig:JobConfigInput' :: Maybe CloudRemovalConfigInput
cloudRemovalConfig = Maybe CloudRemovalConfigInput
a} :: JobConfigInput)

-- | An object containing information about the job configuration for
-- geomosaic.
jobConfigInput_geoMosaicConfig :: Lens.Lens' JobConfigInput (Prelude.Maybe GeoMosaicConfigInput)
jobConfigInput_geoMosaicConfig :: Lens' JobConfigInput (Maybe GeoMosaicConfigInput)
jobConfigInput_geoMosaicConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobConfigInput' {Maybe GeoMosaicConfigInput
geoMosaicConfig :: Maybe GeoMosaicConfigInput
$sel:geoMosaicConfig:JobConfigInput' :: JobConfigInput -> Maybe GeoMosaicConfigInput
geoMosaicConfig} -> Maybe GeoMosaicConfigInput
geoMosaicConfig) (\s :: JobConfigInput
s@JobConfigInput' {} Maybe GeoMosaicConfigInput
a -> JobConfigInput
s {$sel:geoMosaicConfig:JobConfigInput' :: Maybe GeoMosaicConfigInput
geoMosaicConfig = Maybe GeoMosaicConfigInput
a} :: JobConfigInput)

-- | An object containing information about the job configuration for land
-- cover segmentation.
jobConfigInput_landCoverSegmentationConfig :: Lens.Lens' JobConfigInput (Prelude.Maybe LandCoverSegmentationConfigInput)
jobConfigInput_landCoverSegmentationConfig :: Lens' JobConfigInput (Maybe LandCoverSegmentationConfigInput)
jobConfigInput_landCoverSegmentationConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobConfigInput' {Maybe LandCoverSegmentationConfigInput
landCoverSegmentationConfig :: Maybe LandCoverSegmentationConfigInput
$sel:landCoverSegmentationConfig:JobConfigInput' :: JobConfigInput -> Maybe LandCoverSegmentationConfigInput
landCoverSegmentationConfig} -> Maybe LandCoverSegmentationConfigInput
landCoverSegmentationConfig) (\s :: JobConfigInput
s@JobConfigInput' {} Maybe LandCoverSegmentationConfigInput
a -> JobConfigInput
s {$sel:landCoverSegmentationConfig:JobConfigInput' :: Maybe LandCoverSegmentationConfigInput
landCoverSegmentationConfig = Maybe LandCoverSegmentationConfigInput
a} :: JobConfigInput)

-- | An object containing information about the job configuration for
-- resampling.
jobConfigInput_resamplingConfig :: Lens.Lens' JobConfigInput (Prelude.Maybe ResamplingConfigInput)
jobConfigInput_resamplingConfig :: Lens' JobConfigInput (Maybe ResamplingConfigInput)
jobConfigInput_resamplingConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobConfigInput' {Maybe ResamplingConfigInput
resamplingConfig :: Maybe ResamplingConfigInput
$sel:resamplingConfig:JobConfigInput' :: JobConfigInput -> Maybe ResamplingConfigInput
resamplingConfig} -> Maybe ResamplingConfigInput
resamplingConfig) (\s :: JobConfigInput
s@JobConfigInput' {} Maybe ResamplingConfigInput
a -> JobConfigInput
s {$sel:resamplingConfig:JobConfigInput' :: Maybe ResamplingConfigInput
resamplingConfig = Maybe ResamplingConfigInput
a} :: JobConfigInput)

jobConfigInput_stackConfig :: Lens.Lens' JobConfigInput (Prelude.Maybe StackConfigInput)
jobConfigInput_stackConfig :: Lens' JobConfigInput (Maybe StackConfigInput)
jobConfigInput_stackConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobConfigInput' {Maybe StackConfigInput
stackConfig :: Maybe StackConfigInput
$sel:stackConfig:JobConfigInput' :: JobConfigInput -> Maybe StackConfigInput
stackConfig} -> Maybe StackConfigInput
stackConfig) (\s :: JobConfigInput
s@JobConfigInput' {} Maybe StackConfigInput
a -> JobConfigInput
s {$sel:stackConfig:JobConfigInput' :: Maybe StackConfigInput
stackConfig = Maybe StackConfigInput
a} :: JobConfigInput)

-- | An object containing information about the job configuration for
-- temporal statistics.
jobConfigInput_temporalStatisticsConfig :: Lens.Lens' JobConfigInput (Prelude.Maybe TemporalStatisticsConfigInput)
jobConfigInput_temporalStatisticsConfig :: Lens' JobConfigInput (Maybe TemporalStatisticsConfigInput)
jobConfigInput_temporalStatisticsConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobConfigInput' {Maybe TemporalStatisticsConfigInput
temporalStatisticsConfig :: Maybe TemporalStatisticsConfigInput
$sel:temporalStatisticsConfig:JobConfigInput' :: JobConfigInput -> Maybe TemporalStatisticsConfigInput
temporalStatisticsConfig} -> Maybe TemporalStatisticsConfigInput
temporalStatisticsConfig) (\s :: JobConfigInput
s@JobConfigInput' {} Maybe TemporalStatisticsConfigInput
a -> JobConfigInput
s {$sel:temporalStatisticsConfig:JobConfigInput' :: Maybe TemporalStatisticsConfigInput
temporalStatisticsConfig = Maybe TemporalStatisticsConfigInput
a} :: JobConfigInput)

-- | An object containing information about the job configuration for zonal
-- statistics.
jobConfigInput_zonalStatisticsConfig :: Lens.Lens' JobConfigInput (Prelude.Maybe ZonalStatisticsConfigInput)
jobConfigInput_zonalStatisticsConfig :: Lens' JobConfigInput (Maybe ZonalStatisticsConfigInput)
jobConfigInput_zonalStatisticsConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobConfigInput' {Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig :: Maybe ZonalStatisticsConfigInput
$sel:zonalStatisticsConfig:JobConfigInput' :: JobConfigInput -> Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig} -> Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig) (\s :: JobConfigInput
s@JobConfigInput' {} Maybe ZonalStatisticsConfigInput
a -> JobConfigInput
s {$sel:zonalStatisticsConfig:JobConfigInput' :: Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig = Maybe ZonalStatisticsConfigInput
a} :: JobConfigInput)

instance Data.FromJSON JobConfigInput where
  parseJSON :: Value -> Parser JobConfigInput
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"JobConfigInput"
      ( \Object
x ->
          Maybe BandMathConfigInput
-> Maybe CloudMaskingConfigInput
-> Maybe CloudRemovalConfigInput
-> Maybe GeoMosaicConfigInput
-> Maybe LandCoverSegmentationConfigInput
-> Maybe ResamplingConfigInput
-> Maybe StackConfigInput
-> Maybe TemporalStatisticsConfigInput
-> Maybe ZonalStatisticsConfigInput
-> JobConfigInput
JobConfigInput'
            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
"BandMathConfig")
            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
"CloudMaskingConfig")
            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
"CloudRemovalConfig")
            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
"GeoMosaicConfig")
            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
"LandCoverSegmentationConfig")
            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
"ResamplingConfig")
            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
"StackConfig")
            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
"TemporalStatisticsConfig")
            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
"ZonalStatisticsConfig")
      )

instance Prelude.Hashable JobConfigInput where
  hashWithSalt :: Int -> JobConfigInput -> Int
hashWithSalt Int
_salt JobConfigInput' {Maybe CloudMaskingConfigInput
Maybe CloudRemovalConfigInput
Maybe GeoMosaicConfigInput
Maybe LandCoverSegmentationConfigInput
Maybe BandMathConfigInput
Maybe TemporalStatisticsConfigInput
Maybe StackConfigInput
Maybe ResamplingConfigInput
Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig :: Maybe ZonalStatisticsConfigInput
temporalStatisticsConfig :: Maybe TemporalStatisticsConfigInput
stackConfig :: Maybe StackConfigInput
resamplingConfig :: Maybe ResamplingConfigInput
landCoverSegmentationConfig :: Maybe LandCoverSegmentationConfigInput
geoMosaicConfig :: Maybe GeoMosaicConfigInput
cloudRemovalConfig :: Maybe CloudRemovalConfigInput
cloudMaskingConfig :: Maybe CloudMaskingConfigInput
bandMathConfig :: Maybe BandMathConfigInput
$sel:zonalStatisticsConfig:JobConfigInput' :: JobConfigInput -> Maybe ZonalStatisticsConfigInput
$sel:temporalStatisticsConfig:JobConfigInput' :: JobConfigInput -> Maybe TemporalStatisticsConfigInput
$sel:stackConfig:JobConfigInput' :: JobConfigInput -> Maybe StackConfigInput
$sel:resamplingConfig:JobConfigInput' :: JobConfigInput -> Maybe ResamplingConfigInput
$sel:landCoverSegmentationConfig:JobConfigInput' :: JobConfigInput -> Maybe LandCoverSegmentationConfigInput
$sel:geoMosaicConfig:JobConfigInput' :: JobConfigInput -> Maybe GeoMosaicConfigInput
$sel:cloudRemovalConfig:JobConfigInput' :: JobConfigInput -> Maybe CloudRemovalConfigInput
$sel:cloudMaskingConfig:JobConfigInput' :: JobConfigInput -> Maybe CloudMaskingConfigInput
$sel:bandMathConfig:JobConfigInput' :: JobConfigInput -> Maybe BandMathConfigInput
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BandMathConfigInput
bandMathConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CloudMaskingConfigInput
cloudMaskingConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CloudRemovalConfigInput
cloudRemovalConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe GeoMosaicConfigInput
geoMosaicConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LandCoverSegmentationConfigInput
landCoverSegmentationConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResamplingConfigInput
resamplingConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe StackConfigInput
stackConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TemporalStatisticsConfigInput
temporalStatisticsConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig

instance Prelude.NFData JobConfigInput where
  rnf :: JobConfigInput -> ()
rnf JobConfigInput' {Maybe CloudMaskingConfigInput
Maybe CloudRemovalConfigInput
Maybe GeoMosaicConfigInput
Maybe LandCoverSegmentationConfigInput
Maybe BandMathConfigInput
Maybe TemporalStatisticsConfigInput
Maybe StackConfigInput
Maybe ResamplingConfigInput
Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig :: Maybe ZonalStatisticsConfigInput
temporalStatisticsConfig :: Maybe TemporalStatisticsConfigInput
stackConfig :: Maybe StackConfigInput
resamplingConfig :: Maybe ResamplingConfigInput
landCoverSegmentationConfig :: Maybe LandCoverSegmentationConfigInput
geoMosaicConfig :: Maybe GeoMosaicConfigInput
cloudRemovalConfig :: Maybe CloudRemovalConfigInput
cloudMaskingConfig :: Maybe CloudMaskingConfigInput
bandMathConfig :: Maybe BandMathConfigInput
$sel:zonalStatisticsConfig:JobConfigInput' :: JobConfigInput -> Maybe ZonalStatisticsConfigInput
$sel:temporalStatisticsConfig:JobConfigInput' :: JobConfigInput -> Maybe TemporalStatisticsConfigInput
$sel:stackConfig:JobConfigInput' :: JobConfigInput -> Maybe StackConfigInput
$sel:resamplingConfig:JobConfigInput' :: JobConfigInput -> Maybe ResamplingConfigInput
$sel:landCoverSegmentationConfig:JobConfigInput' :: JobConfigInput -> Maybe LandCoverSegmentationConfigInput
$sel:geoMosaicConfig:JobConfigInput' :: JobConfigInput -> Maybe GeoMosaicConfigInput
$sel:cloudRemovalConfig:JobConfigInput' :: JobConfigInput -> Maybe CloudRemovalConfigInput
$sel:cloudMaskingConfig:JobConfigInput' :: JobConfigInput -> Maybe CloudMaskingConfigInput
$sel:bandMathConfig:JobConfigInput' :: JobConfigInput -> Maybe BandMathConfigInput
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe BandMathConfigInput
bandMathConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CloudMaskingConfigInput
cloudMaskingConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CloudRemovalConfigInput
cloudRemovalConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe GeoMosaicConfigInput
geoMosaicConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LandCoverSegmentationConfigInput
landCoverSegmentationConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResamplingConfigInput
resamplingConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe StackConfigInput
stackConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TemporalStatisticsConfigInput
temporalStatisticsConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig

instance Data.ToJSON JobConfigInput where
  toJSON :: JobConfigInput -> Value
toJSON JobConfigInput' {Maybe CloudMaskingConfigInput
Maybe CloudRemovalConfigInput
Maybe GeoMosaicConfigInput
Maybe LandCoverSegmentationConfigInput
Maybe BandMathConfigInput
Maybe TemporalStatisticsConfigInput
Maybe StackConfigInput
Maybe ResamplingConfigInput
Maybe ZonalStatisticsConfigInput
zonalStatisticsConfig :: Maybe ZonalStatisticsConfigInput
temporalStatisticsConfig :: Maybe TemporalStatisticsConfigInput
stackConfig :: Maybe StackConfigInput
resamplingConfig :: Maybe ResamplingConfigInput
landCoverSegmentationConfig :: Maybe LandCoverSegmentationConfigInput
geoMosaicConfig :: Maybe GeoMosaicConfigInput
cloudRemovalConfig :: Maybe CloudRemovalConfigInput
cloudMaskingConfig :: Maybe CloudMaskingConfigInput
bandMathConfig :: Maybe BandMathConfigInput
$sel:zonalStatisticsConfig:JobConfigInput' :: JobConfigInput -> Maybe ZonalStatisticsConfigInput
$sel:temporalStatisticsConfig:JobConfigInput' :: JobConfigInput -> Maybe TemporalStatisticsConfigInput
$sel:stackConfig:JobConfigInput' :: JobConfigInput -> Maybe StackConfigInput
$sel:resamplingConfig:JobConfigInput' :: JobConfigInput -> Maybe ResamplingConfigInput
$sel:landCoverSegmentationConfig:JobConfigInput' :: JobConfigInput -> Maybe LandCoverSegmentationConfigInput
$sel:geoMosaicConfig:JobConfigInput' :: JobConfigInput -> Maybe GeoMosaicConfigInput
$sel:cloudRemovalConfig:JobConfigInput' :: JobConfigInput -> Maybe CloudRemovalConfigInput
$sel:cloudMaskingConfig:JobConfigInput' :: JobConfigInput -> Maybe CloudMaskingConfigInput
$sel:bandMathConfig:JobConfigInput' :: JobConfigInput -> Maybe BandMathConfigInput
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"BandMathConfig" 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 BandMathConfigInput
bandMathConfig,
            (Key
"CloudMaskingConfig" 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 CloudMaskingConfigInput
cloudMaskingConfig,
            (Key
"CloudRemovalConfig" 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 CloudRemovalConfigInput
cloudRemovalConfig,
            (Key
"GeoMosaicConfig" 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 GeoMosaicConfigInput
geoMosaicConfig,
            (Key
"LandCoverSegmentationConfig" 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 LandCoverSegmentationConfigInput
landCoverSegmentationConfig,
            (Key
"ResamplingConfig" 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 ResamplingConfigInput
resamplingConfig,
            (Key
"StackConfig" 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 StackConfigInput
stackConfig,
            (Key
"TemporalStatisticsConfig" 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 TemporalStatisticsConfigInput
temporalStatisticsConfig,
            (Key
"ZonalStatisticsConfig" 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 ZonalStatisticsConfigInput
zonalStatisticsConfig
          ]
      )