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