{-# 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.AppFlow.Types.TrendmicroSourceProperties where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data TrendmicroSourceProperties = TrendmicroSourceProperties'
{
TrendmicroSourceProperties -> Text
object' :: Prelude.Text
}
deriving (TrendmicroSourceProperties -> TrendmicroSourceProperties -> Bool
(TrendmicroSourceProperties -> TrendmicroSourceProperties -> Bool)
-> (TrendmicroSourceProperties
-> TrendmicroSourceProperties -> Bool)
-> Eq TrendmicroSourceProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TrendmicroSourceProperties -> TrendmicroSourceProperties -> Bool
$c/= :: TrendmicroSourceProperties -> TrendmicroSourceProperties -> Bool
== :: TrendmicroSourceProperties -> TrendmicroSourceProperties -> Bool
$c== :: TrendmicroSourceProperties -> TrendmicroSourceProperties -> Bool
Prelude.Eq, ReadPrec [TrendmicroSourceProperties]
ReadPrec TrendmicroSourceProperties
Int -> ReadS TrendmicroSourceProperties
ReadS [TrendmicroSourceProperties]
(Int -> ReadS TrendmicroSourceProperties)
-> ReadS [TrendmicroSourceProperties]
-> ReadPrec TrendmicroSourceProperties
-> ReadPrec [TrendmicroSourceProperties]
-> Read TrendmicroSourceProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TrendmicroSourceProperties]
$creadListPrec :: ReadPrec [TrendmicroSourceProperties]
readPrec :: ReadPrec TrendmicroSourceProperties
$creadPrec :: ReadPrec TrendmicroSourceProperties
readList :: ReadS [TrendmicroSourceProperties]
$creadList :: ReadS [TrendmicroSourceProperties]
readsPrec :: Int -> ReadS TrendmicroSourceProperties
$creadsPrec :: Int -> ReadS TrendmicroSourceProperties
Prelude.Read, Int -> TrendmicroSourceProperties -> ShowS
[TrendmicroSourceProperties] -> ShowS
TrendmicroSourceProperties -> String
(Int -> TrendmicroSourceProperties -> ShowS)
-> (TrendmicroSourceProperties -> String)
-> ([TrendmicroSourceProperties] -> ShowS)
-> Show TrendmicroSourceProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TrendmicroSourceProperties] -> ShowS
$cshowList :: [TrendmicroSourceProperties] -> ShowS
show :: TrendmicroSourceProperties -> String
$cshow :: TrendmicroSourceProperties -> String
showsPrec :: Int -> TrendmicroSourceProperties -> ShowS
$cshowsPrec :: Int -> TrendmicroSourceProperties -> ShowS
Prelude.Show, (forall x.
TrendmicroSourceProperties -> Rep TrendmicroSourceProperties x)
-> (forall x.
Rep TrendmicroSourceProperties x -> TrendmicroSourceProperties)
-> Generic TrendmicroSourceProperties
forall x.
Rep TrendmicroSourceProperties x -> TrendmicroSourceProperties
forall x.
TrendmicroSourceProperties -> Rep TrendmicroSourceProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TrendmicroSourceProperties x -> TrendmicroSourceProperties
$cfrom :: forall x.
TrendmicroSourceProperties -> Rep TrendmicroSourceProperties x
Prelude.Generic)
newTrendmicroSourceProperties ::
Prelude.Text ->
TrendmicroSourceProperties
newTrendmicroSourceProperties :: Text -> TrendmicroSourceProperties
newTrendmicroSourceProperties Text
pObject_ =
TrendmicroSourceProperties' :: Text -> TrendmicroSourceProperties
TrendmicroSourceProperties' {$sel:object':TrendmicroSourceProperties' :: Text
object' = Text
pObject_}
trendmicroSourceProperties_object :: Lens.Lens' TrendmicroSourceProperties Prelude.Text
trendmicroSourceProperties_object :: (Text -> f Text)
-> TrendmicroSourceProperties -> f TrendmicroSourceProperties
trendmicroSourceProperties_object = (TrendmicroSourceProperties -> Text)
-> (TrendmicroSourceProperties
-> Text -> TrendmicroSourceProperties)
-> Lens
TrendmicroSourceProperties TrendmicroSourceProperties Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrendmicroSourceProperties' {Text
object' :: Text
$sel:object':TrendmicroSourceProperties' :: TrendmicroSourceProperties -> Text
object'} -> Text
object') (\s :: TrendmicroSourceProperties
s@TrendmicroSourceProperties' {} Text
a -> TrendmicroSourceProperties
s {$sel:object':TrendmicroSourceProperties' :: Text
object' = Text
a} :: TrendmicroSourceProperties)
instance Core.FromJSON TrendmicroSourceProperties where
parseJSON :: Value -> Parser TrendmicroSourceProperties
parseJSON =
String
-> (Object -> Parser TrendmicroSourceProperties)
-> Value
-> Parser TrendmicroSourceProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"TrendmicroSourceProperties"
( \Object
x ->
Text -> TrendmicroSourceProperties
TrendmicroSourceProperties'
(Text -> TrendmicroSourceProperties)
-> Parser Text -> Parser TrendmicroSourceProperties
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"object")
)
instance Prelude.Hashable TrendmicroSourceProperties
instance Prelude.NFData TrendmicroSourceProperties
instance Core.ToJSON TrendmicroSourceProperties where
toJSON :: TrendmicroSourceProperties -> Value
toJSON TrendmicroSourceProperties' {Text
object' :: Text
$sel:object':TrendmicroSourceProperties' :: TrendmicroSourceProperties -> 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')]
)