{-# 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.Kafka.Types.StorageInfo -- 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.Kafka.Types.StorageInfo where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.Kafka.Types.EBSStorageInfo import qualified Amazonka.Prelude as Prelude -- | Contains information about storage volumes attached to MSK broker nodes. -- -- /See:/ 'newStorageInfo' smart constructor. data StorageInfo = StorageInfo' { -- | EBS volume information. ebsStorageInfo :: Prelude.Maybe EBSStorageInfo } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'StorageInfo' 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: -- -- 'ebsStorageInfo', 'storageInfo_ebsStorageInfo' - EBS volume information. newStorageInfo :: StorageInfo newStorageInfo = StorageInfo' {ebsStorageInfo = Prelude.Nothing} -- | EBS volume information. storageInfo_ebsStorageInfo :: Lens.Lens' StorageInfo (Prelude.Maybe EBSStorageInfo) storageInfo_ebsStorageInfo = Lens.lens (\StorageInfo' {ebsStorageInfo} -> ebsStorageInfo) (\s@StorageInfo' {} a -> s {ebsStorageInfo = a} :: StorageInfo) instance Data.FromJSON StorageInfo where parseJSON = Data.withObject "StorageInfo" ( \x -> StorageInfo' Prelude.<$> (x Data..:? "ebsStorageInfo") ) instance Prelude.Hashable StorageInfo where hashWithSalt _salt StorageInfo' {..} = _salt `Prelude.hashWithSalt` ebsStorageInfo instance Prelude.NFData StorageInfo where rnf StorageInfo' {..} = Prelude.rnf ebsStorageInfo instance Data.ToJSON StorageInfo where toJSON StorageInfo' {..} = Data.object ( Prelude.catMaybes [ ("ebsStorageInfo" Data..=) Prelude.<$> ebsStorageInfo ] )