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