{-# 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 #-}
module Amazonka.WorkLink.DescribeFleetMetadata
(
DescribeFleetMetadata (..),
newDescribeFleetMetadata,
describeFleetMetadata_fleetArn,
DescribeFleetMetadataResponse (..),
newDescribeFleetMetadataResponse,
describeFleetMetadataResponse_lastUpdatedTime,
describeFleetMetadataResponse_fleetStatus,
describeFleetMetadataResponse_companyCode,
describeFleetMetadataResponse_createdTime,
describeFleetMetadataResponse_optimizeForEndUserLocation,
describeFleetMetadataResponse_displayName,
describeFleetMetadataResponse_fleetName,
describeFleetMetadataResponse_tags,
describeFleetMetadataResponse_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.WorkLink.Types
data DescribeFleetMetadata = DescribeFleetMetadata'
{
DescribeFleetMetadata -> Text
fleetArn :: Prelude.Text
}
deriving (DescribeFleetMetadata -> DescribeFleetMetadata -> Bool
(DescribeFleetMetadata -> DescribeFleetMetadata -> Bool)
-> (DescribeFleetMetadata -> DescribeFleetMetadata -> Bool)
-> Eq DescribeFleetMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFleetMetadata -> DescribeFleetMetadata -> Bool
$c/= :: DescribeFleetMetadata -> DescribeFleetMetadata -> Bool
== :: DescribeFleetMetadata -> DescribeFleetMetadata -> Bool
$c== :: DescribeFleetMetadata -> DescribeFleetMetadata -> Bool
Prelude.Eq, ReadPrec [DescribeFleetMetadata]
ReadPrec DescribeFleetMetadata
Int -> ReadS DescribeFleetMetadata
ReadS [DescribeFleetMetadata]
(Int -> ReadS DescribeFleetMetadata)
-> ReadS [DescribeFleetMetadata]
-> ReadPrec DescribeFleetMetadata
-> ReadPrec [DescribeFleetMetadata]
-> Read DescribeFleetMetadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFleetMetadata]
$creadListPrec :: ReadPrec [DescribeFleetMetadata]
readPrec :: ReadPrec DescribeFleetMetadata
$creadPrec :: ReadPrec DescribeFleetMetadata
readList :: ReadS [DescribeFleetMetadata]
$creadList :: ReadS [DescribeFleetMetadata]
readsPrec :: Int -> ReadS DescribeFleetMetadata
$creadsPrec :: Int -> ReadS DescribeFleetMetadata
Prelude.Read, Int -> DescribeFleetMetadata -> ShowS
[DescribeFleetMetadata] -> ShowS
DescribeFleetMetadata -> String
(Int -> DescribeFleetMetadata -> ShowS)
-> (DescribeFleetMetadata -> String)
-> ([DescribeFleetMetadata] -> ShowS)
-> Show DescribeFleetMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFleetMetadata] -> ShowS
$cshowList :: [DescribeFleetMetadata] -> ShowS
show :: DescribeFleetMetadata -> String
$cshow :: DescribeFleetMetadata -> String
showsPrec :: Int -> DescribeFleetMetadata -> ShowS
$cshowsPrec :: Int -> DescribeFleetMetadata -> ShowS
Prelude.Show, (forall x. DescribeFleetMetadata -> Rep DescribeFleetMetadata x)
-> (forall x. Rep DescribeFleetMetadata x -> DescribeFleetMetadata)
-> Generic DescribeFleetMetadata
forall x. Rep DescribeFleetMetadata x -> DescribeFleetMetadata
forall x. DescribeFleetMetadata -> Rep DescribeFleetMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeFleetMetadata x -> DescribeFleetMetadata
$cfrom :: forall x. DescribeFleetMetadata -> Rep DescribeFleetMetadata x
Prelude.Generic)
newDescribeFleetMetadata ::
Prelude.Text ->
DescribeFleetMetadata
newDescribeFleetMetadata :: Text -> DescribeFleetMetadata
newDescribeFleetMetadata Text
pFleetArn_ =
DescribeFleetMetadata' :: Text -> DescribeFleetMetadata
DescribeFleetMetadata' {$sel:fleetArn:DescribeFleetMetadata' :: Text
fleetArn = Text
pFleetArn_}
describeFleetMetadata_fleetArn :: Lens.Lens' DescribeFleetMetadata Prelude.Text
describeFleetMetadata_fleetArn :: (Text -> f Text)
-> DescribeFleetMetadata -> f DescribeFleetMetadata
describeFleetMetadata_fleetArn = (DescribeFleetMetadata -> Text)
-> (DescribeFleetMetadata -> Text -> DescribeFleetMetadata)
-> Lens DescribeFleetMetadata DescribeFleetMetadata Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetMetadata' {Text
fleetArn :: Text
$sel:fleetArn:DescribeFleetMetadata' :: DescribeFleetMetadata -> Text
fleetArn} -> Text
fleetArn) (\s :: DescribeFleetMetadata
s@DescribeFleetMetadata' {} Text
a -> DescribeFleetMetadata
s {$sel:fleetArn:DescribeFleetMetadata' :: Text
fleetArn = Text
a} :: DescribeFleetMetadata)
instance Core.AWSRequest DescribeFleetMetadata where
type
AWSResponse DescribeFleetMetadata =
DescribeFleetMetadataResponse
request :: DescribeFleetMetadata -> Request DescribeFleetMetadata
request = Service -> DescribeFleetMetadata -> Request DescribeFleetMetadata
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeFleetMetadata
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeFleetMetadata)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeFleetMetadata))
-> Logger
-> Service
-> Proxy DescribeFleetMetadata
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeFleetMetadata)))
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 POSIX
-> Maybe FleetStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse
DescribeFleetMetadataResponse'
(Maybe POSIX
-> Maybe FleetStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe FleetStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
forall (f :: * -> *) a b. Functor 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
"LastUpdatedTime")
Either
String
(Maybe FleetStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
-> Either String (Maybe FleetStatus)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe FleetStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FleetStatus")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
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
"CompanyCode")
Either
String
(Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
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
"CreatedTime")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OptimizeForEndUserLocation")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
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
"DisplayName")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> DescribeFleetMetadataResponse)
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
"FleetName")
Either
String
(Maybe (HashMap Text Text) -> Int -> DescribeFleetMetadataResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeFleetMetadataResponse)
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 -> DescribeFleetMetadataResponse)
-> Either String Int -> Either String DescribeFleetMetadataResponse
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 DescribeFleetMetadata
instance Prelude.NFData DescribeFleetMetadata
instance Core.ToHeaders DescribeFleetMetadata where
toHeaders :: DescribeFleetMetadata -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeFleetMetadata -> 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 DescribeFleetMetadata where
toJSON :: DescribeFleetMetadata -> Value
toJSON DescribeFleetMetadata' {Text
fleetArn :: Text
$sel:fleetArn:DescribeFleetMetadata' :: DescribeFleetMetadata -> 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
"FleetArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
fleetArn)]
)
instance Core.ToPath DescribeFleetMetadata where
toPath :: DescribeFleetMetadata -> ByteString
toPath = ByteString -> DescribeFleetMetadata -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/describeFleetMetadata"
instance Core.ToQuery DescribeFleetMetadata where
toQuery :: DescribeFleetMetadata -> QueryString
toQuery = QueryString -> DescribeFleetMetadata -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeFleetMetadataResponse = DescribeFleetMetadataResponse'
{
DescribeFleetMetadataResponse -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Core.POSIX,
DescribeFleetMetadataResponse -> Maybe FleetStatus
fleetStatus :: Prelude.Maybe FleetStatus,
DescribeFleetMetadataResponse -> Maybe Text
companyCode :: Prelude.Maybe Prelude.Text,
DescribeFleetMetadataResponse -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
DescribeFleetMetadataResponse -> Maybe Bool
optimizeForEndUserLocation :: Prelude.Maybe Prelude.Bool,
DescribeFleetMetadataResponse -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
DescribeFleetMetadataResponse -> Maybe Text
fleetName :: Prelude.Maybe Prelude.Text,
DescribeFleetMetadataResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeFleetMetadataResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeFleetMetadataResponse
-> DescribeFleetMetadataResponse -> Bool
(DescribeFleetMetadataResponse
-> DescribeFleetMetadataResponse -> Bool)
-> (DescribeFleetMetadataResponse
-> DescribeFleetMetadataResponse -> Bool)
-> Eq DescribeFleetMetadataResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFleetMetadataResponse
-> DescribeFleetMetadataResponse -> Bool
$c/= :: DescribeFleetMetadataResponse
-> DescribeFleetMetadataResponse -> Bool
== :: DescribeFleetMetadataResponse
-> DescribeFleetMetadataResponse -> Bool
$c== :: DescribeFleetMetadataResponse
-> DescribeFleetMetadataResponse -> Bool
Prelude.Eq, ReadPrec [DescribeFleetMetadataResponse]
ReadPrec DescribeFleetMetadataResponse
Int -> ReadS DescribeFleetMetadataResponse
ReadS [DescribeFleetMetadataResponse]
(Int -> ReadS DescribeFleetMetadataResponse)
-> ReadS [DescribeFleetMetadataResponse]
-> ReadPrec DescribeFleetMetadataResponse
-> ReadPrec [DescribeFleetMetadataResponse]
-> Read DescribeFleetMetadataResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFleetMetadataResponse]
$creadListPrec :: ReadPrec [DescribeFleetMetadataResponse]
readPrec :: ReadPrec DescribeFleetMetadataResponse
$creadPrec :: ReadPrec DescribeFleetMetadataResponse
readList :: ReadS [DescribeFleetMetadataResponse]
$creadList :: ReadS [DescribeFleetMetadataResponse]
readsPrec :: Int -> ReadS DescribeFleetMetadataResponse
$creadsPrec :: Int -> ReadS DescribeFleetMetadataResponse
Prelude.Read, Int -> DescribeFleetMetadataResponse -> ShowS
[DescribeFleetMetadataResponse] -> ShowS
DescribeFleetMetadataResponse -> String
(Int -> DescribeFleetMetadataResponse -> ShowS)
-> (DescribeFleetMetadataResponse -> String)
-> ([DescribeFleetMetadataResponse] -> ShowS)
-> Show DescribeFleetMetadataResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFleetMetadataResponse] -> ShowS
$cshowList :: [DescribeFleetMetadataResponse] -> ShowS
show :: DescribeFleetMetadataResponse -> String
$cshow :: DescribeFleetMetadataResponse -> String
showsPrec :: Int -> DescribeFleetMetadataResponse -> ShowS
$cshowsPrec :: Int -> DescribeFleetMetadataResponse -> ShowS
Prelude.Show, (forall x.
DescribeFleetMetadataResponse
-> Rep DescribeFleetMetadataResponse x)
-> (forall x.
Rep DescribeFleetMetadataResponse x
-> DescribeFleetMetadataResponse)
-> Generic DescribeFleetMetadataResponse
forall x.
Rep DescribeFleetMetadataResponse x
-> DescribeFleetMetadataResponse
forall x.
DescribeFleetMetadataResponse
-> Rep DescribeFleetMetadataResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeFleetMetadataResponse x
-> DescribeFleetMetadataResponse
$cfrom :: forall x.
DescribeFleetMetadataResponse
-> Rep DescribeFleetMetadataResponse x
Prelude.Generic)
newDescribeFleetMetadataResponse ::
Prelude.Int ->
DescribeFleetMetadataResponse
newDescribeFleetMetadataResponse :: Int -> DescribeFleetMetadataResponse
newDescribeFleetMetadataResponse Int
pHttpStatus_ =
DescribeFleetMetadataResponse' :: Maybe POSIX
-> Maybe FleetStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeFleetMetadataResponse
DescribeFleetMetadataResponse'
{ $sel:lastUpdatedTime:DescribeFleetMetadataResponse' :: Maybe POSIX
lastUpdatedTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:fleetStatus:DescribeFleetMetadataResponse' :: Maybe FleetStatus
fleetStatus = Maybe FleetStatus
forall a. Maybe a
Prelude.Nothing,
$sel:companyCode:DescribeFleetMetadataResponse' :: Maybe Text
companyCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:DescribeFleetMetadataResponse' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:optimizeForEndUserLocation:DescribeFleetMetadataResponse' :: Maybe Bool
optimizeForEndUserLocation = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:displayName:DescribeFleetMetadataResponse' :: Maybe Text
displayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fleetName:DescribeFleetMetadataResponse' :: Maybe Text
fleetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeFleetMetadataResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeFleetMetadataResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeFleetMetadataResponse_lastUpdatedTime :: Lens.Lens' DescribeFleetMetadataResponse (Prelude.Maybe Prelude.UTCTime)
describeFleetMetadataResponse_lastUpdatedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeFleetMetadataResponse -> f DescribeFleetMetadataResponse
describeFleetMetadataResponse_lastUpdatedTime = (DescribeFleetMetadataResponse -> Maybe POSIX)
-> (DescribeFleetMetadataResponse
-> Maybe POSIX -> DescribeFleetMetadataResponse)
-> Lens
DescribeFleetMetadataResponse
DescribeFleetMetadataResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetMetadataResponse' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:DescribeFleetMetadataResponse' :: DescribeFleetMetadataResponse -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: DescribeFleetMetadataResponse
s@DescribeFleetMetadataResponse' {} Maybe POSIX
a -> DescribeFleetMetadataResponse
s {$sel:lastUpdatedTime:DescribeFleetMetadataResponse' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: DescribeFleetMetadataResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeFleetMetadataResponse
-> f DescribeFleetMetadataResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeFleetMetadataResponse
-> f DescribeFleetMetadataResponse
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
describeFleetMetadataResponse_fleetStatus :: Lens.Lens' DescribeFleetMetadataResponse (Prelude.Maybe FleetStatus)
describeFleetMetadataResponse_fleetStatus :: (Maybe FleetStatus -> f (Maybe FleetStatus))
-> DescribeFleetMetadataResponse -> f DescribeFleetMetadataResponse
describeFleetMetadataResponse_fleetStatus = (DescribeFleetMetadataResponse -> Maybe FleetStatus)
-> (DescribeFleetMetadataResponse
-> Maybe FleetStatus -> DescribeFleetMetadataResponse)
-> Lens
DescribeFleetMetadataResponse
DescribeFleetMetadataResponse
(Maybe FleetStatus)
(Maybe FleetStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetMetadataResponse' {Maybe FleetStatus
fleetStatus :: Maybe FleetStatus
$sel:fleetStatus:DescribeFleetMetadataResponse' :: DescribeFleetMetadataResponse -> Maybe FleetStatus
fleetStatus} -> Maybe FleetStatus
fleetStatus) (\s :: DescribeFleetMetadataResponse
s@DescribeFleetMetadataResponse' {} Maybe FleetStatus
a -> DescribeFleetMetadataResponse
s {$sel:fleetStatus:DescribeFleetMetadataResponse' :: Maybe FleetStatus
fleetStatus = Maybe FleetStatus
a} :: DescribeFleetMetadataResponse)
describeFleetMetadataResponse_companyCode :: Lens.Lens' DescribeFleetMetadataResponse (Prelude.Maybe Prelude.Text)
describeFleetMetadataResponse_companyCode :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetMetadataResponse -> f DescribeFleetMetadataResponse
describeFleetMetadataResponse_companyCode = (DescribeFleetMetadataResponse -> Maybe Text)
-> (DescribeFleetMetadataResponse
-> Maybe Text -> DescribeFleetMetadataResponse)
-> Lens
DescribeFleetMetadataResponse
DescribeFleetMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetMetadataResponse' {Maybe Text
companyCode :: Maybe Text
$sel:companyCode:DescribeFleetMetadataResponse' :: DescribeFleetMetadataResponse -> Maybe Text
companyCode} -> Maybe Text
companyCode) (\s :: DescribeFleetMetadataResponse
s@DescribeFleetMetadataResponse' {} Maybe Text
a -> DescribeFleetMetadataResponse
s {$sel:companyCode:DescribeFleetMetadataResponse' :: Maybe Text
companyCode = Maybe Text
a} :: DescribeFleetMetadataResponse)
describeFleetMetadataResponse_createdTime :: Lens.Lens' DescribeFleetMetadataResponse (Prelude.Maybe Prelude.UTCTime)
describeFleetMetadataResponse_createdTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeFleetMetadataResponse -> f DescribeFleetMetadataResponse
describeFleetMetadataResponse_createdTime = (DescribeFleetMetadataResponse -> Maybe POSIX)
-> (DescribeFleetMetadataResponse
-> Maybe POSIX -> DescribeFleetMetadataResponse)
-> Lens
DescribeFleetMetadataResponse
DescribeFleetMetadataResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetMetadataResponse' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:DescribeFleetMetadataResponse' :: DescribeFleetMetadataResponse -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: DescribeFleetMetadataResponse
s@DescribeFleetMetadataResponse' {} Maybe POSIX
a -> DescribeFleetMetadataResponse
s {$sel:createdTime:DescribeFleetMetadataResponse' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: DescribeFleetMetadataResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeFleetMetadataResponse
-> f DescribeFleetMetadataResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeFleetMetadataResponse
-> f DescribeFleetMetadataResponse
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
describeFleetMetadataResponse_optimizeForEndUserLocation :: Lens.Lens' DescribeFleetMetadataResponse (Prelude.Maybe Prelude.Bool)
describeFleetMetadataResponse_optimizeForEndUserLocation :: (Maybe Bool -> f (Maybe Bool))
-> DescribeFleetMetadataResponse -> f DescribeFleetMetadataResponse
describeFleetMetadataResponse_optimizeForEndUserLocation = (DescribeFleetMetadataResponse -> Maybe Bool)
-> (DescribeFleetMetadataResponse
-> Maybe Bool -> DescribeFleetMetadataResponse)
-> Lens
DescribeFleetMetadataResponse
DescribeFleetMetadataResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetMetadataResponse' {Maybe Bool
optimizeForEndUserLocation :: Maybe Bool
$sel:optimizeForEndUserLocation:DescribeFleetMetadataResponse' :: DescribeFleetMetadataResponse -> Maybe Bool
optimizeForEndUserLocation} -> Maybe Bool
optimizeForEndUserLocation) (\s :: DescribeFleetMetadataResponse
s@DescribeFleetMetadataResponse' {} Maybe Bool
a -> DescribeFleetMetadataResponse
s {$sel:optimizeForEndUserLocation:DescribeFleetMetadataResponse' :: Maybe Bool
optimizeForEndUserLocation = Maybe Bool
a} :: DescribeFleetMetadataResponse)
describeFleetMetadataResponse_displayName :: Lens.Lens' DescribeFleetMetadataResponse (Prelude.Maybe Prelude.Text)
describeFleetMetadataResponse_displayName :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetMetadataResponse -> f DescribeFleetMetadataResponse
describeFleetMetadataResponse_displayName = (DescribeFleetMetadataResponse -> Maybe Text)
-> (DescribeFleetMetadataResponse
-> Maybe Text -> DescribeFleetMetadataResponse)
-> Lens
DescribeFleetMetadataResponse
DescribeFleetMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetMetadataResponse' {Maybe Text
displayName :: Maybe Text
$sel:displayName:DescribeFleetMetadataResponse' :: DescribeFleetMetadataResponse -> Maybe Text
displayName} -> Maybe Text
displayName) (\s :: DescribeFleetMetadataResponse
s@DescribeFleetMetadataResponse' {} Maybe Text
a -> DescribeFleetMetadataResponse
s {$sel:displayName:DescribeFleetMetadataResponse' :: Maybe Text
displayName = Maybe Text
a} :: DescribeFleetMetadataResponse)
describeFleetMetadataResponse_fleetName :: Lens.Lens' DescribeFleetMetadataResponse (Prelude.Maybe Prelude.Text)
describeFleetMetadataResponse_fleetName :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetMetadataResponse -> f DescribeFleetMetadataResponse
describeFleetMetadataResponse_fleetName = (DescribeFleetMetadataResponse -> Maybe Text)
-> (DescribeFleetMetadataResponse
-> Maybe Text -> DescribeFleetMetadataResponse)
-> Lens
DescribeFleetMetadataResponse
DescribeFleetMetadataResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetMetadataResponse' {Maybe Text
fleetName :: Maybe Text
$sel:fleetName:DescribeFleetMetadataResponse' :: DescribeFleetMetadataResponse -> Maybe Text
fleetName} -> Maybe Text
fleetName) (\s :: DescribeFleetMetadataResponse
s@DescribeFleetMetadataResponse' {} Maybe Text
a -> DescribeFleetMetadataResponse
s {$sel:fleetName:DescribeFleetMetadataResponse' :: Maybe Text
fleetName = Maybe Text
a} :: DescribeFleetMetadataResponse)
describeFleetMetadataResponse_tags :: Lens.Lens' DescribeFleetMetadataResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeFleetMetadataResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeFleetMetadataResponse -> f DescribeFleetMetadataResponse
describeFleetMetadataResponse_tags = (DescribeFleetMetadataResponse -> Maybe (HashMap Text Text))
-> (DescribeFleetMetadataResponse
-> Maybe (HashMap Text Text) -> DescribeFleetMetadataResponse)
-> Lens
DescribeFleetMetadataResponse
DescribeFleetMetadataResponse
(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 (\DescribeFleetMetadataResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeFleetMetadataResponse' :: DescribeFleetMetadataResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeFleetMetadataResponse
s@DescribeFleetMetadataResponse' {} Maybe (HashMap Text Text)
a -> DescribeFleetMetadataResponse
s {$sel:tags:DescribeFleetMetadataResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeFleetMetadataResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeFleetMetadataResponse
-> f DescribeFleetMetadataResponse)
-> ((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)))
-> DescribeFleetMetadataResponse
-> f DescribeFleetMetadataResponse
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
describeFleetMetadataResponse_httpStatus :: Lens.Lens' DescribeFleetMetadataResponse Prelude.Int
describeFleetMetadataResponse_httpStatus :: (Int -> f Int)
-> DescribeFleetMetadataResponse -> f DescribeFleetMetadataResponse
describeFleetMetadataResponse_httpStatus = (DescribeFleetMetadataResponse -> Int)
-> (DescribeFleetMetadataResponse
-> Int -> DescribeFleetMetadataResponse)
-> Lens
DescribeFleetMetadataResponse DescribeFleetMetadataResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetMetadataResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeFleetMetadataResponse' :: DescribeFleetMetadataResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeFleetMetadataResponse
s@DescribeFleetMetadataResponse' {} Int
a -> DescribeFleetMetadataResponse
s {$sel:httpStatus:DescribeFleetMetadataResponse' :: Int
httpStatus = Int
a} :: DescribeFleetMetadataResponse)
instance Prelude.NFData DescribeFleetMetadataResponse