{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.WorkLink.Types.FleetSummary
-- 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)
module Amazonka.WorkLink.Types.FleetSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.WorkLink.Types.FleetStatus

-- | The summary of the fleet.
--
-- /See:/ 'newFleetSummary' smart constructor.
data FleetSummary = FleetSummary'
  { -- | The time when the fleet was last updated.
    FleetSummary -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Core.POSIX,
    -- | The status of the fleet.
    FleetSummary -> Maybe FleetStatus
fleetStatus :: Prelude.Maybe FleetStatus,
    -- | The identifier used by users to sign into the Amazon WorkLink app.
    FleetSummary -> Maybe Text
companyCode :: Prelude.Maybe Prelude.Text,
    -- | The time when the fleet was created.
    FleetSummary -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the fleet.
    FleetSummary -> Maybe Text
fleetArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the fleet to display.
    FleetSummary -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
    -- | The name of the fleet.
    FleetSummary -> Maybe Text
fleetName :: Prelude.Maybe Prelude.Text,
    -- | The tags attached to the resource. A tag is a key-value pair.
    FleetSummary -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (FleetSummary -> FleetSummary -> Bool
(FleetSummary -> FleetSummary -> Bool)
-> (FleetSummary -> FleetSummary -> Bool) -> Eq FleetSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FleetSummary -> FleetSummary -> Bool
$c/= :: FleetSummary -> FleetSummary -> Bool
== :: FleetSummary -> FleetSummary -> Bool
$c== :: FleetSummary -> FleetSummary -> Bool
Prelude.Eq, ReadPrec [FleetSummary]
ReadPrec FleetSummary
Int -> ReadS FleetSummary
ReadS [FleetSummary]
(Int -> ReadS FleetSummary)
-> ReadS [FleetSummary]
-> ReadPrec FleetSummary
-> ReadPrec [FleetSummary]
-> Read FleetSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FleetSummary]
$creadListPrec :: ReadPrec [FleetSummary]
readPrec :: ReadPrec FleetSummary
$creadPrec :: ReadPrec FleetSummary
readList :: ReadS [FleetSummary]
$creadList :: ReadS [FleetSummary]
readsPrec :: Int -> ReadS FleetSummary
$creadsPrec :: Int -> ReadS FleetSummary
Prelude.Read, Int -> FleetSummary -> ShowS
[FleetSummary] -> ShowS
FleetSummary -> String
(Int -> FleetSummary -> ShowS)
-> (FleetSummary -> String)
-> ([FleetSummary] -> ShowS)
-> Show FleetSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FleetSummary] -> ShowS
$cshowList :: [FleetSummary] -> ShowS
show :: FleetSummary -> String
$cshow :: FleetSummary -> String
showsPrec :: Int -> FleetSummary -> ShowS
$cshowsPrec :: Int -> FleetSummary -> ShowS
Prelude.Show, (forall x. FleetSummary -> Rep FleetSummary x)
-> (forall x. Rep FleetSummary x -> FleetSummary)
-> Generic FleetSummary
forall x. Rep FleetSummary x -> FleetSummary
forall x. FleetSummary -> Rep FleetSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FleetSummary x -> FleetSummary
$cfrom :: forall x. FleetSummary -> Rep FleetSummary x
Prelude.Generic)

-- |
-- Create a value of 'FleetSummary' 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:
--
-- 'lastUpdatedTime', 'fleetSummary_lastUpdatedTime' - The time when the fleet was last updated.
--
-- 'fleetStatus', 'fleetSummary_fleetStatus' - The status of the fleet.
--
-- 'companyCode', 'fleetSummary_companyCode' - The identifier used by users to sign into the Amazon WorkLink app.
--
-- 'createdTime', 'fleetSummary_createdTime' - The time when the fleet was created.
--
-- 'fleetArn', 'fleetSummary_fleetArn' - The Amazon Resource Name (ARN) of the fleet.
--
-- 'displayName', 'fleetSummary_displayName' - The name of the fleet to display.
--
-- 'fleetName', 'fleetSummary_fleetName' - The name of the fleet.
--
-- 'tags', 'fleetSummary_tags' - The tags attached to the resource. A tag is a key-value pair.
newFleetSummary ::
  FleetSummary
newFleetSummary :: FleetSummary
newFleetSummary =
  FleetSummary' :: Maybe POSIX
-> Maybe FleetStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> FleetSummary
FleetSummary'
    { $sel:lastUpdatedTime:FleetSummary' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:fleetStatus:FleetSummary' :: Maybe FleetStatus
fleetStatus = Maybe FleetStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:companyCode:FleetSummary' :: Maybe Text
companyCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdTime:FleetSummary' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:fleetArn:FleetSummary' :: Maybe Text
fleetArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:displayName:FleetSummary' :: Maybe Text
displayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:fleetName:FleetSummary' :: Maybe Text
fleetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:FleetSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | The time when the fleet was last updated.
fleetSummary_lastUpdatedTime :: Lens.Lens' FleetSummary (Prelude.Maybe Prelude.UTCTime)
fleetSummary_lastUpdatedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> FleetSummary -> f FleetSummary
fleetSummary_lastUpdatedTime = (FleetSummary -> Maybe POSIX)
-> (FleetSummary -> Maybe POSIX -> FleetSummary)
-> Lens FleetSummary FleetSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FleetSummary' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:FleetSummary' :: FleetSummary -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: FleetSummary
s@FleetSummary' {} Maybe POSIX
a -> FleetSummary
s {$sel:lastUpdatedTime:FleetSummary' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: FleetSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> FleetSummary -> f FleetSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> FleetSummary
-> f FleetSummary
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 status of the fleet.
fleetSummary_fleetStatus :: Lens.Lens' FleetSummary (Prelude.Maybe FleetStatus)
fleetSummary_fleetStatus :: (Maybe FleetStatus -> f (Maybe FleetStatus))
-> FleetSummary -> f FleetSummary
fleetSummary_fleetStatus = (FleetSummary -> Maybe FleetStatus)
-> (FleetSummary -> Maybe FleetStatus -> FleetSummary)
-> Lens
     FleetSummary FleetSummary (Maybe FleetStatus) (Maybe FleetStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FleetSummary' {Maybe FleetStatus
fleetStatus :: Maybe FleetStatus
$sel:fleetStatus:FleetSummary' :: FleetSummary -> Maybe FleetStatus
fleetStatus} -> Maybe FleetStatus
fleetStatus) (\s :: FleetSummary
s@FleetSummary' {} Maybe FleetStatus
a -> FleetSummary
s {$sel:fleetStatus:FleetSummary' :: Maybe FleetStatus
fleetStatus = Maybe FleetStatus
a} :: FleetSummary)

-- | The identifier used by users to sign into the Amazon WorkLink app.
fleetSummary_companyCode :: Lens.Lens' FleetSummary (Prelude.Maybe Prelude.Text)
fleetSummary_companyCode :: (Maybe Text -> f (Maybe Text)) -> FleetSummary -> f FleetSummary
fleetSummary_companyCode = (FleetSummary -> Maybe Text)
-> (FleetSummary -> Maybe Text -> FleetSummary)
-> Lens FleetSummary FleetSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FleetSummary' {Maybe Text
companyCode :: Maybe Text
$sel:companyCode:FleetSummary' :: FleetSummary -> Maybe Text
companyCode} -> Maybe Text
companyCode) (\s :: FleetSummary
s@FleetSummary' {} Maybe Text
a -> FleetSummary
s {$sel:companyCode:FleetSummary' :: Maybe Text
companyCode = Maybe Text
a} :: FleetSummary)

-- | The time when the fleet was created.
fleetSummary_createdTime :: Lens.Lens' FleetSummary (Prelude.Maybe Prelude.UTCTime)
fleetSummary_createdTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> FleetSummary -> f FleetSummary
fleetSummary_createdTime = (FleetSummary -> Maybe POSIX)
-> (FleetSummary -> Maybe POSIX -> FleetSummary)
-> Lens FleetSummary FleetSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FleetSummary' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:FleetSummary' :: FleetSummary -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: FleetSummary
s@FleetSummary' {} Maybe POSIX
a -> FleetSummary
s {$sel:createdTime:FleetSummary' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: FleetSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> FleetSummary -> f FleetSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> FleetSummary
-> f FleetSummary
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 Amazon Resource Name (ARN) of the fleet.
fleetSummary_fleetArn :: Lens.Lens' FleetSummary (Prelude.Maybe Prelude.Text)
fleetSummary_fleetArn :: (Maybe Text -> f (Maybe Text)) -> FleetSummary -> f FleetSummary
fleetSummary_fleetArn = (FleetSummary -> Maybe Text)
-> (FleetSummary -> Maybe Text -> FleetSummary)
-> Lens FleetSummary FleetSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FleetSummary' {Maybe Text
fleetArn :: Maybe Text
$sel:fleetArn:FleetSummary' :: FleetSummary -> Maybe Text
fleetArn} -> Maybe Text
fleetArn) (\s :: FleetSummary
s@FleetSummary' {} Maybe Text
a -> FleetSummary
s {$sel:fleetArn:FleetSummary' :: Maybe Text
fleetArn = Maybe Text
a} :: FleetSummary)

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

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

-- | The tags attached to the resource. A tag is a key-value pair.
fleetSummary_tags :: Lens.Lens' FleetSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
fleetSummary_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> FleetSummary -> f FleetSummary
fleetSummary_tags = (FleetSummary -> Maybe (HashMap Text Text))
-> (FleetSummary -> Maybe (HashMap Text Text) -> FleetSummary)
-> Lens
     FleetSummary
     FleetSummary
     (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 (\FleetSummary' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:FleetSummary' :: FleetSummary -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: FleetSummary
s@FleetSummary' {} Maybe (HashMap Text Text)
a -> FleetSummary
s {$sel:tags:FleetSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: FleetSummary) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> FleetSummary -> f FleetSummary)
-> ((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)))
-> FleetSummary
-> f FleetSummary
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

instance Core.FromJSON FleetSummary where
  parseJSON :: Value -> Parser FleetSummary
parseJSON =
    String
-> (Object -> Parser FleetSummary) -> Value -> Parser FleetSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"FleetSummary"
      ( \Object
x ->
          Maybe POSIX
-> Maybe FleetStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> FleetSummary
FleetSummary'
            (Maybe POSIX
 -> Maybe FleetStatus
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> FleetSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe FleetStatus
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> FleetSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastUpdatedTime")
            Parser
  (Maybe FleetStatus
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> FleetSummary)
-> Parser (Maybe FleetStatus)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> FleetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FleetStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FleetStatus")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> FleetSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> FleetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CompanyCode")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> FleetSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> FleetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreatedTime")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> FleetSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe (HashMap Text Text) -> FleetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FleetArn")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe (HashMap Text Text) -> FleetSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe (HashMap Text Text) -> FleetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DisplayName")
            Parser (Maybe Text -> Maybe (HashMap Text Text) -> FleetSummary)
-> Parser (Maybe Text)
-> Parser (Maybe (HashMap Text Text) -> FleetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FleetName")
            Parser (Maybe (HashMap Text Text) -> FleetSummary)
-> Parser (Maybe (HashMap Text Text)) -> Parser FleetSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable FleetSummary

instance Prelude.NFData FleetSummary