{-# 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.RolesAnywhere.Types.ScalarProfileRequest 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 ScalarProfileRequest = ScalarProfileRequest'
{
ScalarProfileRequest -> Text
profileId :: Prelude.Text
}
deriving (ScalarProfileRequest -> ScalarProfileRequest -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ScalarProfileRequest -> ScalarProfileRequest -> Bool
$c/= :: ScalarProfileRequest -> ScalarProfileRequest -> Bool
== :: ScalarProfileRequest -> ScalarProfileRequest -> Bool
$c== :: ScalarProfileRequest -> ScalarProfileRequest -> Bool
Prelude.Eq, ReadPrec [ScalarProfileRequest]
ReadPrec ScalarProfileRequest
Int -> ReadS ScalarProfileRequest
ReadS [ScalarProfileRequest]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ScalarProfileRequest]
$creadListPrec :: ReadPrec [ScalarProfileRequest]
readPrec :: ReadPrec ScalarProfileRequest
$creadPrec :: ReadPrec ScalarProfileRequest
readList :: ReadS [ScalarProfileRequest]
$creadList :: ReadS [ScalarProfileRequest]
readsPrec :: Int -> ReadS ScalarProfileRequest
$creadsPrec :: Int -> ReadS ScalarProfileRequest
Prelude.Read, Int -> ScalarProfileRequest -> ShowS
[ScalarProfileRequest] -> ShowS
ScalarProfileRequest -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ScalarProfileRequest] -> ShowS
$cshowList :: [ScalarProfileRequest] -> ShowS
show :: ScalarProfileRequest -> String
$cshow :: ScalarProfileRequest -> String
showsPrec :: Int -> ScalarProfileRequest -> ShowS
$cshowsPrec :: Int -> ScalarProfileRequest -> ShowS
Prelude.Show, forall x. Rep ScalarProfileRequest x -> ScalarProfileRequest
forall x. ScalarProfileRequest -> Rep ScalarProfileRequest x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ScalarProfileRequest x -> ScalarProfileRequest
$cfrom :: forall x. ScalarProfileRequest -> Rep ScalarProfileRequest x
Prelude.Generic)
newScalarProfileRequest ::
Prelude.Text ->
ScalarProfileRequest
newScalarProfileRequest :: Text -> ScalarProfileRequest
newScalarProfileRequest Text
pProfileId_ =
ScalarProfileRequest' {$sel:profileId:ScalarProfileRequest' :: Text
profileId = Text
pProfileId_}
scalarProfileRequest_profileId :: Lens.Lens' ScalarProfileRequest Prelude.Text
scalarProfileRequest_profileId :: Lens' ScalarProfileRequest Text
scalarProfileRequest_profileId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScalarProfileRequest' {Text
profileId :: Text
$sel:profileId:ScalarProfileRequest' :: ScalarProfileRequest -> Text
profileId} -> Text
profileId) (\s :: ScalarProfileRequest
s@ScalarProfileRequest' {} Text
a -> ScalarProfileRequest
s {$sel:profileId:ScalarProfileRequest' :: Text
profileId = Text
a} :: ScalarProfileRequest)
instance Prelude.Hashable ScalarProfileRequest where
hashWithSalt :: Int -> ScalarProfileRequest -> Int
hashWithSalt Int
_salt ScalarProfileRequest' {Text
profileId :: Text
$sel:profileId:ScalarProfileRequest' :: ScalarProfileRequest -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
profileId
instance Prelude.NFData ScalarProfileRequest where
rnf :: ScalarProfileRequest -> ()
rnf ScalarProfileRequest' {Text
profileId :: Text
$sel:profileId:ScalarProfileRequest' :: ScalarProfileRequest -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
profileId
instance Data.ToJSON ScalarProfileRequest where
toJSON :: ScalarProfileRequest -> Value
toJSON ScalarProfileRequest' {Text
profileId :: Text
$sel:profileId:ScalarProfileRequest' :: ScalarProfileRequest -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"profileId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
profileId)]
)