{-# 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.NetworkSummary -- 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.NetworkSummary 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.NetworkStatus import qualified Amazonka.Prelude as Prelude -- | A summary of network configuration properties. -- -- /See:/ 'newNetworkSummary' smart constructor. data NetworkSummary = NetworkSummary' { -- | The Amazon Resource Name (ARN) of the network. For more information -- about ARNs and their format, see -- -- in the /Amazon Web Services General Reference/. arn :: Prelude.Maybe Prelude.Text, -- | The date and time that the network was created. creationDate :: Prelude.Maybe Data.ISO8601, -- | An optional description of the network. description :: Prelude.Maybe Prelude.Text, -- | The blockchain framework that the network uses. framework :: Prelude.Maybe Framework, -- | The version of the blockchain framework that the network uses. frameworkVersion :: Prelude.Maybe Prelude.Text, -- | The unique identifier of the network. id :: Prelude.Maybe Prelude.Text, -- | The name of the network. name :: Prelude.Maybe Prelude.Text, -- | The current status of the network. status :: Prelude.Maybe NetworkStatus } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'NetworkSummary' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'arn', 'networkSummary_arn' - The Amazon Resource Name (ARN) of the network. For more information -- about ARNs and their format, see -- -- in the /Amazon Web Services General Reference/. -- -- 'creationDate', 'networkSummary_creationDate' - The date and time that the network was created. -- -- 'description', 'networkSummary_description' - An optional description of the network. -- -- 'framework', 'networkSummary_framework' - The blockchain framework that the network uses. -- -- 'frameworkVersion', 'networkSummary_frameworkVersion' - The version of the blockchain framework that the network uses. -- -- 'id', 'networkSummary_id' - The unique identifier of the network. -- -- 'name', 'networkSummary_name' - The name of the network. -- -- 'status', 'networkSummary_status' - The current status of the network. newNetworkSummary :: NetworkSummary newNetworkSummary = NetworkSummary' { arn = Prelude.Nothing, creationDate = Prelude.Nothing, description = Prelude.Nothing, framework = Prelude.Nothing, frameworkVersion = Prelude.Nothing, id = Prelude.Nothing, name = Prelude.Nothing, status = Prelude.Nothing } -- | The Amazon Resource Name (ARN) of the network. For more information -- about ARNs and their format, see -- -- in the /Amazon Web Services General Reference/. networkSummary_arn :: Lens.Lens' NetworkSummary (Prelude.Maybe Prelude.Text) networkSummary_arn = Lens.lens (\NetworkSummary' {arn} -> arn) (\s@NetworkSummary' {} a -> s {arn = a} :: NetworkSummary) -- | The date and time that the network was created. networkSummary_creationDate :: Lens.Lens' NetworkSummary (Prelude.Maybe Prelude.UTCTime) networkSummary_creationDate = Lens.lens (\NetworkSummary' {creationDate} -> creationDate) (\s@NetworkSummary' {} a -> s {creationDate = a} :: NetworkSummary) Prelude.. Lens.mapping Data._Time -- | An optional description of the network. networkSummary_description :: Lens.Lens' NetworkSummary (Prelude.Maybe Prelude.Text) networkSummary_description = Lens.lens (\NetworkSummary' {description} -> description) (\s@NetworkSummary' {} a -> s {description = a} :: NetworkSummary) -- | The blockchain framework that the network uses. networkSummary_framework :: Lens.Lens' NetworkSummary (Prelude.Maybe Framework) networkSummary_framework = Lens.lens (\NetworkSummary' {framework} -> framework) (\s@NetworkSummary' {} a -> s {framework = a} :: NetworkSummary) -- | The version of the blockchain framework that the network uses. networkSummary_frameworkVersion :: Lens.Lens' NetworkSummary (Prelude.Maybe Prelude.Text) networkSummary_frameworkVersion = Lens.lens (\NetworkSummary' {frameworkVersion} -> frameworkVersion) (\s@NetworkSummary' {} a -> s {frameworkVersion = a} :: NetworkSummary) -- | The unique identifier of the network. networkSummary_id :: Lens.Lens' NetworkSummary (Prelude.Maybe Prelude.Text) networkSummary_id = Lens.lens (\NetworkSummary' {id} -> id) (\s@NetworkSummary' {} a -> s {id = a} :: NetworkSummary) -- | The name of the network. networkSummary_name :: Lens.Lens' NetworkSummary (Prelude.Maybe Prelude.Text) networkSummary_name = Lens.lens (\NetworkSummary' {name} -> name) (\s@NetworkSummary' {} a -> s {name = a} :: NetworkSummary) -- | The current status of the network. networkSummary_status :: Lens.Lens' NetworkSummary (Prelude.Maybe NetworkStatus) networkSummary_status = Lens.lens (\NetworkSummary' {status} -> status) (\s@NetworkSummary' {} a -> s {status = a} :: NetworkSummary) instance Data.FromJSON NetworkSummary where parseJSON = Data.withObject "NetworkSummary" ( \x -> NetworkSummary' Prelude.<$> (x Data..:? "Arn") Prelude.<*> (x Data..:? "CreationDate") Prelude.<*> (x Data..:? "Description") Prelude.<*> (x Data..:? "Framework") Prelude.<*> (x Data..:? "FrameworkVersion") Prelude.<*> (x Data..:? "Id") Prelude.<*> (x Data..:? "Name") Prelude.<*> (x Data..:? "Status") ) instance Prelude.Hashable NetworkSummary where hashWithSalt _salt NetworkSummary' {..} = _salt `Prelude.hashWithSalt` arn `Prelude.hashWithSalt` creationDate `Prelude.hashWithSalt` description `Prelude.hashWithSalt` framework `Prelude.hashWithSalt` frameworkVersion `Prelude.hashWithSalt` id `Prelude.hashWithSalt` name `Prelude.hashWithSalt` status instance Prelude.NFData NetworkSummary where rnf NetworkSummary' {..} = Prelude.rnf arn `Prelude.seq` Prelude.rnf creationDate `Prelude.seq` Prelude.rnf description `Prelude.seq` Prelude.rnf framework `Prelude.seq` Prelude.rnf frameworkVersion `Prelude.seq` Prelude.rnf id `Prelude.seq` Prelude.rnf name `Prelude.seq` Prelude.rnf status