{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.ChimeSdkVoice.UpdateGlobalSettings -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- -- | Undocumented operation. module Amazonka.ChimeSdkVoice.UpdateGlobalSettings ( -- * Creating a Request UpdateGlobalSettings (..), newUpdateGlobalSettings, -- * Request Lenses updateGlobalSettings_voiceConnector, -- * Destructuring the Response UpdateGlobalSettingsResponse (..), newUpdateGlobalSettingsResponse, ) where import Amazonka.ChimeSdkVoice.Types import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude import qualified Amazonka.Request as Request import qualified Amazonka.Response as Response -- | /See:/ 'newUpdateGlobalSettings' smart constructor. data UpdateGlobalSettings = UpdateGlobalSettings' { voiceConnector :: Prelude.Maybe VoiceConnectorSettings } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'UpdateGlobalSettings' 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: -- -- 'voiceConnector', 'updateGlobalSettings_voiceConnector' - Undocumented member. newUpdateGlobalSettings :: UpdateGlobalSettings newUpdateGlobalSettings = UpdateGlobalSettings' { voiceConnector = Prelude.Nothing } -- | Undocumented member. updateGlobalSettings_voiceConnector :: Lens.Lens' UpdateGlobalSettings (Prelude.Maybe VoiceConnectorSettings) updateGlobalSettings_voiceConnector = Lens.lens (\UpdateGlobalSettings' {voiceConnector} -> voiceConnector) (\s@UpdateGlobalSettings' {} a -> s {voiceConnector = a} :: UpdateGlobalSettings) instance Core.AWSRequest UpdateGlobalSettings where type AWSResponse UpdateGlobalSettings = UpdateGlobalSettingsResponse request overrides = Request.putJSON (overrides defaultService) response = Response.receiveNull UpdateGlobalSettingsResponse' instance Prelude.Hashable UpdateGlobalSettings where hashWithSalt _salt UpdateGlobalSettings' {..} = _salt `Prelude.hashWithSalt` voiceConnector instance Prelude.NFData UpdateGlobalSettings where rnf UpdateGlobalSettings' {..} = Prelude.rnf voiceConnector instance Data.ToHeaders UpdateGlobalSettings where toHeaders = Prelude.const Prelude.mempty instance Data.ToJSON UpdateGlobalSettings where toJSON UpdateGlobalSettings' {..} = Data.object ( Prelude.catMaybes [ ("VoiceConnector" Data..=) Prelude.<$> voiceConnector ] ) instance Data.ToPath UpdateGlobalSettings where toPath = Prelude.const "/settings" instance Data.ToQuery UpdateGlobalSettings where toQuery = Prelude.const Prelude.mempty -- | /See:/ 'newUpdateGlobalSettingsResponse' smart constructor. data UpdateGlobalSettingsResponse = UpdateGlobalSettingsResponse' { } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'UpdateGlobalSettingsResponse' with all optional fields omitted. -- -- Use or to modify other optional fields. newUpdateGlobalSettingsResponse :: UpdateGlobalSettingsResponse newUpdateGlobalSettingsResponse = UpdateGlobalSettingsResponse' instance Prelude.NFData UpdateGlobalSettingsResponse where rnf _ = ()