{-# 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.Discovery.StartDataCollectionByAgentIds
-- 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)
--
-- Instructs the specified agents or connectors to start collecting data.
module Amazonka.Discovery.StartDataCollectionByAgentIds
  ( -- * Creating a Request
    StartDataCollectionByAgentIds (..),
    newStartDataCollectionByAgentIds,

    -- * Request Lenses
    startDataCollectionByAgentIds_agentIds,

    -- * Destructuring the Response
    StartDataCollectionByAgentIdsResponse (..),
    newStartDataCollectionByAgentIdsResponse,

    -- * Response Lenses
    startDataCollectionByAgentIdsResponse_agentsConfigurationStatus,
    startDataCollectionByAgentIdsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Discovery.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:/ 'newStartDataCollectionByAgentIds' smart constructor.
data StartDataCollectionByAgentIds = StartDataCollectionByAgentIds'
  { -- | The IDs of the agents or connectors from which to start collecting data.
    -- If you send a request to an agent\/connector ID that you do not have
    -- permission to contact, according to your AWS account, the service does
    -- not throw an exception. Instead, it returns the error in the
    -- /Description/ field. If you send a request to multiple
    -- agents\/connectors and you do not have permission to contact some of
    -- those agents\/connectors, the system does not throw an exception.
    -- Instead, the system shows @Failed@ in the /Description/ field.
    StartDataCollectionByAgentIds -> [Text]
agentIds :: [Prelude.Text]
  }
  deriving (StartDataCollectionByAgentIds
-> StartDataCollectionByAgentIds -> Bool
(StartDataCollectionByAgentIds
 -> StartDataCollectionByAgentIds -> Bool)
-> (StartDataCollectionByAgentIds
    -> StartDataCollectionByAgentIds -> Bool)
-> Eq StartDataCollectionByAgentIds
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDataCollectionByAgentIds
-> StartDataCollectionByAgentIds -> Bool
$c/= :: StartDataCollectionByAgentIds
-> StartDataCollectionByAgentIds -> Bool
== :: StartDataCollectionByAgentIds
-> StartDataCollectionByAgentIds -> Bool
$c== :: StartDataCollectionByAgentIds
-> StartDataCollectionByAgentIds -> Bool
Prelude.Eq, ReadPrec [StartDataCollectionByAgentIds]
ReadPrec StartDataCollectionByAgentIds
Int -> ReadS StartDataCollectionByAgentIds
ReadS [StartDataCollectionByAgentIds]
(Int -> ReadS StartDataCollectionByAgentIds)
-> ReadS [StartDataCollectionByAgentIds]
-> ReadPrec StartDataCollectionByAgentIds
-> ReadPrec [StartDataCollectionByAgentIds]
-> Read StartDataCollectionByAgentIds
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDataCollectionByAgentIds]
$creadListPrec :: ReadPrec [StartDataCollectionByAgentIds]
readPrec :: ReadPrec StartDataCollectionByAgentIds
$creadPrec :: ReadPrec StartDataCollectionByAgentIds
readList :: ReadS [StartDataCollectionByAgentIds]
$creadList :: ReadS [StartDataCollectionByAgentIds]
readsPrec :: Int -> ReadS StartDataCollectionByAgentIds
$creadsPrec :: Int -> ReadS StartDataCollectionByAgentIds
Prelude.Read, Int -> StartDataCollectionByAgentIds -> ShowS
[StartDataCollectionByAgentIds] -> ShowS
StartDataCollectionByAgentIds -> String
(Int -> StartDataCollectionByAgentIds -> ShowS)
-> (StartDataCollectionByAgentIds -> String)
-> ([StartDataCollectionByAgentIds] -> ShowS)
-> Show StartDataCollectionByAgentIds
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDataCollectionByAgentIds] -> ShowS
$cshowList :: [StartDataCollectionByAgentIds] -> ShowS
show :: StartDataCollectionByAgentIds -> String
$cshow :: StartDataCollectionByAgentIds -> String
showsPrec :: Int -> StartDataCollectionByAgentIds -> ShowS
$cshowsPrec :: Int -> StartDataCollectionByAgentIds -> ShowS
Prelude.Show, (forall x.
 StartDataCollectionByAgentIds
 -> Rep StartDataCollectionByAgentIds x)
-> (forall x.
    Rep StartDataCollectionByAgentIds x
    -> StartDataCollectionByAgentIds)
-> Generic StartDataCollectionByAgentIds
forall x.
Rep StartDataCollectionByAgentIds x
-> StartDataCollectionByAgentIds
forall x.
StartDataCollectionByAgentIds
-> Rep StartDataCollectionByAgentIds x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartDataCollectionByAgentIds x
-> StartDataCollectionByAgentIds
$cfrom :: forall x.
StartDataCollectionByAgentIds
-> Rep StartDataCollectionByAgentIds x
Prelude.Generic)

-- |
-- Create a value of 'StartDataCollectionByAgentIds' 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:
--
-- 'agentIds', 'startDataCollectionByAgentIds_agentIds' - The IDs of the agents or connectors from which to start collecting data.
-- If you send a request to an agent\/connector ID that you do not have
-- permission to contact, according to your AWS account, the service does
-- not throw an exception. Instead, it returns the error in the
-- /Description/ field. If you send a request to multiple
-- agents\/connectors and you do not have permission to contact some of
-- those agents\/connectors, the system does not throw an exception.
-- Instead, the system shows @Failed@ in the /Description/ field.
newStartDataCollectionByAgentIds ::
  StartDataCollectionByAgentIds
newStartDataCollectionByAgentIds :: StartDataCollectionByAgentIds
newStartDataCollectionByAgentIds =
  StartDataCollectionByAgentIds' :: [Text] -> StartDataCollectionByAgentIds
StartDataCollectionByAgentIds'
    { $sel:agentIds:StartDataCollectionByAgentIds' :: [Text]
agentIds =
        [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The IDs of the agents or connectors from which to start collecting data.
-- If you send a request to an agent\/connector ID that you do not have
-- permission to contact, according to your AWS account, the service does
-- not throw an exception. Instead, it returns the error in the
-- /Description/ field. If you send a request to multiple
-- agents\/connectors and you do not have permission to contact some of
-- those agents\/connectors, the system does not throw an exception.
-- Instead, the system shows @Failed@ in the /Description/ field.
startDataCollectionByAgentIds_agentIds :: Lens.Lens' StartDataCollectionByAgentIds [Prelude.Text]
startDataCollectionByAgentIds_agentIds :: ([Text] -> f [Text])
-> StartDataCollectionByAgentIds -> f StartDataCollectionByAgentIds
startDataCollectionByAgentIds_agentIds = (StartDataCollectionByAgentIds -> [Text])
-> (StartDataCollectionByAgentIds
    -> [Text] -> StartDataCollectionByAgentIds)
-> Lens
     StartDataCollectionByAgentIds
     StartDataCollectionByAgentIds
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDataCollectionByAgentIds' {[Text]
agentIds :: [Text]
$sel:agentIds:StartDataCollectionByAgentIds' :: StartDataCollectionByAgentIds -> [Text]
agentIds} -> [Text]
agentIds) (\s :: StartDataCollectionByAgentIds
s@StartDataCollectionByAgentIds' {} [Text]
a -> StartDataCollectionByAgentIds
s {$sel:agentIds:StartDataCollectionByAgentIds' :: [Text]
agentIds = [Text]
a} :: StartDataCollectionByAgentIds) (([Text] -> f [Text])
 -> StartDataCollectionByAgentIds
 -> f StartDataCollectionByAgentIds)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> StartDataCollectionByAgentIds
-> f StartDataCollectionByAgentIds
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Core.AWSRequest
    StartDataCollectionByAgentIds
  where
  type
    AWSResponse StartDataCollectionByAgentIds =
      StartDataCollectionByAgentIdsResponse
  request :: StartDataCollectionByAgentIds
-> Request StartDataCollectionByAgentIds
request = Service
-> StartDataCollectionByAgentIds
-> Request StartDataCollectionByAgentIds
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy StartDataCollectionByAgentIds
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse StartDataCollectionByAgentIds)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse StartDataCollectionByAgentIds))
-> Logger
-> Service
-> Proxy StartDataCollectionByAgentIds
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse StartDataCollectionByAgentIds)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [AgentConfigurationStatus]
-> Int -> StartDataCollectionByAgentIdsResponse
StartDataCollectionByAgentIdsResponse'
            (Maybe [AgentConfigurationStatus]
 -> Int -> StartDataCollectionByAgentIdsResponse)
-> Either String (Maybe [AgentConfigurationStatus])
-> Either String (Int -> StartDataCollectionByAgentIdsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [AgentConfigurationStatus]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"agentsConfigurationStatus"
                            Either String (Maybe (Maybe [AgentConfigurationStatus]))
-> Maybe [AgentConfigurationStatus]
-> Either String (Maybe [AgentConfigurationStatus])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AgentConfigurationStatus]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> StartDataCollectionByAgentIdsResponse)
-> Either String Int
-> Either String StartDataCollectionByAgentIdsResponse
forall (f :: * -> *) a b. Applicative f => 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
    StartDataCollectionByAgentIds

instance Prelude.NFData StartDataCollectionByAgentIds

instance Core.ToHeaders StartDataCollectionByAgentIds where
  toHeaders :: StartDataCollectionByAgentIds -> ResponseHeaders
toHeaders =
    ResponseHeaders -> StartDataCollectionByAgentIds -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSPoseidonService_V2015_11_01.StartDataCollectionByAgentIds" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON StartDataCollectionByAgentIds where
  toJSON :: StartDataCollectionByAgentIds -> Value
toJSON StartDataCollectionByAgentIds' {[Text]
agentIds :: [Text]
$sel:agentIds:StartDataCollectionByAgentIds' :: StartDataCollectionByAgentIds -> [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"agentIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
agentIds)]
      )

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

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

-- | /See:/ 'newStartDataCollectionByAgentIdsResponse' smart constructor.
data StartDataCollectionByAgentIdsResponse = StartDataCollectionByAgentIdsResponse'
  { -- | Information about agents or the connector that were instructed to start
    -- collecting data. Information includes the agent\/connector ID, a
    -- description of the operation performed, and whether the agent\/connector
    -- configuration was updated.
    StartDataCollectionByAgentIdsResponse
-> Maybe [AgentConfigurationStatus]
agentsConfigurationStatus :: Prelude.Maybe [AgentConfigurationStatus],
    -- | The response's http status code.
    StartDataCollectionByAgentIdsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StartDataCollectionByAgentIdsResponse
-> StartDataCollectionByAgentIdsResponse -> Bool
(StartDataCollectionByAgentIdsResponse
 -> StartDataCollectionByAgentIdsResponse -> Bool)
-> (StartDataCollectionByAgentIdsResponse
    -> StartDataCollectionByAgentIdsResponse -> Bool)
-> Eq StartDataCollectionByAgentIdsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDataCollectionByAgentIdsResponse
-> StartDataCollectionByAgentIdsResponse -> Bool
$c/= :: StartDataCollectionByAgentIdsResponse
-> StartDataCollectionByAgentIdsResponse -> Bool
== :: StartDataCollectionByAgentIdsResponse
-> StartDataCollectionByAgentIdsResponse -> Bool
$c== :: StartDataCollectionByAgentIdsResponse
-> StartDataCollectionByAgentIdsResponse -> Bool
Prelude.Eq, ReadPrec [StartDataCollectionByAgentIdsResponse]
ReadPrec StartDataCollectionByAgentIdsResponse
Int -> ReadS StartDataCollectionByAgentIdsResponse
ReadS [StartDataCollectionByAgentIdsResponse]
(Int -> ReadS StartDataCollectionByAgentIdsResponse)
-> ReadS [StartDataCollectionByAgentIdsResponse]
-> ReadPrec StartDataCollectionByAgentIdsResponse
-> ReadPrec [StartDataCollectionByAgentIdsResponse]
-> Read StartDataCollectionByAgentIdsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDataCollectionByAgentIdsResponse]
$creadListPrec :: ReadPrec [StartDataCollectionByAgentIdsResponse]
readPrec :: ReadPrec StartDataCollectionByAgentIdsResponse
$creadPrec :: ReadPrec StartDataCollectionByAgentIdsResponse
readList :: ReadS [StartDataCollectionByAgentIdsResponse]
$creadList :: ReadS [StartDataCollectionByAgentIdsResponse]
readsPrec :: Int -> ReadS StartDataCollectionByAgentIdsResponse
$creadsPrec :: Int -> ReadS StartDataCollectionByAgentIdsResponse
Prelude.Read, Int -> StartDataCollectionByAgentIdsResponse -> ShowS
[StartDataCollectionByAgentIdsResponse] -> ShowS
StartDataCollectionByAgentIdsResponse -> String
(Int -> StartDataCollectionByAgentIdsResponse -> ShowS)
-> (StartDataCollectionByAgentIdsResponse -> String)
-> ([StartDataCollectionByAgentIdsResponse] -> ShowS)
-> Show StartDataCollectionByAgentIdsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDataCollectionByAgentIdsResponse] -> ShowS
$cshowList :: [StartDataCollectionByAgentIdsResponse] -> ShowS
show :: StartDataCollectionByAgentIdsResponse -> String
$cshow :: StartDataCollectionByAgentIdsResponse -> String
showsPrec :: Int -> StartDataCollectionByAgentIdsResponse -> ShowS
$cshowsPrec :: Int -> StartDataCollectionByAgentIdsResponse -> ShowS
Prelude.Show, (forall x.
 StartDataCollectionByAgentIdsResponse
 -> Rep StartDataCollectionByAgentIdsResponse x)
-> (forall x.
    Rep StartDataCollectionByAgentIdsResponse x
    -> StartDataCollectionByAgentIdsResponse)
-> Generic StartDataCollectionByAgentIdsResponse
forall x.
Rep StartDataCollectionByAgentIdsResponse x
-> StartDataCollectionByAgentIdsResponse
forall x.
StartDataCollectionByAgentIdsResponse
-> Rep StartDataCollectionByAgentIdsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartDataCollectionByAgentIdsResponse x
-> StartDataCollectionByAgentIdsResponse
$cfrom :: forall x.
StartDataCollectionByAgentIdsResponse
-> Rep StartDataCollectionByAgentIdsResponse x
Prelude.Generic)

-- |
-- Create a value of 'StartDataCollectionByAgentIdsResponse' 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:
--
-- 'agentsConfigurationStatus', 'startDataCollectionByAgentIdsResponse_agentsConfigurationStatus' - Information about agents or the connector that were instructed to start
-- collecting data. Information includes the agent\/connector ID, a
-- description of the operation performed, and whether the agent\/connector
-- configuration was updated.
--
-- 'httpStatus', 'startDataCollectionByAgentIdsResponse_httpStatus' - The response's http status code.
newStartDataCollectionByAgentIdsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StartDataCollectionByAgentIdsResponse
newStartDataCollectionByAgentIdsResponse :: Int -> StartDataCollectionByAgentIdsResponse
newStartDataCollectionByAgentIdsResponse Int
pHttpStatus_ =
  StartDataCollectionByAgentIdsResponse' :: Maybe [AgentConfigurationStatus]
-> Int -> StartDataCollectionByAgentIdsResponse
StartDataCollectionByAgentIdsResponse'
    { $sel:agentsConfigurationStatus:StartDataCollectionByAgentIdsResponse' :: Maybe [AgentConfigurationStatus]
agentsConfigurationStatus =
        Maybe [AgentConfigurationStatus]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:StartDataCollectionByAgentIdsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about agents or the connector that were instructed to start
-- collecting data. Information includes the agent\/connector ID, a
-- description of the operation performed, and whether the agent\/connector
-- configuration was updated.
startDataCollectionByAgentIdsResponse_agentsConfigurationStatus :: Lens.Lens' StartDataCollectionByAgentIdsResponse (Prelude.Maybe [AgentConfigurationStatus])
startDataCollectionByAgentIdsResponse_agentsConfigurationStatus :: (Maybe [AgentConfigurationStatus]
 -> f (Maybe [AgentConfigurationStatus]))
-> StartDataCollectionByAgentIdsResponse
-> f StartDataCollectionByAgentIdsResponse
startDataCollectionByAgentIdsResponse_agentsConfigurationStatus = (StartDataCollectionByAgentIdsResponse
 -> Maybe [AgentConfigurationStatus])
-> (StartDataCollectionByAgentIdsResponse
    -> Maybe [AgentConfigurationStatus]
    -> StartDataCollectionByAgentIdsResponse)
-> Lens
     StartDataCollectionByAgentIdsResponse
     StartDataCollectionByAgentIdsResponse
     (Maybe [AgentConfigurationStatus])
     (Maybe [AgentConfigurationStatus])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDataCollectionByAgentIdsResponse' {Maybe [AgentConfigurationStatus]
agentsConfigurationStatus :: Maybe [AgentConfigurationStatus]
$sel:agentsConfigurationStatus:StartDataCollectionByAgentIdsResponse' :: StartDataCollectionByAgentIdsResponse
-> Maybe [AgentConfigurationStatus]
agentsConfigurationStatus} -> Maybe [AgentConfigurationStatus]
agentsConfigurationStatus) (\s :: StartDataCollectionByAgentIdsResponse
s@StartDataCollectionByAgentIdsResponse' {} Maybe [AgentConfigurationStatus]
a -> StartDataCollectionByAgentIdsResponse
s {$sel:agentsConfigurationStatus:StartDataCollectionByAgentIdsResponse' :: Maybe [AgentConfigurationStatus]
agentsConfigurationStatus = Maybe [AgentConfigurationStatus]
a} :: StartDataCollectionByAgentIdsResponse) ((Maybe [AgentConfigurationStatus]
  -> f (Maybe [AgentConfigurationStatus]))
 -> StartDataCollectionByAgentIdsResponse
 -> f StartDataCollectionByAgentIdsResponse)
-> ((Maybe [AgentConfigurationStatus]
     -> f (Maybe [AgentConfigurationStatus]))
    -> Maybe [AgentConfigurationStatus]
    -> f (Maybe [AgentConfigurationStatus]))
-> (Maybe [AgentConfigurationStatus]
    -> f (Maybe [AgentConfigurationStatus]))
-> StartDataCollectionByAgentIdsResponse
-> f StartDataCollectionByAgentIdsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AgentConfigurationStatus]
  [AgentConfigurationStatus]
  [AgentConfigurationStatus]
  [AgentConfigurationStatus]
-> Iso
     (Maybe [AgentConfigurationStatus])
     (Maybe [AgentConfigurationStatus])
     (Maybe [AgentConfigurationStatus])
     (Maybe [AgentConfigurationStatus])
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
  [AgentConfigurationStatus]
  [AgentConfigurationStatus]
  [AgentConfigurationStatus]
  [AgentConfigurationStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    StartDataCollectionByAgentIdsResponse