{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ManagedBlockChain.Types.Network
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ManagedBlockChain.Types.Network 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.Framework
import Amazonka.ManagedBlockChain.Types.NetworkFrameworkAttributes
import Amazonka.ManagedBlockChain.Types.NetworkStatus
import Amazonka.ManagedBlockChain.Types.VotingPolicy
import qualified Amazonka.Prelude as Prelude

-- | Network configuration properties.
--
-- /See:/ 'newNetwork' smart constructor.
data Network = Network'
  { -- | The Amazon Resource Name (ARN) of the network. For more information
    -- about ARNs and their format, see
    -- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs)>
    -- in the /Amazon Web Services General Reference/.
    Network -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The date and time that the network was created.
    Network -> Maybe ISO8601
creationDate :: Prelude.Maybe Data.ISO8601,
    -- | Attributes of the blockchain framework for the network.
    Network -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The blockchain framework that the network uses.
    Network -> Maybe Framework
framework :: Prelude.Maybe Framework,
    -- | Attributes of the blockchain framework that the network uses.
    Network -> Maybe NetworkFrameworkAttributes
frameworkAttributes :: Prelude.Maybe NetworkFrameworkAttributes,
    -- | The version of the blockchain framework that the network uses.
    Network -> Maybe Text
frameworkVersion :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier of the network.
    Network -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The name of the network.
    Network -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The current status of the network.
    Network -> Maybe NetworkStatus
status :: Prelude.Maybe NetworkStatus,
    -- | Tags assigned to the network. Each tag consists of a key and optional
    -- value.
    --
    -- For more information about tags, see
    -- <https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html Tagging Resources>
    -- in the /Amazon Managed Blockchain Ethereum Developer Guide/, or
    -- <https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html Tagging Resources>
    -- in the /Amazon Managed Blockchain Hyperledger Fabric Developer Guide/.
    Network -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The voting rules for the network to decide if a proposal is accepted.
    Network -> Maybe VotingPolicy
votingPolicy :: Prelude.Maybe VotingPolicy,
    -- | The VPC endpoint service name of the VPC endpoint service of the
    -- network. Members use the VPC endpoint service name to create a VPC
    -- endpoint to access network resources.
    Network -> Maybe Text
vpcEndpointServiceName :: Prelude.Maybe Prelude.Text
  }
  deriving (Network -> Network -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Network -> Network -> Bool
$c/= :: Network -> Network -> Bool
== :: Network -> Network -> Bool
$c== :: Network -> Network -> Bool
Prelude.Eq, ReadPrec [Network]
ReadPrec Network
Int -> ReadS Network
ReadS [Network]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Network]
$creadListPrec :: ReadPrec [Network]
readPrec :: ReadPrec Network
$creadPrec :: ReadPrec Network
readList :: ReadS [Network]
$creadList :: ReadS [Network]
readsPrec :: Int -> ReadS Network
$creadsPrec :: Int -> ReadS Network
Prelude.Read, Int -> Network -> ShowS
[Network] -> ShowS
Network -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Network] -> ShowS
$cshowList :: [Network] -> ShowS
show :: Network -> String
$cshow :: Network -> String
showsPrec :: Int -> Network -> ShowS
$cshowsPrec :: Int -> Network -> ShowS
Prelude.Show, forall x. Rep Network x -> Network
forall x. Network -> Rep Network x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Network x -> Network
$cfrom :: forall x. Network -> Rep Network x
Prelude.Generic)

-- |
-- Create a value of 'Network' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'arn', 'network_arn' - The Amazon Resource Name (ARN) of the network. For more information
-- about ARNs and their format, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs)>
-- in the /Amazon Web Services General Reference/.
--
-- 'creationDate', 'network_creationDate' - The date and time that the network was created.
--
-- 'description', 'network_description' - Attributes of the blockchain framework for the network.
--
-- 'framework', 'network_framework' - The blockchain framework that the network uses.
--
-- 'frameworkAttributes', 'network_frameworkAttributes' - Attributes of the blockchain framework that the network uses.
--
-- 'frameworkVersion', 'network_frameworkVersion' - The version of the blockchain framework that the network uses.
--
-- 'id', 'network_id' - The unique identifier of the network.
--
-- 'name', 'network_name' - The name of the network.
--
-- 'status', 'network_status' - The current status of the network.
--
-- 'tags', 'network_tags' - Tags assigned to the network. Each tag consists of a key and optional
-- value.
--
-- For more information about tags, see
-- <https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html Tagging Resources>
-- in the /Amazon Managed Blockchain Ethereum Developer Guide/, or
-- <https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html Tagging Resources>
-- in the /Amazon Managed Blockchain Hyperledger Fabric Developer Guide/.
--
-- 'votingPolicy', 'network_votingPolicy' - The voting rules for the network to decide if a proposal is accepted.
--
-- 'vpcEndpointServiceName', 'network_vpcEndpointServiceName' - The VPC endpoint service name of the VPC endpoint service of the
-- network. Members use the VPC endpoint service name to create a VPC
-- endpoint to access network resources.
newNetwork ::
  Network
newNetwork :: Network
newNetwork =
  Network'
    { $sel:arn:Network' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:Network' :: Maybe ISO8601
creationDate = forall a. Maybe a
Prelude.Nothing,
      $sel:description:Network' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:framework:Network' :: Maybe Framework
framework = forall a. Maybe a
Prelude.Nothing,
      $sel:frameworkAttributes:Network' :: Maybe NetworkFrameworkAttributes
frameworkAttributes = forall a. Maybe a
Prelude.Nothing,
      $sel:frameworkVersion:Network' :: Maybe Text
frameworkVersion = forall a. Maybe a
Prelude.Nothing,
      $sel:id:Network' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:name:Network' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:status:Network' :: Maybe NetworkStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:Network' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:votingPolicy:Network' :: Maybe VotingPolicy
votingPolicy = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcEndpointServiceName:Network' :: Maybe Text
vpcEndpointServiceName = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the network. For more information
-- about ARNs and their format, see
-- <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs)>
-- in the /Amazon Web Services General Reference/.
network_arn :: Lens.Lens' Network (Prelude.Maybe Prelude.Text)
network_arn :: Lens' Network (Maybe Text)
network_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe Text
arn :: Maybe Text
$sel:arn:Network' :: Network -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Network
s@Network' {} Maybe Text
a -> Network
s {$sel:arn:Network' :: Maybe Text
arn = Maybe Text
a} :: Network)

-- | The date and time that the network was created.
network_creationDate :: Lens.Lens' Network (Prelude.Maybe Prelude.UTCTime)
network_creationDate :: Lens' Network (Maybe UTCTime)
network_creationDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe ISO8601
creationDate :: Maybe ISO8601
$sel:creationDate:Network' :: Network -> Maybe ISO8601
creationDate} -> Maybe ISO8601
creationDate) (\s :: Network
s@Network' {} Maybe ISO8601
a -> Network
s {$sel:creationDate:Network' :: Maybe ISO8601
creationDate = Maybe ISO8601
a} :: Network) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Attributes of the blockchain framework for the network.
network_description :: Lens.Lens' Network (Prelude.Maybe Prelude.Text)
network_description :: Lens' Network (Maybe Text)
network_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe Text
description :: Maybe Text
$sel:description:Network' :: Network -> Maybe Text
description} -> Maybe Text
description) (\s :: Network
s@Network' {} Maybe Text
a -> Network
s {$sel:description:Network' :: Maybe Text
description = Maybe Text
a} :: Network)

-- | The blockchain framework that the network uses.
network_framework :: Lens.Lens' Network (Prelude.Maybe Framework)
network_framework :: Lens' Network (Maybe Framework)
network_framework = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe Framework
framework :: Maybe Framework
$sel:framework:Network' :: Network -> Maybe Framework
framework} -> Maybe Framework
framework) (\s :: Network
s@Network' {} Maybe Framework
a -> Network
s {$sel:framework:Network' :: Maybe Framework
framework = Maybe Framework
a} :: Network)

-- | Attributes of the blockchain framework that the network uses.
network_frameworkAttributes :: Lens.Lens' Network (Prelude.Maybe NetworkFrameworkAttributes)
network_frameworkAttributes :: Lens' Network (Maybe NetworkFrameworkAttributes)
network_frameworkAttributes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe NetworkFrameworkAttributes
frameworkAttributes :: Maybe NetworkFrameworkAttributes
$sel:frameworkAttributes:Network' :: Network -> Maybe NetworkFrameworkAttributes
frameworkAttributes} -> Maybe NetworkFrameworkAttributes
frameworkAttributes) (\s :: Network
s@Network' {} Maybe NetworkFrameworkAttributes
a -> Network
s {$sel:frameworkAttributes:Network' :: Maybe NetworkFrameworkAttributes
frameworkAttributes = Maybe NetworkFrameworkAttributes
a} :: Network)

-- | The version of the blockchain framework that the network uses.
network_frameworkVersion :: Lens.Lens' Network (Prelude.Maybe Prelude.Text)
network_frameworkVersion :: Lens' Network (Maybe Text)
network_frameworkVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe Text
frameworkVersion :: Maybe Text
$sel:frameworkVersion:Network' :: Network -> Maybe Text
frameworkVersion} -> Maybe Text
frameworkVersion) (\s :: Network
s@Network' {} Maybe Text
a -> Network
s {$sel:frameworkVersion:Network' :: Maybe Text
frameworkVersion = Maybe Text
a} :: Network)

-- | The unique identifier of the network.
network_id :: Lens.Lens' Network (Prelude.Maybe Prelude.Text)
network_id :: Lens' Network (Maybe Text)
network_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe Text
id :: Maybe Text
$sel:id:Network' :: Network -> Maybe Text
id} -> Maybe Text
id) (\s :: Network
s@Network' {} Maybe Text
a -> Network
s {$sel:id:Network' :: Maybe Text
id = Maybe Text
a} :: Network)

-- | The name of the network.
network_name :: Lens.Lens' Network (Prelude.Maybe Prelude.Text)
network_name :: Lens' Network (Maybe Text)
network_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe Text
name :: Maybe Text
$sel:name:Network' :: Network -> Maybe Text
name} -> Maybe Text
name) (\s :: Network
s@Network' {} Maybe Text
a -> Network
s {$sel:name:Network' :: Maybe Text
name = Maybe Text
a} :: Network)

-- | The current status of the network.
network_status :: Lens.Lens' Network (Prelude.Maybe NetworkStatus)
network_status :: Lens' Network (Maybe NetworkStatus)
network_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe NetworkStatus
status :: Maybe NetworkStatus
$sel:status:Network' :: Network -> Maybe NetworkStatus
status} -> Maybe NetworkStatus
status) (\s :: Network
s@Network' {} Maybe NetworkStatus
a -> Network
s {$sel:status:Network' :: Maybe NetworkStatus
status = Maybe NetworkStatus
a} :: Network)

-- | Tags assigned to the network. Each tag consists of a key and optional
-- value.
--
-- For more information about tags, see
-- <https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html Tagging Resources>
-- in the /Amazon Managed Blockchain Ethereum Developer Guide/, or
-- <https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html Tagging Resources>
-- in the /Amazon Managed Blockchain Hyperledger Fabric Developer Guide/.
network_tags :: Lens.Lens' Network (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
network_tags :: Lens' Network (Maybe (HashMap Text Text))
network_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Network' :: Network -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Network
s@Network' {} Maybe (HashMap Text Text)
a -> Network
s {$sel:tags:Network' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: Network) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The voting rules for the network to decide if a proposal is accepted.
network_votingPolicy :: Lens.Lens' Network (Prelude.Maybe VotingPolicy)
network_votingPolicy :: Lens' Network (Maybe VotingPolicy)
network_votingPolicy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe VotingPolicy
votingPolicy :: Maybe VotingPolicy
$sel:votingPolicy:Network' :: Network -> Maybe VotingPolicy
votingPolicy} -> Maybe VotingPolicy
votingPolicy) (\s :: Network
s@Network' {} Maybe VotingPolicy
a -> Network
s {$sel:votingPolicy:Network' :: Maybe VotingPolicy
votingPolicy = Maybe VotingPolicy
a} :: Network)

-- | The VPC endpoint service name of the VPC endpoint service of the
-- network. Members use the VPC endpoint service name to create a VPC
-- endpoint to access network resources.
network_vpcEndpointServiceName :: Lens.Lens' Network (Prelude.Maybe Prelude.Text)
network_vpcEndpointServiceName :: Lens' Network (Maybe Text)
network_vpcEndpointServiceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Network' {Maybe Text
vpcEndpointServiceName :: Maybe Text
$sel:vpcEndpointServiceName:Network' :: Network -> Maybe Text
vpcEndpointServiceName} -> Maybe Text
vpcEndpointServiceName) (\s :: Network
s@Network' {} Maybe Text
a -> Network
s {$sel:vpcEndpointServiceName:Network' :: Maybe Text
vpcEndpointServiceName = Maybe Text
a} :: Network)

instance Data.FromJSON Network where
  parseJSON :: Value -> Parser Network
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Network"
      ( \Object
x ->
          Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Framework
-> Maybe NetworkFrameworkAttributes
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe NetworkStatus
-> Maybe (HashMap Text Text)
-> Maybe VotingPolicy
-> Maybe Text
-> Network
Network'
            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
"Arn")
            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
"CreationDate")
            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
"Description")
            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
"Framework")
            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
"FrameworkAttributes")
            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
"FrameworkVersion")
            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
"Id")
            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
"Name")
            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
"Status")
            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
"Tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            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
"VotingPolicy")
            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
"VpcEndpointServiceName")
      )

instance Prelude.Hashable Network where
  hashWithSalt :: Int -> Network -> Int
hashWithSalt Int
_salt Network' {Maybe Text
Maybe (HashMap Text Text)
Maybe ISO8601
Maybe Framework
Maybe NetworkFrameworkAttributes
Maybe NetworkStatus
Maybe VotingPolicy
vpcEndpointServiceName :: Maybe Text
votingPolicy :: Maybe VotingPolicy
tags :: Maybe (HashMap Text Text)
status :: Maybe NetworkStatus
name :: Maybe Text
id :: Maybe Text
frameworkVersion :: Maybe Text
frameworkAttributes :: Maybe NetworkFrameworkAttributes
framework :: Maybe Framework
description :: Maybe Text
creationDate :: Maybe ISO8601
arn :: Maybe Text
$sel:vpcEndpointServiceName:Network' :: Network -> Maybe Text
$sel:votingPolicy:Network' :: Network -> Maybe VotingPolicy
$sel:tags:Network' :: Network -> Maybe (HashMap Text Text)
$sel:status:Network' :: Network -> Maybe NetworkStatus
$sel:name:Network' :: Network -> Maybe Text
$sel:id:Network' :: Network -> Maybe Text
$sel:frameworkVersion:Network' :: Network -> Maybe Text
$sel:frameworkAttributes:Network' :: Network -> Maybe NetworkFrameworkAttributes
$sel:framework:Network' :: Network -> Maybe Framework
$sel:description:Network' :: Network -> Maybe Text
$sel:creationDate:Network' :: Network -> Maybe ISO8601
$sel:arn:Network' :: Network -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
creationDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Framework
framework
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe NetworkFrameworkAttributes
frameworkAttributes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
frameworkVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe NetworkStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VotingPolicy
votingPolicy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcEndpointServiceName

instance Prelude.NFData Network where
  rnf :: Network -> ()
rnf Network' {Maybe Text
Maybe (HashMap Text Text)
Maybe ISO8601
Maybe Framework
Maybe NetworkFrameworkAttributes
Maybe NetworkStatus
Maybe VotingPolicy
vpcEndpointServiceName :: Maybe Text
votingPolicy :: Maybe VotingPolicy
tags :: Maybe (HashMap Text Text)
status :: Maybe NetworkStatus
name :: Maybe Text
id :: Maybe Text
frameworkVersion :: Maybe Text
frameworkAttributes :: Maybe NetworkFrameworkAttributes
framework :: Maybe Framework
description :: Maybe Text
creationDate :: Maybe ISO8601
arn :: Maybe Text
$sel:vpcEndpointServiceName:Network' :: Network -> Maybe Text
$sel:votingPolicy:Network' :: Network -> Maybe VotingPolicy
$sel:tags:Network' :: Network -> Maybe (HashMap Text Text)
$sel:status:Network' :: Network -> Maybe NetworkStatus
$sel:name:Network' :: Network -> Maybe Text
$sel:id:Network' :: Network -> Maybe Text
$sel:frameworkVersion:Network' :: Network -> Maybe Text
$sel:frameworkAttributes:Network' :: Network -> Maybe NetworkFrameworkAttributes
$sel:framework:Network' :: Network -> Maybe Framework
$sel:description:Network' :: Network -> Maybe Text
$sel:creationDate:Network' :: Network -> Maybe ISO8601
$sel:arn:Network' :: Network -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
creationDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Framework
framework
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe NetworkFrameworkAttributes
frameworkAttributes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
frameworkVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe NetworkStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VotingPolicy
votingPolicy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcEndpointServiceName