{-# 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.TrendmicroConnectorProfileCredentials 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 TrendmicroConnectorProfileCredentials = TrendmicroConnectorProfileCredentials'
{
TrendmicroConnectorProfileCredentials -> Sensitive Text
apiSecretKey :: Data.Sensitive Prelude.Text
}
deriving (TrendmicroConnectorProfileCredentials
-> TrendmicroConnectorProfileCredentials -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TrendmicroConnectorProfileCredentials
-> TrendmicroConnectorProfileCredentials -> Bool
$c/= :: TrendmicroConnectorProfileCredentials
-> TrendmicroConnectorProfileCredentials -> Bool
== :: TrendmicroConnectorProfileCredentials
-> TrendmicroConnectorProfileCredentials -> Bool
$c== :: TrendmicroConnectorProfileCredentials
-> TrendmicroConnectorProfileCredentials -> Bool
Prelude.Eq, Int -> TrendmicroConnectorProfileCredentials -> ShowS
[TrendmicroConnectorProfileCredentials] -> ShowS
TrendmicroConnectorProfileCredentials -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TrendmicroConnectorProfileCredentials] -> ShowS
$cshowList :: [TrendmicroConnectorProfileCredentials] -> ShowS
show :: TrendmicroConnectorProfileCredentials -> String
$cshow :: TrendmicroConnectorProfileCredentials -> String
showsPrec :: Int -> TrendmicroConnectorProfileCredentials -> ShowS
$cshowsPrec :: Int -> TrendmicroConnectorProfileCredentials -> ShowS
Prelude.Show, forall x.
Rep TrendmicroConnectorProfileCredentials x
-> TrendmicroConnectorProfileCredentials
forall x.
TrendmicroConnectorProfileCredentials
-> Rep TrendmicroConnectorProfileCredentials x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TrendmicroConnectorProfileCredentials x
-> TrendmicroConnectorProfileCredentials
$cfrom :: forall x.
TrendmicroConnectorProfileCredentials
-> Rep TrendmicroConnectorProfileCredentials x
Prelude.Generic)
newTrendmicroConnectorProfileCredentials ::
Prelude.Text ->
TrendmicroConnectorProfileCredentials
newTrendmicroConnectorProfileCredentials :: Text -> TrendmicroConnectorProfileCredentials
newTrendmicroConnectorProfileCredentials
Text
pApiSecretKey_ =
TrendmicroConnectorProfileCredentials'
{ $sel:apiSecretKey:TrendmicroConnectorProfileCredentials' :: Sensitive Text
apiSecretKey =
forall a. Iso' (Sensitive a) a
Data._Sensitive
forall t b. AReview t b -> b -> t
Lens.# Text
pApiSecretKey_
}
trendmicroConnectorProfileCredentials_apiSecretKey :: Lens.Lens' TrendmicroConnectorProfileCredentials Prelude.Text
trendmicroConnectorProfileCredentials_apiSecretKey :: Lens' TrendmicroConnectorProfileCredentials Text
trendmicroConnectorProfileCredentials_apiSecretKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TrendmicroConnectorProfileCredentials' {Sensitive Text
apiSecretKey :: Sensitive Text
$sel:apiSecretKey:TrendmicroConnectorProfileCredentials' :: TrendmicroConnectorProfileCredentials -> Sensitive Text
apiSecretKey} -> Sensitive Text
apiSecretKey) (\s :: TrendmicroConnectorProfileCredentials
s@TrendmicroConnectorProfileCredentials' {} Sensitive Text
a -> TrendmicroConnectorProfileCredentials
s {$sel:apiSecretKey:TrendmicroConnectorProfileCredentials' :: Sensitive Text
apiSecretKey = Sensitive Text
a} :: TrendmicroConnectorProfileCredentials) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. Iso' (Sensitive a) a
Data._Sensitive
instance
Prelude.Hashable
TrendmicroConnectorProfileCredentials
where
hashWithSalt :: Int -> TrendmicroConnectorProfileCredentials -> Int
hashWithSalt
Int
_salt
TrendmicroConnectorProfileCredentials' {Sensitive Text
apiSecretKey :: Sensitive Text
$sel:apiSecretKey:TrendmicroConnectorProfileCredentials' :: TrendmicroConnectorProfileCredentials -> Sensitive Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Sensitive Text
apiSecretKey
instance
Prelude.NFData
TrendmicroConnectorProfileCredentials
where
rnf :: TrendmicroConnectorProfileCredentials -> ()
rnf TrendmicroConnectorProfileCredentials' {Sensitive Text
apiSecretKey :: Sensitive Text
$sel:apiSecretKey:TrendmicroConnectorProfileCredentials' :: TrendmicroConnectorProfileCredentials -> Sensitive Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Sensitive Text
apiSecretKey
instance
Data.ToJSON
TrendmicroConnectorProfileCredentials
where
toJSON :: TrendmicroConnectorProfileCredentials -> Value
toJSON TrendmicroConnectorProfileCredentials' {Sensitive Text
apiSecretKey :: Sensitive Text
$sel:apiSecretKey:TrendmicroConnectorProfileCredentials' :: TrendmicroConnectorProfileCredentials -> Sensitive Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"apiSecretKey" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Sensitive Text
apiSecretKey)]
)