{-# 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.LoggingInfo -- 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.LoggingInfo 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.BrokerLogs import qualified Amazonka.Prelude as Prelude -- | /See:/ 'newLoggingInfo' smart constructor. data LoggingInfo = LoggingInfo' { brokerLogs :: BrokerLogs } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'LoggingInfo' 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: -- -- 'brokerLogs', 'loggingInfo_brokerLogs' - Undocumented member. newLoggingInfo :: -- | 'brokerLogs' BrokerLogs -> LoggingInfo newLoggingInfo pBrokerLogs_ = LoggingInfo' {brokerLogs = pBrokerLogs_} -- | Undocumented member. loggingInfo_brokerLogs :: Lens.Lens' LoggingInfo BrokerLogs loggingInfo_brokerLogs = Lens.lens (\LoggingInfo' {brokerLogs} -> brokerLogs) (\s@LoggingInfo' {} a -> s {brokerLogs = a} :: LoggingInfo) instance Data.FromJSON LoggingInfo where parseJSON = Data.withObject "LoggingInfo" ( \x -> LoggingInfo' Prelude.<$> (x Data..: "brokerLogs") ) instance Prelude.Hashable LoggingInfo where hashWithSalt _salt LoggingInfo' {..} = _salt `Prelude.hashWithSalt` brokerLogs instance Prelude.NFData LoggingInfo where rnf LoggingInfo' {..} = Prelude.rnf brokerLogs instance Data.ToJSON LoggingInfo where toJSON LoggingInfo' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("brokerLogs" Data..= brokerLogs)] )