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