{-# 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.RobOMaker.BatchDescribeSimulationJob
-- 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)
--
-- Describes one or more simulation jobs.
module Amazonka.RobOMaker.BatchDescribeSimulationJob
  ( -- * Creating a Request
    BatchDescribeSimulationJob (..),
    newBatchDescribeSimulationJob,

    -- * Request Lenses
    batchDescribeSimulationJob_jobs,

    -- * Destructuring the Response
    BatchDescribeSimulationJobResponse (..),
    newBatchDescribeSimulationJobResponse,

    -- * Response Lenses
    batchDescribeSimulationJobResponse_unprocessedJobs,
    batchDescribeSimulationJobResponse_jobs,
    batchDescribeSimulationJobResponse_httpStatus,
  )
where

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

-- | /See:/ 'newBatchDescribeSimulationJob' smart constructor.
data BatchDescribeSimulationJob = BatchDescribeSimulationJob'
  { -- | A list of Amazon Resource Names (ARNs) of simulation jobs to describe.
    BatchDescribeSimulationJob -> NonEmpty Text
jobs :: Prelude.NonEmpty Prelude.Text
  }
  deriving (BatchDescribeSimulationJob -> BatchDescribeSimulationJob -> Bool
(BatchDescribeSimulationJob -> BatchDescribeSimulationJob -> Bool)
-> (BatchDescribeSimulationJob
    -> BatchDescribeSimulationJob -> Bool)
-> Eq BatchDescribeSimulationJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDescribeSimulationJob -> BatchDescribeSimulationJob -> Bool
$c/= :: BatchDescribeSimulationJob -> BatchDescribeSimulationJob -> Bool
== :: BatchDescribeSimulationJob -> BatchDescribeSimulationJob -> Bool
$c== :: BatchDescribeSimulationJob -> BatchDescribeSimulationJob -> Bool
Prelude.Eq, ReadPrec [BatchDescribeSimulationJob]
ReadPrec BatchDescribeSimulationJob
Int -> ReadS BatchDescribeSimulationJob
ReadS [BatchDescribeSimulationJob]
(Int -> ReadS BatchDescribeSimulationJob)
-> ReadS [BatchDescribeSimulationJob]
-> ReadPrec BatchDescribeSimulationJob
-> ReadPrec [BatchDescribeSimulationJob]
-> Read BatchDescribeSimulationJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDescribeSimulationJob]
$creadListPrec :: ReadPrec [BatchDescribeSimulationJob]
readPrec :: ReadPrec BatchDescribeSimulationJob
$creadPrec :: ReadPrec BatchDescribeSimulationJob
readList :: ReadS [BatchDescribeSimulationJob]
$creadList :: ReadS [BatchDescribeSimulationJob]
readsPrec :: Int -> ReadS BatchDescribeSimulationJob
$creadsPrec :: Int -> ReadS BatchDescribeSimulationJob
Prelude.Read, Int -> BatchDescribeSimulationJob -> ShowS
[BatchDescribeSimulationJob] -> ShowS
BatchDescribeSimulationJob -> String
(Int -> BatchDescribeSimulationJob -> ShowS)
-> (BatchDescribeSimulationJob -> String)
-> ([BatchDescribeSimulationJob] -> ShowS)
-> Show BatchDescribeSimulationJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDescribeSimulationJob] -> ShowS
$cshowList :: [BatchDescribeSimulationJob] -> ShowS
show :: BatchDescribeSimulationJob -> String
$cshow :: BatchDescribeSimulationJob -> String
showsPrec :: Int -> BatchDescribeSimulationJob -> ShowS
$cshowsPrec :: Int -> BatchDescribeSimulationJob -> ShowS
Prelude.Show, (forall x.
 BatchDescribeSimulationJob -> Rep BatchDescribeSimulationJob x)
-> (forall x.
    Rep BatchDescribeSimulationJob x -> BatchDescribeSimulationJob)
-> Generic BatchDescribeSimulationJob
forall x.
Rep BatchDescribeSimulationJob x -> BatchDescribeSimulationJob
forall x.
BatchDescribeSimulationJob -> Rep BatchDescribeSimulationJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDescribeSimulationJob x -> BatchDescribeSimulationJob
$cfrom :: forall x.
BatchDescribeSimulationJob -> Rep BatchDescribeSimulationJob x
Prelude.Generic)

-- |
-- Create a value of 'BatchDescribeSimulationJob' 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:
--
-- 'jobs', 'batchDescribeSimulationJob_jobs' - A list of Amazon Resource Names (ARNs) of simulation jobs to describe.
newBatchDescribeSimulationJob ::
  -- | 'jobs'
  Prelude.NonEmpty Prelude.Text ->
  BatchDescribeSimulationJob
newBatchDescribeSimulationJob :: NonEmpty Text -> BatchDescribeSimulationJob
newBatchDescribeSimulationJob NonEmpty Text
pJobs_ =
  BatchDescribeSimulationJob' :: NonEmpty Text -> BatchDescribeSimulationJob
BatchDescribeSimulationJob'
    { $sel:jobs:BatchDescribeSimulationJob' :: NonEmpty Text
jobs =
        Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
 -> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pJobs_
    }

-- | A list of Amazon Resource Names (ARNs) of simulation jobs to describe.
batchDescribeSimulationJob_jobs :: Lens.Lens' BatchDescribeSimulationJob (Prelude.NonEmpty Prelude.Text)
batchDescribeSimulationJob_jobs :: (NonEmpty Text -> f (NonEmpty Text))
-> BatchDescribeSimulationJob -> f BatchDescribeSimulationJob
batchDescribeSimulationJob_jobs = (BatchDescribeSimulationJob -> NonEmpty Text)
-> (BatchDescribeSimulationJob
    -> NonEmpty Text -> BatchDescribeSimulationJob)
-> Lens
     BatchDescribeSimulationJob
     BatchDescribeSimulationJob
     (NonEmpty Text)
     (NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDescribeSimulationJob' {NonEmpty Text
jobs :: NonEmpty Text
$sel:jobs:BatchDescribeSimulationJob' :: BatchDescribeSimulationJob -> NonEmpty Text
jobs} -> NonEmpty Text
jobs) (\s :: BatchDescribeSimulationJob
s@BatchDescribeSimulationJob' {} NonEmpty Text
a -> BatchDescribeSimulationJob
s {$sel:jobs:BatchDescribeSimulationJob' :: NonEmpty Text
jobs = NonEmpty Text
a} :: BatchDescribeSimulationJob) ((NonEmpty Text -> f (NonEmpty Text))
 -> BatchDescribeSimulationJob -> f BatchDescribeSimulationJob)
-> ((NonEmpty Text -> f (NonEmpty Text))
    -> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> BatchDescribeSimulationJob
-> f BatchDescribeSimulationJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest BatchDescribeSimulationJob where
  type
    AWSResponse BatchDescribeSimulationJob =
      BatchDescribeSimulationJobResponse
  request :: BatchDescribeSimulationJob -> Request BatchDescribeSimulationJob
request = Service
-> BatchDescribeSimulationJob -> Request BatchDescribeSimulationJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy BatchDescribeSimulationJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse BatchDescribeSimulationJob)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse BatchDescribeSimulationJob))
-> Logger
-> Service
-> Proxy BatchDescribeSimulationJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse BatchDescribeSimulationJob)))
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 (NonEmpty Text)
-> Maybe [SimulationJob]
-> Int
-> BatchDescribeSimulationJobResponse
BatchDescribeSimulationJobResponse'
            (Maybe (NonEmpty Text)
 -> Maybe [SimulationJob]
 -> Int
 -> BatchDescribeSimulationJobResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either
     String
     (Maybe [SimulationJob]
      -> Int -> BatchDescribeSimulationJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"unprocessedJobs")
            Either
  String
  (Maybe [SimulationJob]
   -> Int -> BatchDescribeSimulationJobResponse)
-> Either String (Maybe [SimulationJob])
-> Either String (Int -> BatchDescribeSimulationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [SimulationJob]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"jobs" Either String (Maybe (Maybe [SimulationJob]))
-> Maybe [SimulationJob] -> Either String (Maybe [SimulationJob])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SimulationJob]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> BatchDescribeSimulationJobResponse)
-> Either String Int
-> Either String BatchDescribeSimulationJobResponse
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 BatchDescribeSimulationJob

instance Prelude.NFData BatchDescribeSimulationJob

instance Core.ToHeaders BatchDescribeSimulationJob where
  toHeaders :: BatchDescribeSimulationJob -> ResponseHeaders
toHeaders =
    ResponseHeaders -> BatchDescribeSimulationJob -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 BatchDescribeSimulationJob where
  toJSON :: BatchDescribeSimulationJob -> Value
toJSON BatchDescribeSimulationJob' {NonEmpty Text
jobs :: NonEmpty Text
$sel:jobs:BatchDescribeSimulationJob' :: BatchDescribeSimulationJob -> NonEmpty 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
"jobs" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
jobs)]
      )

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

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

-- | /See:/ 'newBatchDescribeSimulationJobResponse' smart constructor.
data BatchDescribeSimulationJobResponse = BatchDescribeSimulationJobResponse'
  { -- | A list of unprocessed simulation job Amazon Resource Names (ARNs).
    BatchDescribeSimulationJobResponse -> Maybe (NonEmpty Text)
unprocessedJobs :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | A list of simulation jobs.
    BatchDescribeSimulationJobResponse -> Maybe [SimulationJob]
jobs :: Prelude.Maybe [SimulationJob],
    -- | The response's http status code.
    BatchDescribeSimulationJobResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (BatchDescribeSimulationJobResponse
-> BatchDescribeSimulationJobResponse -> Bool
(BatchDescribeSimulationJobResponse
 -> BatchDescribeSimulationJobResponse -> Bool)
-> (BatchDescribeSimulationJobResponse
    -> BatchDescribeSimulationJobResponse -> Bool)
-> Eq BatchDescribeSimulationJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDescribeSimulationJobResponse
-> BatchDescribeSimulationJobResponse -> Bool
$c/= :: BatchDescribeSimulationJobResponse
-> BatchDescribeSimulationJobResponse -> Bool
== :: BatchDescribeSimulationJobResponse
-> BatchDescribeSimulationJobResponse -> Bool
$c== :: BatchDescribeSimulationJobResponse
-> BatchDescribeSimulationJobResponse -> Bool
Prelude.Eq, ReadPrec [BatchDescribeSimulationJobResponse]
ReadPrec BatchDescribeSimulationJobResponse
Int -> ReadS BatchDescribeSimulationJobResponse
ReadS [BatchDescribeSimulationJobResponse]
(Int -> ReadS BatchDescribeSimulationJobResponse)
-> ReadS [BatchDescribeSimulationJobResponse]
-> ReadPrec BatchDescribeSimulationJobResponse
-> ReadPrec [BatchDescribeSimulationJobResponse]
-> Read BatchDescribeSimulationJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDescribeSimulationJobResponse]
$creadListPrec :: ReadPrec [BatchDescribeSimulationJobResponse]
readPrec :: ReadPrec BatchDescribeSimulationJobResponse
$creadPrec :: ReadPrec BatchDescribeSimulationJobResponse
readList :: ReadS [BatchDescribeSimulationJobResponse]
$creadList :: ReadS [BatchDescribeSimulationJobResponse]
readsPrec :: Int -> ReadS BatchDescribeSimulationJobResponse
$creadsPrec :: Int -> ReadS BatchDescribeSimulationJobResponse
Prelude.Read, Int -> BatchDescribeSimulationJobResponse -> ShowS
[BatchDescribeSimulationJobResponse] -> ShowS
BatchDescribeSimulationJobResponse -> String
(Int -> BatchDescribeSimulationJobResponse -> ShowS)
-> (BatchDescribeSimulationJobResponse -> String)
-> ([BatchDescribeSimulationJobResponse] -> ShowS)
-> Show BatchDescribeSimulationJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDescribeSimulationJobResponse] -> ShowS
$cshowList :: [BatchDescribeSimulationJobResponse] -> ShowS
show :: BatchDescribeSimulationJobResponse -> String
$cshow :: BatchDescribeSimulationJobResponse -> String
showsPrec :: Int -> BatchDescribeSimulationJobResponse -> ShowS
$cshowsPrec :: Int -> BatchDescribeSimulationJobResponse -> ShowS
Prelude.Show, (forall x.
 BatchDescribeSimulationJobResponse
 -> Rep BatchDescribeSimulationJobResponse x)
-> (forall x.
    Rep BatchDescribeSimulationJobResponse x
    -> BatchDescribeSimulationJobResponse)
-> Generic BatchDescribeSimulationJobResponse
forall x.
Rep BatchDescribeSimulationJobResponse x
-> BatchDescribeSimulationJobResponse
forall x.
BatchDescribeSimulationJobResponse
-> Rep BatchDescribeSimulationJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDescribeSimulationJobResponse x
-> BatchDescribeSimulationJobResponse
$cfrom :: forall x.
BatchDescribeSimulationJobResponse
-> Rep BatchDescribeSimulationJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'BatchDescribeSimulationJobResponse' 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:
--
-- 'unprocessedJobs', 'batchDescribeSimulationJobResponse_unprocessedJobs' - A list of unprocessed simulation job Amazon Resource Names (ARNs).
--
-- 'jobs', 'batchDescribeSimulationJobResponse_jobs' - A list of simulation jobs.
--
-- 'httpStatus', 'batchDescribeSimulationJobResponse_httpStatus' - The response's http status code.
newBatchDescribeSimulationJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  BatchDescribeSimulationJobResponse
newBatchDescribeSimulationJobResponse :: Int -> BatchDescribeSimulationJobResponse
newBatchDescribeSimulationJobResponse Int
pHttpStatus_ =
  BatchDescribeSimulationJobResponse' :: Maybe (NonEmpty Text)
-> Maybe [SimulationJob]
-> Int
-> BatchDescribeSimulationJobResponse
BatchDescribeSimulationJobResponse'
    { $sel:unprocessedJobs:BatchDescribeSimulationJobResponse' :: Maybe (NonEmpty Text)
unprocessedJobs =
        Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:jobs:BatchDescribeSimulationJobResponse' :: Maybe [SimulationJob]
jobs = Maybe [SimulationJob]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:BatchDescribeSimulationJobResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of unprocessed simulation job Amazon Resource Names (ARNs).
batchDescribeSimulationJobResponse_unprocessedJobs :: Lens.Lens' BatchDescribeSimulationJobResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
batchDescribeSimulationJobResponse_unprocessedJobs :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> BatchDescribeSimulationJobResponse
-> f BatchDescribeSimulationJobResponse
batchDescribeSimulationJobResponse_unprocessedJobs = (BatchDescribeSimulationJobResponse -> Maybe (NonEmpty Text))
-> (BatchDescribeSimulationJobResponse
    -> Maybe (NonEmpty Text) -> BatchDescribeSimulationJobResponse)
-> Lens
     BatchDescribeSimulationJobResponse
     BatchDescribeSimulationJobResponse
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDescribeSimulationJobResponse' {Maybe (NonEmpty Text)
unprocessedJobs :: Maybe (NonEmpty Text)
$sel:unprocessedJobs:BatchDescribeSimulationJobResponse' :: BatchDescribeSimulationJobResponse -> Maybe (NonEmpty Text)
unprocessedJobs} -> Maybe (NonEmpty Text)
unprocessedJobs) (\s :: BatchDescribeSimulationJobResponse
s@BatchDescribeSimulationJobResponse' {} Maybe (NonEmpty Text)
a -> BatchDescribeSimulationJobResponse
s {$sel:unprocessedJobs:BatchDescribeSimulationJobResponse' :: Maybe (NonEmpty Text)
unprocessedJobs = Maybe (NonEmpty Text)
a} :: BatchDescribeSimulationJobResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> BatchDescribeSimulationJobResponse
 -> f BatchDescribeSimulationJobResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> BatchDescribeSimulationJobResponse
-> f BatchDescribeSimulationJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
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
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of simulation jobs.
batchDescribeSimulationJobResponse_jobs :: Lens.Lens' BatchDescribeSimulationJobResponse (Prelude.Maybe [SimulationJob])
batchDescribeSimulationJobResponse_jobs :: (Maybe [SimulationJob] -> f (Maybe [SimulationJob]))
-> BatchDescribeSimulationJobResponse
-> f BatchDescribeSimulationJobResponse
batchDescribeSimulationJobResponse_jobs = (BatchDescribeSimulationJobResponse -> Maybe [SimulationJob])
-> (BatchDescribeSimulationJobResponse
    -> Maybe [SimulationJob] -> BatchDescribeSimulationJobResponse)
-> Lens
     BatchDescribeSimulationJobResponse
     BatchDescribeSimulationJobResponse
     (Maybe [SimulationJob])
     (Maybe [SimulationJob])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDescribeSimulationJobResponse' {Maybe [SimulationJob]
jobs :: Maybe [SimulationJob]
$sel:jobs:BatchDescribeSimulationJobResponse' :: BatchDescribeSimulationJobResponse -> Maybe [SimulationJob]
jobs} -> Maybe [SimulationJob]
jobs) (\s :: BatchDescribeSimulationJobResponse
s@BatchDescribeSimulationJobResponse' {} Maybe [SimulationJob]
a -> BatchDescribeSimulationJobResponse
s {$sel:jobs:BatchDescribeSimulationJobResponse' :: Maybe [SimulationJob]
jobs = Maybe [SimulationJob]
a} :: BatchDescribeSimulationJobResponse) ((Maybe [SimulationJob] -> f (Maybe [SimulationJob]))
 -> BatchDescribeSimulationJobResponse
 -> f BatchDescribeSimulationJobResponse)
-> ((Maybe [SimulationJob] -> f (Maybe [SimulationJob]))
    -> Maybe [SimulationJob] -> f (Maybe [SimulationJob]))
-> (Maybe [SimulationJob] -> f (Maybe [SimulationJob]))
-> BatchDescribeSimulationJobResponse
-> f BatchDescribeSimulationJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [SimulationJob] [SimulationJob] [SimulationJob] [SimulationJob]
-> Iso
     (Maybe [SimulationJob])
     (Maybe [SimulationJob])
     (Maybe [SimulationJob])
     (Maybe [SimulationJob])
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
  [SimulationJob] [SimulationJob] [SimulationJob] [SimulationJob]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    BatchDescribeSimulationJobResponse