{-# 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.IoTWireless.UpdateLogLevelsByResourceTypes
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Set default log level, or log levels by resource types. This can be for
-- wireless device log options or wireless gateways log options and is used
-- to control the log messages that\'ll be displayed in CloudWatch.
module Amazonka.IoTWireless.UpdateLogLevelsByResourceTypes
  ( -- * Creating a Request
    UpdateLogLevelsByResourceTypes (..),
    newUpdateLogLevelsByResourceTypes,

    -- * Request Lenses
    updateLogLevelsByResourceTypes_defaultLogLevel,
    updateLogLevelsByResourceTypes_wirelessGatewayLogOptions,
    updateLogLevelsByResourceTypes_wirelessDeviceLogOptions,

    -- * Destructuring the Response
    UpdateLogLevelsByResourceTypesResponse (..),
    newUpdateLogLevelsByResourceTypesResponse,

    -- * Response Lenses
    updateLogLevelsByResourceTypesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoTWireless.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newUpdateLogLevelsByResourceTypes' smart constructor.
data UpdateLogLevelsByResourceTypes = UpdateLogLevelsByResourceTypes'
  { UpdateLogLevelsByResourceTypes -> Maybe LogLevel
defaultLogLevel :: Prelude.Maybe LogLevel,
    UpdateLogLevelsByResourceTypes -> Maybe [WirelessGatewayLogOption]
wirelessGatewayLogOptions :: Prelude.Maybe [WirelessGatewayLogOption],
    UpdateLogLevelsByResourceTypes -> Maybe [WirelessDeviceLogOption]
wirelessDeviceLogOptions :: Prelude.Maybe [WirelessDeviceLogOption]
  }
  deriving (UpdateLogLevelsByResourceTypes
-> UpdateLogLevelsByResourceTypes -> Bool
(UpdateLogLevelsByResourceTypes
 -> UpdateLogLevelsByResourceTypes -> Bool)
-> (UpdateLogLevelsByResourceTypes
    -> UpdateLogLevelsByResourceTypes -> Bool)
-> Eq UpdateLogLevelsByResourceTypes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLogLevelsByResourceTypes
-> UpdateLogLevelsByResourceTypes -> Bool
$c/= :: UpdateLogLevelsByResourceTypes
-> UpdateLogLevelsByResourceTypes -> Bool
== :: UpdateLogLevelsByResourceTypes
-> UpdateLogLevelsByResourceTypes -> Bool
$c== :: UpdateLogLevelsByResourceTypes
-> UpdateLogLevelsByResourceTypes -> Bool
Prelude.Eq, ReadPrec [UpdateLogLevelsByResourceTypes]
ReadPrec UpdateLogLevelsByResourceTypes
Int -> ReadS UpdateLogLevelsByResourceTypes
ReadS [UpdateLogLevelsByResourceTypes]
(Int -> ReadS UpdateLogLevelsByResourceTypes)
-> ReadS [UpdateLogLevelsByResourceTypes]
-> ReadPrec UpdateLogLevelsByResourceTypes
-> ReadPrec [UpdateLogLevelsByResourceTypes]
-> Read UpdateLogLevelsByResourceTypes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLogLevelsByResourceTypes]
$creadListPrec :: ReadPrec [UpdateLogLevelsByResourceTypes]
readPrec :: ReadPrec UpdateLogLevelsByResourceTypes
$creadPrec :: ReadPrec UpdateLogLevelsByResourceTypes
readList :: ReadS [UpdateLogLevelsByResourceTypes]
$creadList :: ReadS [UpdateLogLevelsByResourceTypes]
readsPrec :: Int -> ReadS UpdateLogLevelsByResourceTypes
$creadsPrec :: Int -> ReadS UpdateLogLevelsByResourceTypes
Prelude.Read, Int -> UpdateLogLevelsByResourceTypes -> ShowS
[UpdateLogLevelsByResourceTypes] -> ShowS
UpdateLogLevelsByResourceTypes -> String
(Int -> UpdateLogLevelsByResourceTypes -> ShowS)
-> (UpdateLogLevelsByResourceTypes -> String)
-> ([UpdateLogLevelsByResourceTypes] -> ShowS)
-> Show UpdateLogLevelsByResourceTypes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLogLevelsByResourceTypes] -> ShowS
$cshowList :: [UpdateLogLevelsByResourceTypes] -> ShowS
show :: UpdateLogLevelsByResourceTypes -> String
$cshow :: UpdateLogLevelsByResourceTypes -> String
showsPrec :: Int -> UpdateLogLevelsByResourceTypes -> ShowS
$cshowsPrec :: Int -> UpdateLogLevelsByResourceTypes -> ShowS
Prelude.Show, (forall x.
 UpdateLogLevelsByResourceTypes
 -> Rep UpdateLogLevelsByResourceTypes x)
-> (forall x.
    Rep UpdateLogLevelsByResourceTypes x
    -> UpdateLogLevelsByResourceTypes)
-> Generic UpdateLogLevelsByResourceTypes
forall x.
Rep UpdateLogLevelsByResourceTypes x
-> UpdateLogLevelsByResourceTypes
forall x.
UpdateLogLevelsByResourceTypes
-> Rep UpdateLogLevelsByResourceTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateLogLevelsByResourceTypes x
-> UpdateLogLevelsByResourceTypes
$cfrom :: forall x.
UpdateLogLevelsByResourceTypes
-> Rep UpdateLogLevelsByResourceTypes x
Prelude.Generic)

-- |
-- Create a value of 'UpdateLogLevelsByResourceTypes' 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:
--
-- 'defaultLogLevel', 'updateLogLevelsByResourceTypes_defaultLogLevel' - Undocumented member.
--
-- 'wirelessGatewayLogOptions', 'updateLogLevelsByResourceTypes_wirelessGatewayLogOptions' - Undocumented member.
--
-- 'wirelessDeviceLogOptions', 'updateLogLevelsByResourceTypes_wirelessDeviceLogOptions' - Undocumented member.
newUpdateLogLevelsByResourceTypes ::
  UpdateLogLevelsByResourceTypes
newUpdateLogLevelsByResourceTypes :: UpdateLogLevelsByResourceTypes
newUpdateLogLevelsByResourceTypes =
  UpdateLogLevelsByResourceTypes' :: Maybe LogLevel
-> Maybe [WirelessGatewayLogOption]
-> Maybe [WirelessDeviceLogOption]
-> UpdateLogLevelsByResourceTypes
UpdateLogLevelsByResourceTypes'
    { $sel:defaultLogLevel:UpdateLogLevelsByResourceTypes' :: Maybe LogLevel
defaultLogLevel =
        Maybe LogLevel
forall a. Maybe a
Prelude.Nothing,
      $sel:wirelessGatewayLogOptions:UpdateLogLevelsByResourceTypes' :: Maybe [WirelessGatewayLogOption]
wirelessGatewayLogOptions = Maybe [WirelessGatewayLogOption]
forall a. Maybe a
Prelude.Nothing,
      $sel:wirelessDeviceLogOptions:UpdateLogLevelsByResourceTypes' :: Maybe [WirelessDeviceLogOption]
wirelessDeviceLogOptions = Maybe [WirelessDeviceLogOption]
forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
updateLogLevelsByResourceTypes_defaultLogLevel :: Lens.Lens' UpdateLogLevelsByResourceTypes (Prelude.Maybe LogLevel)
updateLogLevelsByResourceTypes_defaultLogLevel :: (Maybe LogLevel -> f (Maybe LogLevel))
-> UpdateLogLevelsByResourceTypes
-> f UpdateLogLevelsByResourceTypes
updateLogLevelsByResourceTypes_defaultLogLevel = (UpdateLogLevelsByResourceTypes -> Maybe LogLevel)
-> (UpdateLogLevelsByResourceTypes
    -> Maybe LogLevel -> UpdateLogLevelsByResourceTypes)
-> Lens
     UpdateLogLevelsByResourceTypes
     UpdateLogLevelsByResourceTypes
     (Maybe LogLevel)
     (Maybe LogLevel)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLogLevelsByResourceTypes' {Maybe LogLevel
defaultLogLevel :: Maybe LogLevel
$sel:defaultLogLevel:UpdateLogLevelsByResourceTypes' :: UpdateLogLevelsByResourceTypes -> Maybe LogLevel
defaultLogLevel} -> Maybe LogLevel
defaultLogLevel) (\s :: UpdateLogLevelsByResourceTypes
s@UpdateLogLevelsByResourceTypes' {} Maybe LogLevel
a -> UpdateLogLevelsByResourceTypes
s {$sel:defaultLogLevel:UpdateLogLevelsByResourceTypes' :: Maybe LogLevel
defaultLogLevel = Maybe LogLevel
a} :: UpdateLogLevelsByResourceTypes)

-- | Undocumented member.
updateLogLevelsByResourceTypes_wirelessGatewayLogOptions :: Lens.Lens' UpdateLogLevelsByResourceTypes (Prelude.Maybe [WirelessGatewayLogOption])
updateLogLevelsByResourceTypes_wirelessGatewayLogOptions :: (Maybe [WirelessGatewayLogOption]
 -> f (Maybe [WirelessGatewayLogOption]))
-> UpdateLogLevelsByResourceTypes
-> f UpdateLogLevelsByResourceTypes
updateLogLevelsByResourceTypes_wirelessGatewayLogOptions = (UpdateLogLevelsByResourceTypes
 -> Maybe [WirelessGatewayLogOption])
-> (UpdateLogLevelsByResourceTypes
    -> Maybe [WirelessGatewayLogOption]
    -> UpdateLogLevelsByResourceTypes)
-> Lens
     UpdateLogLevelsByResourceTypes
     UpdateLogLevelsByResourceTypes
     (Maybe [WirelessGatewayLogOption])
     (Maybe [WirelessGatewayLogOption])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLogLevelsByResourceTypes' {Maybe [WirelessGatewayLogOption]
wirelessGatewayLogOptions :: Maybe [WirelessGatewayLogOption]
$sel:wirelessGatewayLogOptions:UpdateLogLevelsByResourceTypes' :: UpdateLogLevelsByResourceTypes -> Maybe [WirelessGatewayLogOption]
wirelessGatewayLogOptions} -> Maybe [WirelessGatewayLogOption]
wirelessGatewayLogOptions) (\s :: UpdateLogLevelsByResourceTypes
s@UpdateLogLevelsByResourceTypes' {} Maybe [WirelessGatewayLogOption]
a -> UpdateLogLevelsByResourceTypes
s {$sel:wirelessGatewayLogOptions:UpdateLogLevelsByResourceTypes' :: Maybe [WirelessGatewayLogOption]
wirelessGatewayLogOptions = Maybe [WirelessGatewayLogOption]
a} :: UpdateLogLevelsByResourceTypes) ((Maybe [WirelessGatewayLogOption]
  -> f (Maybe [WirelessGatewayLogOption]))
 -> UpdateLogLevelsByResourceTypes
 -> f UpdateLogLevelsByResourceTypes)
-> ((Maybe [WirelessGatewayLogOption]
     -> f (Maybe [WirelessGatewayLogOption]))
    -> Maybe [WirelessGatewayLogOption]
    -> f (Maybe [WirelessGatewayLogOption]))
-> (Maybe [WirelessGatewayLogOption]
    -> f (Maybe [WirelessGatewayLogOption]))
-> UpdateLogLevelsByResourceTypes
-> f UpdateLogLevelsByResourceTypes
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [WirelessGatewayLogOption]
  [WirelessGatewayLogOption]
  [WirelessGatewayLogOption]
  [WirelessGatewayLogOption]
-> Iso
     (Maybe [WirelessGatewayLogOption])
     (Maybe [WirelessGatewayLogOption])
     (Maybe [WirelessGatewayLogOption])
     (Maybe [WirelessGatewayLogOption])
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 AnIso
  [WirelessGatewayLogOption]
  [WirelessGatewayLogOption]
  [WirelessGatewayLogOption]
  [WirelessGatewayLogOption]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
updateLogLevelsByResourceTypes_wirelessDeviceLogOptions :: Lens.Lens' UpdateLogLevelsByResourceTypes (Prelude.Maybe [WirelessDeviceLogOption])
updateLogLevelsByResourceTypes_wirelessDeviceLogOptions :: (Maybe [WirelessDeviceLogOption]
 -> f (Maybe [WirelessDeviceLogOption]))
-> UpdateLogLevelsByResourceTypes
-> f UpdateLogLevelsByResourceTypes
updateLogLevelsByResourceTypes_wirelessDeviceLogOptions = (UpdateLogLevelsByResourceTypes -> Maybe [WirelessDeviceLogOption])
-> (UpdateLogLevelsByResourceTypes
    -> Maybe [WirelessDeviceLogOption]
    -> UpdateLogLevelsByResourceTypes)
-> Lens
     UpdateLogLevelsByResourceTypes
     UpdateLogLevelsByResourceTypes
     (Maybe [WirelessDeviceLogOption])
     (Maybe [WirelessDeviceLogOption])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLogLevelsByResourceTypes' {Maybe [WirelessDeviceLogOption]
wirelessDeviceLogOptions :: Maybe [WirelessDeviceLogOption]
$sel:wirelessDeviceLogOptions:UpdateLogLevelsByResourceTypes' :: UpdateLogLevelsByResourceTypes -> Maybe [WirelessDeviceLogOption]
wirelessDeviceLogOptions} -> Maybe [WirelessDeviceLogOption]
wirelessDeviceLogOptions) (\s :: UpdateLogLevelsByResourceTypes
s@UpdateLogLevelsByResourceTypes' {} Maybe [WirelessDeviceLogOption]
a -> UpdateLogLevelsByResourceTypes
s {$sel:wirelessDeviceLogOptions:UpdateLogLevelsByResourceTypes' :: Maybe [WirelessDeviceLogOption]
wirelessDeviceLogOptions = Maybe [WirelessDeviceLogOption]
a} :: UpdateLogLevelsByResourceTypes) ((Maybe [WirelessDeviceLogOption]
  -> f (Maybe [WirelessDeviceLogOption]))
 -> UpdateLogLevelsByResourceTypes
 -> f UpdateLogLevelsByResourceTypes)
-> ((Maybe [WirelessDeviceLogOption]
     -> f (Maybe [WirelessDeviceLogOption]))
    -> Maybe [WirelessDeviceLogOption]
    -> f (Maybe [WirelessDeviceLogOption]))
-> (Maybe [WirelessDeviceLogOption]
    -> f (Maybe [WirelessDeviceLogOption]))
-> UpdateLogLevelsByResourceTypes
-> f UpdateLogLevelsByResourceTypes
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [WirelessDeviceLogOption]
  [WirelessDeviceLogOption]
  [WirelessDeviceLogOption]
  [WirelessDeviceLogOption]
-> Iso
     (Maybe [WirelessDeviceLogOption])
     (Maybe [WirelessDeviceLogOption])
     (Maybe [WirelessDeviceLogOption])
     (Maybe [WirelessDeviceLogOption])
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 AnIso
  [WirelessDeviceLogOption]
  [WirelessDeviceLogOption]
  [WirelessDeviceLogOption]
  [WirelessDeviceLogOption]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Core.AWSRequest
    UpdateLogLevelsByResourceTypes
  where
  type
    AWSResponse UpdateLogLevelsByResourceTypes =
      UpdateLogLevelsByResourceTypesResponse
  request :: UpdateLogLevelsByResourceTypes
-> Request UpdateLogLevelsByResourceTypes
request = Service
-> UpdateLogLevelsByResourceTypes
-> Request UpdateLogLevelsByResourceTypes
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateLogLevelsByResourceTypes
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse UpdateLogLevelsByResourceTypes)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse UpdateLogLevelsByResourceTypes))
-> Logger
-> Service
-> Proxy UpdateLogLevelsByResourceTypes
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse UpdateLogLevelsByResourceTypes)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> UpdateLogLevelsByResourceTypesResponse
UpdateLogLevelsByResourceTypesResponse'
            (Int -> UpdateLogLevelsByResourceTypesResponse)
-> Either String Int
-> Either String UpdateLogLevelsByResourceTypesResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    UpdateLogLevelsByResourceTypes

instance
  Prelude.NFData
    UpdateLogLevelsByResourceTypes

instance
  Core.ToHeaders
    UpdateLogLevelsByResourceTypes
  where
  toHeaders :: UpdateLogLevelsByResourceTypes -> ResponseHeaders
toHeaders = ResponseHeaders
-> UpdateLogLevelsByResourceTypes -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToJSON UpdateLogLevelsByResourceTypes where
  toJSON :: UpdateLogLevelsByResourceTypes -> Value
toJSON UpdateLogLevelsByResourceTypes' {Maybe [WirelessDeviceLogOption]
Maybe [WirelessGatewayLogOption]
Maybe LogLevel
wirelessDeviceLogOptions :: Maybe [WirelessDeviceLogOption]
wirelessGatewayLogOptions :: Maybe [WirelessGatewayLogOption]
defaultLogLevel :: Maybe LogLevel
$sel:wirelessDeviceLogOptions:UpdateLogLevelsByResourceTypes' :: UpdateLogLevelsByResourceTypes -> Maybe [WirelessDeviceLogOption]
$sel:wirelessGatewayLogOptions:UpdateLogLevelsByResourceTypes' :: UpdateLogLevelsByResourceTypes -> Maybe [WirelessGatewayLogOption]
$sel:defaultLogLevel:UpdateLogLevelsByResourceTypes' :: UpdateLogLevelsByResourceTypes -> Maybe LogLevel
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"DefaultLogLevel" Text -> LogLevel -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (LogLevel -> Pair) -> Maybe LogLevel -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LogLevel
defaultLogLevel,
            (Text
"WirelessGatewayLogOptions" Text -> [WirelessGatewayLogOption] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([WirelessGatewayLogOption] -> Pair)
-> Maybe [WirelessGatewayLogOption] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [WirelessGatewayLogOption]
wirelessGatewayLogOptions,
            (Text
"WirelessDeviceLogOptions" Text -> [WirelessDeviceLogOption] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([WirelessDeviceLogOption] -> Pair)
-> Maybe [WirelessDeviceLogOption] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [WirelessDeviceLogOption]
wirelessDeviceLogOptions
          ]
      )

instance Core.ToPath UpdateLogLevelsByResourceTypes where
  toPath :: UpdateLogLevelsByResourceTypes -> ByteString
toPath = ByteString -> UpdateLogLevelsByResourceTypes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/log-levels"

instance Core.ToQuery UpdateLogLevelsByResourceTypes where
  toQuery :: UpdateLogLevelsByResourceTypes -> QueryString
toQuery = QueryString -> UpdateLogLevelsByResourceTypes -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newUpdateLogLevelsByResourceTypesResponse' smart constructor.
data UpdateLogLevelsByResourceTypesResponse = UpdateLogLevelsByResourceTypesResponse'
  { -- | The response's http status code.
    UpdateLogLevelsByResourceTypesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateLogLevelsByResourceTypesResponse
-> UpdateLogLevelsByResourceTypesResponse -> Bool
(UpdateLogLevelsByResourceTypesResponse
 -> UpdateLogLevelsByResourceTypesResponse -> Bool)
-> (UpdateLogLevelsByResourceTypesResponse
    -> UpdateLogLevelsByResourceTypesResponse -> Bool)
-> Eq UpdateLogLevelsByResourceTypesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLogLevelsByResourceTypesResponse
-> UpdateLogLevelsByResourceTypesResponse -> Bool
$c/= :: UpdateLogLevelsByResourceTypesResponse
-> UpdateLogLevelsByResourceTypesResponse -> Bool
== :: UpdateLogLevelsByResourceTypesResponse
-> UpdateLogLevelsByResourceTypesResponse -> Bool
$c== :: UpdateLogLevelsByResourceTypesResponse
-> UpdateLogLevelsByResourceTypesResponse -> Bool
Prelude.Eq, ReadPrec [UpdateLogLevelsByResourceTypesResponse]
ReadPrec UpdateLogLevelsByResourceTypesResponse
Int -> ReadS UpdateLogLevelsByResourceTypesResponse
ReadS [UpdateLogLevelsByResourceTypesResponse]
(Int -> ReadS UpdateLogLevelsByResourceTypesResponse)
-> ReadS [UpdateLogLevelsByResourceTypesResponse]
-> ReadPrec UpdateLogLevelsByResourceTypesResponse
-> ReadPrec [UpdateLogLevelsByResourceTypesResponse]
-> Read UpdateLogLevelsByResourceTypesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLogLevelsByResourceTypesResponse]
$creadListPrec :: ReadPrec [UpdateLogLevelsByResourceTypesResponse]
readPrec :: ReadPrec UpdateLogLevelsByResourceTypesResponse
$creadPrec :: ReadPrec UpdateLogLevelsByResourceTypesResponse
readList :: ReadS [UpdateLogLevelsByResourceTypesResponse]
$creadList :: ReadS [UpdateLogLevelsByResourceTypesResponse]
readsPrec :: Int -> ReadS UpdateLogLevelsByResourceTypesResponse
$creadsPrec :: Int -> ReadS UpdateLogLevelsByResourceTypesResponse
Prelude.Read, Int -> UpdateLogLevelsByResourceTypesResponse -> ShowS
[UpdateLogLevelsByResourceTypesResponse] -> ShowS
UpdateLogLevelsByResourceTypesResponse -> String
(Int -> UpdateLogLevelsByResourceTypesResponse -> ShowS)
-> (UpdateLogLevelsByResourceTypesResponse -> String)
-> ([UpdateLogLevelsByResourceTypesResponse] -> ShowS)
-> Show UpdateLogLevelsByResourceTypesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLogLevelsByResourceTypesResponse] -> ShowS
$cshowList :: [UpdateLogLevelsByResourceTypesResponse] -> ShowS
show :: UpdateLogLevelsByResourceTypesResponse -> String
$cshow :: UpdateLogLevelsByResourceTypesResponse -> String
showsPrec :: Int -> UpdateLogLevelsByResourceTypesResponse -> ShowS
$cshowsPrec :: Int -> UpdateLogLevelsByResourceTypesResponse -> ShowS
Prelude.Show, (forall x.
 UpdateLogLevelsByResourceTypesResponse
 -> Rep UpdateLogLevelsByResourceTypesResponse x)
-> (forall x.
    Rep UpdateLogLevelsByResourceTypesResponse x
    -> UpdateLogLevelsByResourceTypesResponse)
-> Generic UpdateLogLevelsByResourceTypesResponse
forall x.
Rep UpdateLogLevelsByResourceTypesResponse x
-> UpdateLogLevelsByResourceTypesResponse
forall x.
UpdateLogLevelsByResourceTypesResponse
-> Rep UpdateLogLevelsByResourceTypesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateLogLevelsByResourceTypesResponse x
-> UpdateLogLevelsByResourceTypesResponse
$cfrom :: forall x.
UpdateLogLevelsByResourceTypesResponse
-> Rep UpdateLogLevelsByResourceTypesResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateLogLevelsByResourceTypesResponse' 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:
--
-- 'httpStatus', 'updateLogLevelsByResourceTypesResponse_httpStatus' - The response's http status code.
newUpdateLogLevelsByResourceTypesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateLogLevelsByResourceTypesResponse
newUpdateLogLevelsByResourceTypesResponse :: Int -> UpdateLogLevelsByResourceTypesResponse
newUpdateLogLevelsByResourceTypesResponse
  Int
pHttpStatus_ =
    UpdateLogLevelsByResourceTypesResponse' :: Int -> UpdateLogLevelsByResourceTypesResponse
UpdateLogLevelsByResourceTypesResponse'
      { $sel:httpStatus:UpdateLogLevelsByResourceTypesResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | The response's http status code.
updateLogLevelsByResourceTypesResponse_httpStatus :: Lens.Lens' UpdateLogLevelsByResourceTypesResponse Prelude.Int
updateLogLevelsByResourceTypesResponse_httpStatus :: (Int -> f Int)
-> UpdateLogLevelsByResourceTypesResponse
-> f UpdateLogLevelsByResourceTypesResponse
updateLogLevelsByResourceTypesResponse_httpStatus = (UpdateLogLevelsByResourceTypesResponse -> Int)
-> (UpdateLogLevelsByResourceTypesResponse
    -> Int -> UpdateLogLevelsByResourceTypesResponse)
-> Lens
     UpdateLogLevelsByResourceTypesResponse
     UpdateLogLevelsByResourceTypesResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLogLevelsByResourceTypesResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateLogLevelsByResourceTypesResponse' :: UpdateLogLevelsByResourceTypesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateLogLevelsByResourceTypesResponse
s@UpdateLogLevelsByResourceTypesResponse' {} Int
a -> UpdateLogLevelsByResourceTypesResponse
s {$sel:httpStatus:UpdateLogLevelsByResourceTypesResponse' :: Int
httpStatus = Int
a} :: UpdateLogLevelsByResourceTypesResponse)

instance
  Prelude.NFData
    UpdateLogLevelsByResourceTypesResponse