{-# 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.IoTEvents.Types.IotSiteWiseInputIdentifier where
import qualified Amazonka.Core as Core
import Amazonka.IoTEvents.Types.IotSiteWiseAssetModelPropertyIdentifier
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data IotSiteWiseInputIdentifier = IotSiteWiseInputIdentifier'
{
IotSiteWiseInputIdentifier
-> Maybe IotSiteWiseAssetModelPropertyIdentifier
iotSiteWiseAssetModelPropertyIdentifier :: Prelude.Maybe IotSiteWiseAssetModelPropertyIdentifier
}
deriving (IotSiteWiseInputIdentifier -> IotSiteWiseInputIdentifier -> Bool
(IotSiteWiseInputIdentifier -> IotSiteWiseInputIdentifier -> Bool)
-> (IotSiteWiseInputIdentifier
-> IotSiteWiseInputIdentifier -> Bool)
-> Eq IotSiteWiseInputIdentifier
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IotSiteWiseInputIdentifier -> IotSiteWiseInputIdentifier -> Bool
$c/= :: IotSiteWiseInputIdentifier -> IotSiteWiseInputIdentifier -> Bool
== :: IotSiteWiseInputIdentifier -> IotSiteWiseInputIdentifier -> Bool
$c== :: IotSiteWiseInputIdentifier -> IotSiteWiseInputIdentifier -> Bool
Prelude.Eq, ReadPrec [IotSiteWiseInputIdentifier]
ReadPrec IotSiteWiseInputIdentifier
Int -> ReadS IotSiteWiseInputIdentifier
ReadS [IotSiteWiseInputIdentifier]
(Int -> ReadS IotSiteWiseInputIdentifier)
-> ReadS [IotSiteWiseInputIdentifier]
-> ReadPrec IotSiteWiseInputIdentifier
-> ReadPrec [IotSiteWiseInputIdentifier]
-> Read IotSiteWiseInputIdentifier
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IotSiteWiseInputIdentifier]
$creadListPrec :: ReadPrec [IotSiteWiseInputIdentifier]
readPrec :: ReadPrec IotSiteWiseInputIdentifier
$creadPrec :: ReadPrec IotSiteWiseInputIdentifier
readList :: ReadS [IotSiteWiseInputIdentifier]
$creadList :: ReadS [IotSiteWiseInputIdentifier]
readsPrec :: Int -> ReadS IotSiteWiseInputIdentifier
$creadsPrec :: Int -> ReadS IotSiteWiseInputIdentifier
Prelude.Read, Int -> IotSiteWiseInputIdentifier -> ShowS
[IotSiteWiseInputIdentifier] -> ShowS
IotSiteWiseInputIdentifier -> String
(Int -> IotSiteWiseInputIdentifier -> ShowS)
-> (IotSiteWiseInputIdentifier -> String)
-> ([IotSiteWiseInputIdentifier] -> ShowS)
-> Show IotSiteWiseInputIdentifier
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IotSiteWiseInputIdentifier] -> ShowS
$cshowList :: [IotSiteWiseInputIdentifier] -> ShowS
show :: IotSiteWiseInputIdentifier -> String
$cshow :: IotSiteWiseInputIdentifier -> String
showsPrec :: Int -> IotSiteWiseInputIdentifier -> ShowS
$cshowsPrec :: Int -> IotSiteWiseInputIdentifier -> ShowS
Prelude.Show, (forall x.
IotSiteWiseInputIdentifier -> Rep IotSiteWiseInputIdentifier x)
-> (forall x.
Rep IotSiteWiseInputIdentifier x -> IotSiteWiseInputIdentifier)
-> Generic IotSiteWiseInputIdentifier
forall x.
Rep IotSiteWiseInputIdentifier x -> IotSiteWiseInputIdentifier
forall x.
IotSiteWiseInputIdentifier -> Rep IotSiteWiseInputIdentifier x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep IotSiteWiseInputIdentifier x -> IotSiteWiseInputIdentifier
$cfrom :: forall x.
IotSiteWiseInputIdentifier -> Rep IotSiteWiseInputIdentifier x
Prelude.Generic)
newIotSiteWiseInputIdentifier ::
IotSiteWiseInputIdentifier
newIotSiteWiseInputIdentifier :: IotSiteWiseInputIdentifier
newIotSiteWiseInputIdentifier =
IotSiteWiseInputIdentifier' :: Maybe IotSiteWiseAssetModelPropertyIdentifier
-> IotSiteWiseInputIdentifier
IotSiteWiseInputIdentifier'
{ $sel:iotSiteWiseAssetModelPropertyIdentifier:IotSiteWiseInputIdentifier' :: Maybe IotSiteWiseAssetModelPropertyIdentifier
iotSiteWiseAssetModelPropertyIdentifier =
Maybe IotSiteWiseAssetModelPropertyIdentifier
forall a. Maybe a
Prelude.Nothing
}
iotSiteWiseInputIdentifier_iotSiteWiseAssetModelPropertyIdentifier :: Lens.Lens' IotSiteWiseInputIdentifier (Prelude.Maybe IotSiteWiseAssetModelPropertyIdentifier)
iotSiteWiseInputIdentifier_iotSiteWiseAssetModelPropertyIdentifier :: (Maybe IotSiteWiseAssetModelPropertyIdentifier
-> f (Maybe IotSiteWiseAssetModelPropertyIdentifier))
-> IotSiteWiseInputIdentifier -> f IotSiteWiseInputIdentifier
iotSiteWiseInputIdentifier_iotSiteWiseAssetModelPropertyIdentifier = (IotSiteWiseInputIdentifier
-> Maybe IotSiteWiseAssetModelPropertyIdentifier)
-> (IotSiteWiseInputIdentifier
-> Maybe IotSiteWiseAssetModelPropertyIdentifier
-> IotSiteWiseInputIdentifier)
-> Lens
IotSiteWiseInputIdentifier
IotSiteWiseInputIdentifier
(Maybe IotSiteWiseAssetModelPropertyIdentifier)
(Maybe IotSiteWiseAssetModelPropertyIdentifier)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IotSiteWiseInputIdentifier' {Maybe IotSiteWiseAssetModelPropertyIdentifier
iotSiteWiseAssetModelPropertyIdentifier :: Maybe IotSiteWiseAssetModelPropertyIdentifier
$sel:iotSiteWiseAssetModelPropertyIdentifier:IotSiteWiseInputIdentifier' :: IotSiteWiseInputIdentifier
-> Maybe IotSiteWiseAssetModelPropertyIdentifier
iotSiteWiseAssetModelPropertyIdentifier} -> Maybe IotSiteWiseAssetModelPropertyIdentifier
iotSiteWiseAssetModelPropertyIdentifier) (\s :: IotSiteWiseInputIdentifier
s@IotSiteWiseInputIdentifier' {} Maybe IotSiteWiseAssetModelPropertyIdentifier
a -> IotSiteWiseInputIdentifier
s {$sel:iotSiteWiseAssetModelPropertyIdentifier:IotSiteWiseInputIdentifier' :: Maybe IotSiteWiseAssetModelPropertyIdentifier
iotSiteWiseAssetModelPropertyIdentifier = Maybe IotSiteWiseAssetModelPropertyIdentifier
a} :: IotSiteWiseInputIdentifier)
instance Prelude.Hashable IotSiteWiseInputIdentifier
instance Prelude.NFData IotSiteWiseInputIdentifier
instance Core.ToJSON IotSiteWiseInputIdentifier where
toJSON :: IotSiteWiseInputIdentifier -> Value
toJSON IotSiteWiseInputIdentifier' {Maybe IotSiteWiseAssetModelPropertyIdentifier
iotSiteWiseAssetModelPropertyIdentifier :: Maybe IotSiteWiseAssetModelPropertyIdentifier
$sel:iotSiteWiseAssetModelPropertyIdentifier:IotSiteWiseInputIdentifier' :: IotSiteWiseInputIdentifier
-> Maybe IotSiteWiseAssetModelPropertyIdentifier
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"iotSiteWiseAssetModelPropertyIdentifier" Text -> IotSiteWiseAssetModelPropertyIdentifier -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(IotSiteWiseAssetModelPropertyIdentifier -> Pair)
-> Maybe IotSiteWiseAssetModelPropertyIdentifier -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IotSiteWiseAssetModelPropertyIdentifier
iotSiteWiseAssetModelPropertyIdentifier
]
)