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