{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data TrendmicroSourceProperties = TrendmicroSourceProperties'
{
TrendmicroSourceProperties -> Text
object' :: Prelude.Text
}
deriving (TrendmicroSourceProperties -> TrendmicroSourceProperties -> Bool
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]
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
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.
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' {$sel:object':TrendmicroSourceProperties' :: Text
object' = Text
pObject_}
trendmicroSourceProperties_object :: Lens.Lens' TrendmicroSourceProperties Prelude.Text
trendmicroSourceProperties_object :: Lens' TrendmicroSourceProperties Text
trendmicroSourceProperties_object = 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 Data.FromJSON TrendmicroSourceProperties where
parseJSON :: Value -> Parser TrendmicroSourceProperties
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"TrendmicroSourceProperties"
( \Object
x ->
Text -> TrendmicroSourceProperties
TrendmicroSourceProperties'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"object")
)
instance Prelude.Hashable TrendmicroSourceProperties where
hashWithSalt :: Int -> TrendmicroSourceProperties -> Int
hashWithSalt Int
_salt TrendmicroSourceProperties' {Text
object' :: Text
$sel:object':TrendmicroSourceProperties' :: TrendmicroSourceProperties -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
object'
instance Prelude.NFData TrendmicroSourceProperties where
rnf :: TrendmicroSourceProperties -> ()
rnf TrendmicroSourceProperties' {Text
object' :: Text
$sel:object':TrendmicroSourceProperties' :: TrendmicroSourceProperties -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
object'
instance Data.ToJSON TrendmicroSourceProperties where
toJSON :: TrendmicroSourceProperties -> Value
toJSON TrendmicroSourceProperties' {Text
object' :: Text
$sel:object':TrendmicroSourceProperties' :: TrendmicroSourceProperties -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"object" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
object')]
)