{-# 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.OutputResolutionResamplingInput 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.UserDefined
data OutputResolutionResamplingInput = OutputResolutionResamplingInput'
{ OutputResolutionResamplingInput -> UserDefined
userDefined :: UserDefined
}
deriving (OutputResolutionResamplingInput
-> OutputResolutionResamplingInput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OutputResolutionResamplingInput
-> OutputResolutionResamplingInput -> Bool
$c/= :: OutputResolutionResamplingInput
-> OutputResolutionResamplingInput -> Bool
== :: OutputResolutionResamplingInput
-> OutputResolutionResamplingInput -> Bool
$c== :: OutputResolutionResamplingInput
-> OutputResolutionResamplingInput -> Bool
Prelude.Eq, ReadPrec [OutputResolutionResamplingInput]
ReadPrec OutputResolutionResamplingInput
Int -> ReadS OutputResolutionResamplingInput
ReadS [OutputResolutionResamplingInput]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OutputResolutionResamplingInput]
$creadListPrec :: ReadPrec [OutputResolutionResamplingInput]
readPrec :: ReadPrec OutputResolutionResamplingInput
$creadPrec :: ReadPrec OutputResolutionResamplingInput
readList :: ReadS [OutputResolutionResamplingInput]
$creadList :: ReadS [OutputResolutionResamplingInput]
readsPrec :: Int -> ReadS OutputResolutionResamplingInput
$creadsPrec :: Int -> ReadS OutputResolutionResamplingInput
Prelude.Read, Int -> OutputResolutionResamplingInput -> ShowS
[OutputResolutionResamplingInput] -> ShowS
OutputResolutionResamplingInput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OutputResolutionResamplingInput] -> ShowS
$cshowList :: [OutputResolutionResamplingInput] -> ShowS
show :: OutputResolutionResamplingInput -> String
$cshow :: OutputResolutionResamplingInput -> String
showsPrec :: Int -> OutputResolutionResamplingInput -> ShowS
$cshowsPrec :: Int -> OutputResolutionResamplingInput -> ShowS
Prelude.Show, forall x.
Rep OutputResolutionResamplingInput x
-> OutputResolutionResamplingInput
forall x.
OutputResolutionResamplingInput
-> Rep OutputResolutionResamplingInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OutputResolutionResamplingInput x
-> OutputResolutionResamplingInput
$cfrom :: forall x.
OutputResolutionResamplingInput
-> Rep OutputResolutionResamplingInput x
Prelude.Generic)
newOutputResolutionResamplingInput ::
UserDefined ->
OutputResolutionResamplingInput
newOutputResolutionResamplingInput :: UserDefined -> OutputResolutionResamplingInput
newOutputResolutionResamplingInput UserDefined
pUserDefined_ =
OutputResolutionResamplingInput'
{ $sel:userDefined:OutputResolutionResamplingInput' :: UserDefined
userDefined =
UserDefined
pUserDefined_
}
outputResolutionResamplingInput_userDefined :: Lens.Lens' OutputResolutionResamplingInput UserDefined
outputResolutionResamplingInput_userDefined :: Lens' OutputResolutionResamplingInput UserDefined
outputResolutionResamplingInput_userDefined = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OutputResolutionResamplingInput' {UserDefined
userDefined :: UserDefined
$sel:userDefined:OutputResolutionResamplingInput' :: OutputResolutionResamplingInput -> UserDefined
userDefined} -> UserDefined
userDefined) (\s :: OutputResolutionResamplingInput
s@OutputResolutionResamplingInput' {} UserDefined
a -> OutputResolutionResamplingInput
s {$sel:userDefined:OutputResolutionResamplingInput' :: UserDefined
userDefined = UserDefined
a} :: OutputResolutionResamplingInput)
instance
Data.FromJSON
OutputResolutionResamplingInput
where
parseJSON :: Value -> Parser OutputResolutionResamplingInput
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"OutputResolutionResamplingInput"
( \Object
x ->
UserDefined -> OutputResolutionResamplingInput
OutputResolutionResamplingInput'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"UserDefined")
)
instance
Prelude.Hashable
OutputResolutionResamplingInput
where
hashWithSalt :: Int -> OutputResolutionResamplingInput -> Int
hashWithSalt
Int
_salt
OutputResolutionResamplingInput' {UserDefined
userDefined :: UserDefined
$sel:userDefined:OutputResolutionResamplingInput' :: OutputResolutionResamplingInput -> UserDefined
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` UserDefined
userDefined
instance
Prelude.NFData
OutputResolutionResamplingInput
where
rnf :: OutputResolutionResamplingInput -> ()
rnf OutputResolutionResamplingInput' {UserDefined
userDefined :: UserDefined
$sel:userDefined:OutputResolutionResamplingInput' :: OutputResolutionResamplingInput -> UserDefined
..} =
forall a. NFData a => a -> ()
Prelude.rnf UserDefined
userDefined
instance Data.ToJSON OutputResolutionResamplingInput where
toJSON :: OutputResolutionResamplingInput -> Value
toJSON OutputResolutionResamplingInput' {UserDefined
userDefined :: UserDefined
$sel:userDefined:OutputResolutionResamplingInput' :: OutputResolutionResamplingInput -> UserDefined
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"UserDefined" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= UserDefined
userDefined)]
)