{-# 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.M2.Types.GdgDetailAttributes 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 GdgDetailAttributes = GdgDetailAttributes'
{
GdgDetailAttributes -> Maybe Int
limit :: Prelude.Maybe Prelude.Int,
GdgDetailAttributes -> Maybe Text
rollDisposition :: Prelude.Maybe Prelude.Text
}
deriving (GdgDetailAttributes -> GdgDetailAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GdgDetailAttributes -> GdgDetailAttributes -> Bool
$c/= :: GdgDetailAttributes -> GdgDetailAttributes -> Bool
== :: GdgDetailAttributes -> GdgDetailAttributes -> Bool
$c== :: GdgDetailAttributes -> GdgDetailAttributes -> Bool
Prelude.Eq, ReadPrec [GdgDetailAttributes]
ReadPrec GdgDetailAttributes
Int -> ReadS GdgDetailAttributes
ReadS [GdgDetailAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GdgDetailAttributes]
$creadListPrec :: ReadPrec [GdgDetailAttributes]
readPrec :: ReadPrec GdgDetailAttributes
$creadPrec :: ReadPrec GdgDetailAttributes
readList :: ReadS [GdgDetailAttributes]
$creadList :: ReadS [GdgDetailAttributes]
readsPrec :: Int -> ReadS GdgDetailAttributes
$creadsPrec :: Int -> ReadS GdgDetailAttributes
Prelude.Read, Int -> GdgDetailAttributes -> ShowS
[GdgDetailAttributes] -> ShowS
GdgDetailAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GdgDetailAttributes] -> ShowS
$cshowList :: [GdgDetailAttributes] -> ShowS
show :: GdgDetailAttributes -> String
$cshow :: GdgDetailAttributes -> String
showsPrec :: Int -> GdgDetailAttributes -> ShowS
$cshowsPrec :: Int -> GdgDetailAttributes -> ShowS
Prelude.Show, forall x. Rep GdgDetailAttributes x -> GdgDetailAttributes
forall x. GdgDetailAttributes -> Rep GdgDetailAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GdgDetailAttributes x -> GdgDetailAttributes
$cfrom :: forall x. GdgDetailAttributes -> Rep GdgDetailAttributes x
Prelude.Generic)
newGdgDetailAttributes ::
GdgDetailAttributes
newGdgDetailAttributes :: GdgDetailAttributes
newGdgDetailAttributes =
GdgDetailAttributes'
{ $sel:limit:GdgDetailAttributes' :: Maybe Int
limit = forall a. Maybe a
Prelude.Nothing,
$sel:rollDisposition:GdgDetailAttributes' :: Maybe Text
rollDisposition = forall a. Maybe a
Prelude.Nothing
}
gdgDetailAttributes_limit :: Lens.Lens' GdgDetailAttributes (Prelude.Maybe Prelude.Int)
gdgDetailAttributes_limit :: Lens' GdgDetailAttributes (Maybe Int)
gdgDetailAttributes_limit = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GdgDetailAttributes' {Maybe Int
limit :: Maybe Int
$sel:limit:GdgDetailAttributes' :: GdgDetailAttributes -> Maybe Int
limit} -> Maybe Int
limit) (\s :: GdgDetailAttributes
s@GdgDetailAttributes' {} Maybe Int
a -> GdgDetailAttributes
s {$sel:limit:GdgDetailAttributes' :: Maybe Int
limit = Maybe Int
a} :: GdgDetailAttributes)
gdgDetailAttributes_rollDisposition :: Lens.Lens' GdgDetailAttributes (Prelude.Maybe Prelude.Text)
gdgDetailAttributes_rollDisposition :: Lens' GdgDetailAttributes (Maybe Text)
gdgDetailAttributes_rollDisposition = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GdgDetailAttributes' {Maybe Text
rollDisposition :: Maybe Text
$sel:rollDisposition:GdgDetailAttributes' :: GdgDetailAttributes -> Maybe Text
rollDisposition} -> Maybe Text
rollDisposition) (\s :: GdgDetailAttributes
s@GdgDetailAttributes' {} Maybe Text
a -> GdgDetailAttributes
s {$sel:rollDisposition:GdgDetailAttributes' :: Maybe Text
rollDisposition = Maybe Text
a} :: GdgDetailAttributes)
instance Data.FromJSON GdgDetailAttributes where
parseJSON :: Value -> Parser GdgDetailAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"GdgDetailAttributes"
( \Object
x ->
Maybe Int -> Maybe Text -> GdgDetailAttributes
GdgDetailAttributes'
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
"limit")
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
"rollDisposition")
)
instance Prelude.Hashable GdgDetailAttributes where
hashWithSalt :: Int -> GdgDetailAttributes -> Int
hashWithSalt Int
_salt GdgDetailAttributes' {Maybe Int
Maybe Text
rollDisposition :: Maybe Text
limit :: Maybe Int
$sel:rollDisposition:GdgDetailAttributes' :: GdgDetailAttributes -> Maybe Text
$sel:limit:GdgDetailAttributes' :: GdgDetailAttributes -> Maybe Int
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
limit
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
rollDisposition
instance Prelude.NFData GdgDetailAttributes where
rnf :: GdgDetailAttributes -> ()
rnf GdgDetailAttributes' {Maybe Int
Maybe Text
rollDisposition :: Maybe Text
limit :: Maybe Int
$sel:rollDisposition:GdgDetailAttributes' :: GdgDetailAttributes -> Maybe Text
$sel:limit:GdgDetailAttributes' :: GdgDetailAttributes -> Maybe Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
limit
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
rollDisposition