{-# 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.DescribeFleet
-- 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 a fleet.
module Amazonka.RobOMaker.DescribeFleet
  ( -- * Creating a Request
    DescribeFleet (..),
    newDescribeFleet,

    -- * Request Lenses
    describeFleet_fleet,

    -- * Destructuring the Response
    DescribeFleetResponse (..),
    newDescribeFleetResponse,

    -- * Response Lenses
    describeFleetResponse_lastDeploymentJob,
    describeFleetResponse_lastDeploymentStatus,
    describeFleetResponse_robots,
    describeFleetResponse_arn,
    describeFleetResponse_createdAt,
    describeFleetResponse_name,
    describeFleetResponse_lastDeploymentTime,
    describeFleetResponse_tags,
    describeFleetResponse_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:/ 'newDescribeFleet' smart constructor.
data DescribeFleet = DescribeFleet'
  { -- | The Amazon Resource Name (ARN) of the fleet.
    DescribeFleet -> Text
fleet :: Prelude.Text
  }
  deriving (DescribeFleet -> DescribeFleet -> Bool
(DescribeFleet -> DescribeFleet -> Bool)
-> (DescribeFleet -> DescribeFleet -> Bool) -> Eq DescribeFleet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFleet -> DescribeFleet -> Bool
$c/= :: DescribeFleet -> DescribeFleet -> Bool
== :: DescribeFleet -> DescribeFleet -> Bool
$c== :: DescribeFleet -> DescribeFleet -> Bool
Prelude.Eq, ReadPrec [DescribeFleet]
ReadPrec DescribeFleet
Int -> ReadS DescribeFleet
ReadS [DescribeFleet]
(Int -> ReadS DescribeFleet)
-> ReadS [DescribeFleet]
-> ReadPrec DescribeFleet
-> ReadPrec [DescribeFleet]
-> Read DescribeFleet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFleet]
$creadListPrec :: ReadPrec [DescribeFleet]
readPrec :: ReadPrec DescribeFleet
$creadPrec :: ReadPrec DescribeFleet
readList :: ReadS [DescribeFleet]
$creadList :: ReadS [DescribeFleet]
readsPrec :: Int -> ReadS DescribeFleet
$creadsPrec :: Int -> ReadS DescribeFleet
Prelude.Read, Int -> DescribeFleet -> ShowS
[DescribeFleet] -> ShowS
DescribeFleet -> String
(Int -> DescribeFleet -> ShowS)
-> (DescribeFleet -> String)
-> ([DescribeFleet] -> ShowS)
-> Show DescribeFleet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFleet] -> ShowS
$cshowList :: [DescribeFleet] -> ShowS
show :: DescribeFleet -> String
$cshow :: DescribeFleet -> String
showsPrec :: Int -> DescribeFleet -> ShowS
$cshowsPrec :: Int -> DescribeFleet -> ShowS
Prelude.Show, (forall x. DescribeFleet -> Rep DescribeFleet x)
-> (forall x. Rep DescribeFleet x -> DescribeFleet)
-> Generic DescribeFleet
forall x. Rep DescribeFleet x -> DescribeFleet
forall x. DescribeFleet -> Rep DescribeFleet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeFleet x -> DescribeFleet
$cfrom :: forall x. DescribeFleet -> Rep DescribeFleet x
Prelude.Generic)

-- |
-- Create a value of 'DescribeFleet' 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:
--
-- 'fleet', 'describeFleet_fleet' - The Amazon Resource Name (ARN) of the fleet.
newDescribeFleet ::
  -- | 'fleet'
  Prelude.Text ->
  DescribeFleet
newDescribeFleet :: Text -> DescribeFleet
newDescribeFleet Text
pFleet_ =
  DescribeFleet' :: Text -> DescribeFleet
DescribeFleet' {$sel:fleet:DescribeFleet' :: Text
fleet = Text
pFleet_}

-- | The Amazon Resource Name (ARN) of the fleet.
describeFleet_fleet :: Lens.Lens' DescribeFleet Prelude.Text
describeFleet_fleet :: (Text -> f Text) -> DescribeFleet -> f DescribeFleet
describeFleet_fleet = (DescribeFleet -> Text)
-> (DescribeFleet -> Text -> DescribeFleet)
-> Lens DescribeFleet DescribeFleet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleet' {Text
fleet :: Text
$sel:fleet:DescribeFleet' :: DescribeFleet -> Text
fleet} -> Text
fleet) (\s :: DescribeFleet
s@DescribeFleet' {} Text
a -> DescribeFleet
s {$sel:fleet:DescribeFleet' :: Text
fleet = Text
a} :: DescribeFleet)

instance Core.AWSRequest DescribeFleet where
  type
    AWSResponse DescribeFleet =
      DescribeFleetResponse
  request :: DescribeFleet -> Request DescribeFleet
request = Service -> DescribeFleet -> Request DescribeFleet
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeFleet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeFleet)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeFleet))
-> Logger
-> Service
-> Proxy DescribeFleet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeFleet)))
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 Text
-> Maybe DeploymentStatus
-> Maybe [Robot]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetResponse
DescribeFleetResponse'
            (Maybe Text
 -> Maybe DeploymentStatus
 -> Maybe [Robot]
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe (HashMap Text Text)
 -> Int
 -> DescribeFleetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe DeploymentStatus
      -> Maybe [Robot]
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeFleetResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastDeploymentJob")
            Either
  String
  (Maybe DeploymentStatus
   -> Maybe [Robot]
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeFleetResponse)
-> Either String (Maybe DeploymentStatus)
-> Either
     String
     (Maybe [Robot]
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DeploymentStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastDeploymentStatus")
            Either
  String
  (Maybe [Robot]
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeFleetResponse)
-> Either String (Maybe [Robot])
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Robot]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"robots" Either String (Maybe (Maybe [Robot]))
-> Maybe [Robot] -> Either String (Maybe [Robot])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Robot]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeFleetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"arn")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeFleetResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"createdAt")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeFleetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe (HashMap Text Text) -> Int -> DescribeFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"name")
            Either
  String
  (Maybe POSIX
   -> Maybe (HashMap Text Text) -> Int -> DescribeFleetResponse)
-> Either String (Maybe POSIX)
-> Either
     String (Maybe (HashMap Text Text) -> Int -> DescribeFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastDeploymentTime")
            Either
  String (Maybe (HashMap Text Text) -> Int -> DescribeFleetResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> DescribeFleetResponse)
-> Either String Int -> Either String DescribeFleetResponse
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 DescribeFleet

instance Prelude.NFData DescribeFleet

instance Core.ToHeaders DescribeFleet where
  toHeaders :: DescribeFleet -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeFleet -> 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 DescribeFleet where
  toJSON :: DescribeFleet -> Value
toJSON DescribeFleet' {Text
fleet :: Text
$sel:fleet:DescribeFleet' :: DescribeFleet -> 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
"fleet" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
fleet)]
      )

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

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

-- | /See:/ 'newDescribeFleetResponse' smart constructor.
data DescribeFleetResponse = DescribeFleetResponse'
  { -- | The Amazon Resource Name (ARN) of the last deployment job.
    DescribeFleetResponse -> Maybe Text
lastDeploymentJob :: Prelude.Maybe Prelude.Text,
    -- | The status of the last deployment.
    DescribeFleetResponse -> Maybe DeploymentStatus
lastDeploymentStatus :: Prelude.Maybe DeploymentStatus,
    -- | A list of robots.
    DescribeFleetResponse -> Maybe [Robot]
robots :: Prelude.Maybe [Robot],
    -- | The Amazon Resource Name (ARN) of the fleet.
    DescribeFleetResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The time, in milliseconds since the epoch, when the fleet was created.
    DescribeFleetResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The name of the fleet.
    DescribeFleetResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The time of the last deployment.
    DescribeFleetResponse -> Maybe POSIX
lastDeploymentTime :: Prelude.Maybe Core.POSIX,
    -- | The list of all tags added to the specified fleet.
    DescribeFleetResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeFleetResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeFleetResponse -> DescribeFleetResponse -> Bool
(DescribeFleetResponse -> DescribeFleetResponse -> Bool)
-> (DescribeFleetResponse -> DescribeFleetResponse -> Bool)
-> Eq DescribeFleetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFleetResponse -> DescribeFleetResponse -> Bool
$c/= :: DescribeFleetResponse -> DescribeFleetResponse -> Bool
== :: DescribeFleetResponse -> DescribeFleetResponse -> Bool
$c== :: DescribeFleetResponse -> DescribeFleetResponse -> Bool
Prelude.Eq, ReadPrec [DescribeFleetResponse]
ReadPrec DescribeFleetResponse
Int -> ReadS DescribeFleetResponse
ReadS [DescribeFleetResponse]
(Int -> ReadS DescribeFleetResponse)
-> ReadS [DescribeFleetResponse]
-> ReadPrec DescribeFleetResponse
-> ReadPrec [DescribeFleetResponse]
-> Read DescribeFleetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFleetResponse]
$creadListPrec :: ReadPrec [DescribeFleetResponse]
readPrec :: ReadPrec DescribeFleetResponse
$creadPrec :: ReadPrec DescribeFleetResponse
readList :: ReadS [DescribeFleetResponse]
$creadList :: ReadS [DescribeFleetResponse]
readsPrec :: Int -> ReadS DescribeFleetResponse
$creadsPrec :: Int -> ReadS DescribeFleetResponse
Prelude.Read, Int -> DescribeFleetResponse -> ShowS
[DescribeFleetResponse] -> ShowS
DescribeFleetResponse -> String
(Int -> DescribeFleetResponse -> ShowS)
-> (DescribeFleetResponse -> String)
-> ([DescribeFleetResponse] -> ShowS)
-> Show DescribeFleetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFleetResponse] -> ShowS
$cshowList :: [DescribeFleetResponse] -> ShowS
show :: DescribeFleetResponse -> String
$cshow :: DescribeFleetResponse -> String
showsPrec :: Int -> DescribeFleetResponse -> ShowS
$cshowsPrec :: Int -> DescribeFleetResponse -> ShowS
Prelude.Show, (forall x. DescribeFleetResponse -> Rep DescribeFleetResponse x)
-> (forall x. Rep DescribeFleetResponse x -> DescribeFleetResponse)
-> Generic DescribeFleetResponse
forall x. Rep DescribeFleetResponse x -> DescribeFleetResponse
forall x. DescribeFleetResponse -> Rep DescribeFleetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeFleetResponse x -> DescribeFleetResponse
$cfrom :: forall x. DescribeFleetResponse -> Rep DescribeFleetResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeFleetResponse' 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:
--
-- 'lastDeploymentJob', 'describeFleetResponse_lastDeploymentJob' - The Amazon Resource Name (ARN) of the last deployment job.
--
-- 'lastDeploymentStatus', 'describeFleetResponse_lastDeploymentStatus' - The status of the last deployment.
--
-- 'robots', 'describeFleetResponse_robots' - A list of robots.
--
-- 'arn', 'describeFleetResponse_arn' - The Amazon Resource Name (ARN) of the fleet.
--
-- 'createdAt', 'describeFleetResponse_createdAt' - The time, in milliseconds since the epoch, when the fleet was created.
--
-- 'name', 'describeFleetResponse_name' - The name of the fleet.
--
-- 'lastDeploymentTime', 'describeFleetResponse_lastDeploymentTime' - The time of the last deployment.
--
-- 'tags', 'describeFleetResponse_tags' - The list of all tags added to the specified fleet.
--
-- 'httpStatus', 'describeFleetResponse_httpStatus' - The response's http status code.
newDescribeFleetResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeFleetResponse
newDescribeFleetResponse :: Int -> DescribeFleetResponse
newDescribeFleetResponse Int
pHttpStatus_ =
  DescribeFleetResponse' :: Maybe Text
-> Maybe DeploymentStatus
-> Maybe [Robot]
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetResponse
DescribeFleetResponse'
    { $sel:lastDeploymentJob:DescribeFleetResponse' :: Maybe Text
lastDeploymentJob =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastDeploymentStatus:DescribeFleetResponse' :: Maybe DeploymentStatus
lastDeploymentStatus = Maybe DeploymentStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:robots:DescribeFleetResponse' :: Maybe [Robot]
robots = Maybe [Robot]
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DescribeFleetResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:DescribeFleetResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:name:DescribeFleetResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastDeploymentTime:DescribeFleetResponse' :: Maybe POSIX
lastDeploymentTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeFleetResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeFleetResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) of the last deployment job.
describeFleetResponse_lastDeploymentJob :: Lens.Lens' DescribeFleetResponse (Prelude.Maybe Prelude.Text)
describeFleetResponse_lastDeploymentJob :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetResponse -> f DescribeFleetResponse
describeFleetResponse_lastDeploymentJob = (DescribeFleetResponse -> Maybe Text)
-> (DescribeFleetResponse -> Maybe Text -> DescribeFleetResponse)
-> Lens
     DescribeFleetResponse
     DescribeFleetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetResponse' {Maybe Text
lastDeploymentJob :: Maybe Text
$sel:lastDeploymentJob:DescribeFleetResponse' :: DescribeFleetResponse -> Maybe Text
lastDeploymentJob} -> Maybe Text
lastDeploymentJob) (\s :: DescribeFleetResponse
s@DescribeFleetResponse' {} Maybe Text
a -> DescribeFleetResponse
s {$sel:lastDeploymentJob:DescribeFleetResponse' :: Maybe Text
lastDeploymentJob = Maybe Text
a} :: DescribeFleetResponse)

-- | The status of the last deployment.
describeFleetResponse_lastDeploymentStatus :: Lens.Lens' DescribeFleetResponse (Prelude.Maybe DeploymentStatus)
describeFleetResponse_lastDeploymentStatus :: (Maybe DeploymentStatus -> f (Maybe DeploymentStatus))
-> DescribeFleetResponse -> f DescribeFleetResponse
describeFleetResponse_lastDeploymentStatus = (DescribeFleetResponse -> Maybe DeploymentStatus)
-> (DescribeFleetResponse
    -> Maybe DeploymentStatus -> DescribeFleetResponse)
-> Lens
     DescribeFleetResponse
     DescribeFleetResponse
     (Maybe DeploymentStatus)
     (Maybe DeploymentStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetResponse' {Maybe DeploymentStatus
lastDeploymentStatus :: Maybe DeploymentStatus
$sel:lastDeploymentStatus:DescribeFleetResponse' :: DescribeFleetResponse -> Maybe DeploymentStatus
lastDeploymentStatus} -> Maybe DeploymentStatus
lastDeploymentStatus) (\s :: DescribeFleetResponse
s@DescribeFleetResponse' {} Maybe DeploymentStatus
a -> DescribeFleetResponse
s {$sel:lastDeploymentStatus:DescribeFleetResponse' :: Maybe DeploymentStatus
lastDeploymentStatus = Maybe DeploymentStatus
a} :: DescribeFleetResponse)

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

-- | The Amazon Resource Name (ARN) of the fleet.
describeFleetResponse_arn :: Lens.Lens' DescribeFleetResponse (Prelude.Maybe Prelude.Text)
describeFleetResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetResponse -> f DescribeFleetResponse
describeFleetResponse_arn = (DescribeFleetResponse -> Maybe Text)
-> (DescribeFleetResponse -> Maybe Text -> DescribeFleetResponse)
-> Lens
     DescribeFleetResponse
     DescribeFleetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeFleetResponse' :: DescribeFleetResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeFleetResponse
s@DescribeFleetResponse' {} Maybe Text
a -> DescribeFleetResponse
s {$sel:arn:DescribeFleetResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeFleetResponse)

-- | The time, in milliseconds since the epoch, when the fleet was created.
describeFleetResponse_createdAt :: Lens.Lens' DescribeFleetResponse (Prelude.Maybe Prelude.UTCTime)
describeFleetResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeFleetResponse -> f DescribeFleetResponse
describeFleetResponse_createdAt = (DescribeFleetResponse -> Maybe POSIX)
-> (DescribeFleetResponse -> Maybe POSIX -> DescribeFleetResponse)
-> Lens
     DescribeFleetResponse
     DescribeFleetResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:DescribeFleetResponse' :: DescribeFleetResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: DescribeFleetResponse
s@DescribeFleetResponse' {} Maybe POSIX
a -> DescribeFleetResponse
s {$sel:createdAt:DescribeFleetResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: DescribeFleetResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeFleetResponse -> f DescribeFleetResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeFleetResponse
-> f DescribeFleetResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The name of the fleet.
describeFleetResponse_name :: Lens.Lens' DescribeFleetResponse (Prelude.Maybe Prelude.Text)
describeFleetResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetResponse -> f DescribeFleetResponse
describeFleetResponse_name = (DescribeFleetResponse -> Maybe Text)
-> (DescribeFleetResponse -> Maybe Text -> DescribeFleetResponse)
-> Lens
     DescribeFleetResponse
     DescribeFleetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeFleetResponse' :: DescribeFleetResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeFleetResponse
s@DescribeFleetResponse' {} Maybe Text
a -> DescribeFleetResponse
s {$sel:name:DescribeFleetResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeFleetResponse)

-- | The time of the last deployment.
describeFleetResponse_lastDeploymentTime :: Lens.Lens' DescribeFleetResponse (Prelude.Maybe Prelude.UTCTime)
describeFleetResponse_lastDeploymentTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeFleetResponse -> f DescribeFleetResponse
describeFleetResponse_lastDeploymentTime = (DescribeFleetResponse -> Maybe POSIX)
-> (DescribeFleetResponse -> Maybe POSIX -> DescribeFleetResponse)
-> Lens
     DescribeFleetResponse
     DescribeFleetResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetResponse' {Maybe POSIX
lastDeploymentTime :: Maybe POSIX
$sel:lastDeploymentTime:DescribeFleetResponse' :: DescribeFleetResponse -> Maybe POSIX
lastDeploymentTime} -> Maybe POSIX
lastDeploymentTime) (\s :: DescribeFleetResponse
s@DescribeFleetResponse' {} Maybe POSIX
a -> DescribeFleetResponse
s {$sel:lastDeploymentTime:DescribeFleetResponse' :: Maybe POSIX
lastDeploymentTime = Maybe POSIX
a} :: DescribeFleetResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeFleetResponse -> f DescribeFleetResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeFleetResponse
-> f DescribeFleetResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The list of all tags added to the specified fleet.
describeFleetResponse_tags :: Lens.Lens' DescribeFleetResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeFleetResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeFleetResponse -> f DescribeFleetResponse
describeFleetResponse_tags = (DescribeFleetResponse -> Maybe (HashMap Text Text))
-> (DescribeFleetResponse
    -> Maybe (HashMap Text Text) -> DescribeFleetResponse)
-> Lens
     DescribeFleetResponse
     DescribeFleetResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeFleetResponse' :: DescribeFleetResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeFleetResponse
s@DescribeFleetResponse' {} Maybe (HashMap Text Text)
a -> DescribeFleetResponse
s {$sel:tags:DescribeFleetResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeFleetResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeFleetResponse -> f DescribeFleetResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeFleetResponse
-> f DescribeFleetResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData DescribeFleetResponse