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