{-# 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.NetworkFabricAttributes where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ManagedBlockChain.Types.Edition
import qualified Amazonka.Prelude as Prelude
data NetworkFabricAttributes = NetworkFabricAttributes'
{
NetworkFabricAttributes -> Maybe Edition
edition :: Prelude.Maybe Edition,
NetworkFabricAttributes -> Maybe Text
orderingServiceEndpoint :: Prelude.Maybe Prelude.Text
}
deriving (NetworkFabricAttributes -> NetworkFabricAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NetworkFabricAttributes -> NetworkFabricAttributes -> Bool
$c/= :: NetworkFabricAttributes -> NetworkFabricAttributes -> Bool
== :: NetworkFabricAttributes -> NetworkFabricAttributes -> Bool
$c== :: NetworkFabricAttributes -> NetworkFabricAttributes -> Bool
Prelude.Eq, ReadPrec [NetworkFabricAttributes]
ReadPrec NetworkFabricAttributes
Int -> ReadS NetworkFabricAttributes
ReadS [NetworkFabricAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NetworkFabricAttributes]
$creadListPrec :: ReadPrec [NetworkFabricAttributes]
readPrec :: ReadPrec NetworkFabricAttributes
$creadPrec :: ReadPrec NetworkFabricAttributes
readList :: ReadS [NetworkFabricAttributes]
$creadList :: ReadS [NetworkFabricAttributes]
readsPrec :: Int -> ReadS NetworkFabricAttributes
$creadsPrec :: Int -> ReadS NetworkFabricAttributes
Prelude.Read, Int -> NetworkFabricAttributes -> ShowS
[NetworkFabricAttributes] -> ShowS
NetworkFabricAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NetworkFabricAttributes] -> ShowS
$cshowList :: [NetworkFabricAttributes] -> ShowS
show :: NetworkFabricAttributes -> String
$cshow :: NetworkFabricAttributes -> String
showsPrec :: Int -> NetworkFabricAttributes -> ShowS
$cshowsPrec :: Int -> NetworkFabricAttributes -> ShowS
Prelude.Show, forall x. Rep NetworkFabricAttributes x -> NetworkFabricAttributes
forall x. NetworkFabricAttributes -> Rep NetworkFabricAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep NetworkFabricAttributes x -> NetworkFabricAttributes
$cfrom :: forall x. NetworkFabricAttributes -> Rep NetworkFabricAttributes x
Prelude.Generic)
newNetworkFabricAttributes ::
NetworkFabricAttributes
newNetworkFabricAttributes :: NetworkFabricAttributes
newNetworkFabricAttributes =
NetworkFabricAttributes'
{ $sel:edition:NetworkFabricAttributes' :: Maybe Edition
edition = forall a. Maybe a
Prelude.Nothing,
$sel:orderingServiceEndpoint:NetworkFabricAttributes' :: Maybe Text
orderingServiceEndpoint = forall a. Maybe a
Prelude.Nothing
}
networkFabricAttributes_edition :: Lens.Lens' NetworkFabricAttributes (Prelude.Maybe Edition)
networkFabricAttributes_edition :: Lens' NetworkFabricAttributes (Maybe Edition)
networkFabricAttributes_edition = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFabricAttributes' {Maybe Edition
edition :: Maybe Edition
$sel:edition:NetworkFabricAttributes' :: NetworkFabricAttributes -> Maybe Edition
edition} -> Maybe Edition
edition) (\s :: NetworkFabricAttributes
s@NetworkFabricAttributes' {} Maybe Edition
a -> NetworkFabricAttributes
s {$sel:edition:NetworkFabricAttributes' :: Maybe Edition
edition = Maybe Edition
a} :: NetworkFabricAttributes)
networkFabricAttributes_orderingServiceEndpoint :: Lens.Lens' NetworkFabricAttributes (Prelude.Maybe Prelude.Text)
networkFabricAttributes_orderingServiceEndpoint :: Lens' NetworkFabricAttributes (Maybe Text)
networkFabricAttributes_orderingServiceEndpoint = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkFabricAttributes' {Maybe Text
orderingServiceEndpoint :: Maybe Text
$sel:orderingServiceEndpoint:NetworkFabricAttributes' :: NetworkFabricAttributes -> Maybe Text
orderingServiceEndpoint} -> Maybe Text
orderingServiceEndpoint) (\s :: NetworkFabricAttributes
s@NetworkFabricAttributes' {} Maybe Text
a -> NetworkFabricAttributes
s {$sel:orderingServiceEndpoint:NetworkFabricAttributes' :: Maybe Text
orderingServiceEndpoint = Maybe Text
a} :: NetworkFabricAttributes)
instance Data.FromJSON NetworkFabricAttributes where
parseJSON :: Value -> Parser NetworkFabricAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"NetworkFabricAttributes"
( \Object
x ->
Maybe Edition -> Maybe Text -> NetworkFabricAttributes
NetworkFabricAttributes'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Edition")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"OrderingServiceEndpoint")
)
instance Prelude.Hashable NetworkFabricAttributes where
hashWithSalt :: Int -> NetworkFabricAttributes -> Int
hashWithSalt Int
_salt NetworkFabricAttributes' {Maybe Text
Maybe Edition
orderingServiceEndpoint :: Maybe Text
edition :: Maybe Edition
$sel:orderingServiceEndpoint:NetworkFabricAttributes' :: NetworkFabricAttributes -> Maybe Text
$sel:edition:NetworkFabricAttributes' :: NetworkFabricAttributes -> Maybe Edition
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Edition
edition
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
orderingServiceEndpoint
instance Prelude.NFData NetworkFabricAttributes where
rnf :: NetworkFabricAttributes -> ()
rnf NetworkFabricAttributes' {Maybe Text
Maybe Edition
orderingServiceEndpoint :: Maybe Text
edition :: Maybe Edition
$sel:orderingServiceEndpoint:NetworkFabricAttributes' :: NetworkFabricAttributes -> Maybe Text
$sel:edition:NetworkFabricAttributes' :: NetworkFabricAttributes -> Maybe Edition
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Edition
edition
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
orderingServiceEndpoint