{-# 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.AppStream.ListAssociatedFleets
(
ListAssociatedFleets (..),
newListAssociatedFleets,
listAssociatedFleets_nextToken,
listAssociatedFleets_stackName,
ListAssociatedFleetsResponse (..),
newListAssociatedFleetsResponse,
listAssociatedFleetsResponse_nextToken,
listAssociatedFleetsResponse_names,
listAssociatedFleetsResponse_httpStatus,
)
where
import Amazonka.AppStream.Types
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
data ListAssociatedFleets = ListAssociatedFleets'
{
ListAssociatedFleets -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAssociatedFleets -> Text
stackName :: Prelude.Text
}
deriving (ListAssociatedFleets -> ListAssociatedFleets -> Bool
(ListAssociatedFleets -> ListAssociatedFleets -> Bool)
-> (ListAssociatedFleets -> ListAssociatedFleets -> Bool)
-> Eq ListAssociatedFleets
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssociatedFleets -> ListAssociatedFleets -> Bool
$c/= :: ListAssociatedFleets -> ListAssociatedFleets -> Bool
== :: ListAssociatedFleets -> ListAssociatedFleets -> Bool
$c== :: ListAssociatedFleets -> ListAssociatedFleets -> Bool
Prelude.Eq, ReadPrec [ListAssociatedFleets]
ReadPrec ListAssociatedFleets
Int -> ReadS ListAssociatedFleets
ReadS [ListAssociatedFleets]
(Int -> ReadS ListAssociatedFleets)
-> ReadS [ListAssociatedFleets]
-> ReadPrec ListAssociatedFleets
-> ReadPrec [ListAssociatedFleets]
-> Read ListAssociatedFleets
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssociatedFleets]
$creadListPrec :: ReadPrec [ListAssociatedFleets]
readPrec :: ReadPrec ListAssociatedFleets
$creadPrec :: ReadPrec ListAssociatedFleets
readList :: ReadS [ListAssociatedFleets]
$creadList :: ReadS [ListAssociatedFleets]
readsPrec :: Int -> ReadS ListAssociatedFleets
$creadsPrec :: Int -> ReadS ListAssociatedFleets
Prelude.Read, Int -> ListAssociatedFleets -> ShowS
[ListAssociatedFleets] -> ShowS
ListAssociatedFleets -> String
(Int -> ListAssociatedFleets -> ShowS)
-> (ListAssociatedFleets -> String)
-> ([ListAssociatedFleets] -> ShowS)
-> Show ListAssociatedFleets
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssociatedFleets] -> ShowS
$cshowList :: [ListAssociatedFleets] -> ShowS
show :: ListAssociatedFleets -> String
$cshow :: ListAssociatedFleets -> String
showsPrec :: Int -> ListAssociatedFleets -> ShowS
$cshowsPrec :: Int -> ListAssociatedFleets -> ShowS
Prelude.Show, (forall x. ListAssociatedFleets -> Rep ListAssociatedFleets x)
-> (forall x. Rep ListAssociatedFleets x -> ListAssociatedFleets)
-> Generic ListAssociatedFleets
forall x. Rep ListAssociatedFleets x -> ListAssociatedFleets
forall x. ListAssociatedFleets -> Rep ListAssociatedFleets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAssociatedFleets x -> ListAssociatedFleets
$cfrom :: forall x. ListAssociatedFleets -> Rep ListAssociatedFleets x
Prelude.Generic)
newListAssociatedFleets ::
Prelude.Text ->
ListAssociatedFleets
newListAssociatedFleets :: Text -> ListAssociatedFleets
newListAssociatedFleets Text
pStackName_ =
ListAssociatedFleets' :: Maybe Text -> Text -> ListAssociatedFleets
ListAssociatedFleets'
{ $sel:nextToken:ListAssociatedFleets' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stackName:ListAssociatedFleets' :: Text
stackName = Text
pStackName_
}
listAssociatedFleets_nextToken :: Lens.Lens' ListAssociatedFleets (Prelude.Maybe Prelude.Text)
listAssociatedFleets_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAssociatedFleets -> f ListAssociatedFleets
listAssociatedFleets_nextToken = (ListAssociatedFleets -> Maybe Text)
-> (ListAssociatedFleets -> Maybe Text -> ListAssociatedFleets)
-> Lens
ListAssociatedFleets ListAssociatedFleets (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedFleets' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssociatedFleets' :: ListAssociatedFleets -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssociatedFleets
s@ListAssociatedFleets' {} Maybe Text
a -> ListAssociatedFleets
s {$sel:nextToken:ListAssociatedFleets' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssociatedFleets)
listAssociatedFleets_stackName :: Lens.Lens' ListAssociatedFleets Prelude.Text
listAssociatedFleets_stackName :: (Text -> f Text) -> ListAssociatedFleets -> f ListAssociatedFleets
listAssociatedFleets_stackName = (ListAssociatedFleets -> Text)
-> (ListAssociatedFleets -> Text -> ListAssociatedFleets)
-> Lens ListAssociatedFleets ListAssociatedFleets Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedFleets' {Text
stackName :: Text
$sel:stackName:ListAssociatedFleets' :: ListAssociatedFleets -> Text
stackName} -> Text
stackName) (\s :: ListAssociatedFleets
s@ListAssociatedFleets' {} Text
a -> ListAssociatedFleets
s {$sel:stackName:ListAssociatedFleets' :: Text
stackName = Text
a} :: ListAssociatedFleets)
instance Core.AWSPager ListAssociatedFleets where
page :: ListAssociatedFleets
-> AWSResponse ListAssociatedFleets -> Maybe ListAssociatedFleets
page ListAssociatedFleets
rq AWSResponse ListAssociatedFleets
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAssociatedFleets
ListAssociatedFleetsResponse
rs
ListAssociatedFleetsResponse
-> Getting (First Text) ListAssociatedFleetsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssociatedFleetsResponse
-> Const (First Text) ListAssociatedFleetsResponse
Lens' ListAssociatedFleetsResponse (Maybe Text)
listAssociatedFleetsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssociatedFleetsResponse
-> Const (First Text) ListAssociatedFleetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAssociatedFleetsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListAssociatedFleets
forall a. Maybe a
Prelude.Nothing
| Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAssociatedFleets
ListAssociatedFleetsResponse
rs
ListAssociatedFleetsResponse
-> Getting (First [Text]) ListAssociatedFleetsResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListAssociatedFleetsResponse
-> Const (First [Text]) ListAssociatedFleetsResponse
Lens' ListAssociatedFleetsResponse (Maybe [Text])
listAssociatedFleetsResponse_names
((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListAssociatedFleetsResponse
-> Const (First [Text]) ListAssociatedFleetsResponse)
-> (([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) ListAssociatedFleetsResponse [Text]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListAssociatedFleets
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListAssociatedFleets -> Maybe ListAssociatedFleets
forall a. a -> Maybe a
Prelude.Just (ListAssociatedFleets -> Maybe ListAssociatedFleets)
-> ListAssociatedFleets -> Maybe ListAssociatedFleets
forall a b. (a -> b) -> a -> b
Prelude.$
ListAssociatedFleets
rq
ListAssociatedFleets
-> (ListAssociatedFleets -> ListAssociatedFleets)
-> ListAssociatedFleets
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAssociatedFleets -> Identity ListAssociatedFleets
Lens
ListAssociatedFleets ListAssociatedFleets (Maybe Text) (Maybe Text)
listAssociatedFleets_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListAssociatedFleets -> Identity ListAssociatedFleets)
-> Maybe Text -> ListAssociatedFleets -> ListAssociatedFleets
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAssociatedFleets
ListAssociatedFleetsResponse
rs
ListAssociatedFleetsResponse
-> Getting (First Text) ListAssociatedFleetsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssociatedFleetsResponse
-> Const (First Text) ListAssociatedFleetsResponse
Lens' ListAssociatedFleetsResponse (Maybe Text)
listAssociatedFleetsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssociatedFleetsResponse
-> Const (First Text) ListAssociatedFleetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAssociatedFleetsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListAssociatedFleets where
type
AWSResponse ListAssociatedFleets =
ListAssociatedFleetsResponse
request :: ListAssociatedFleets -> Request ListAssociatedFleets
request = Service -> ListAssociatedFleets -> Request ListAssociatedFleets
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListAssociatedFleets
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAssociatedFleets)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListAssociatedFleets))
-> Logger
-> Service
-> Proxy ListAssociatedFleets
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAssociatedFleets)))
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 [Text] -> Int -> ListAssociatedFleetsResponse
ListAssociatedFleetsResponse'
(Maybe Text -> Maybe [Text] -> Int -> ListAssociatedFleetsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Text] -> Int -> ListAssociatedFleetsResponse)
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
"NextToken")
Either String (Maybe [Text] -> Int -> ListAssociatedFleetsResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> ListAssociatedFleetsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Names" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListAssociatedFleetsResponse)
-> Either String Int -> Either String ListAssociatedFleetsResponse
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 ListAssociatedFleets
instance Prelude.NFData ListAssociatedFleets
instance Core.ToHeaders ListAssociatedFleets where
toHeaders :: ListAssociatedFleets -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListAssociatedFleets -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"PhotonAdminProxyService.ListAssociatedFleets" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListAssociatedFleets where
toJSON :: ListAssociatedFleets -> Value
toJSON ListAssociatedFleets' {Maybe Text
Text
stackName :: Text
nextToken :: Maybe Text
$sel:stackName:ListAssociatedFleets' :: ListAssociatedFleets -> Text
$sel:nextToken:ListAssociatedFleets' :: ListAssociatedFleets -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"StackName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
stackName)
]
)
instance Core.ToPath ListAssociatedFleets where
toPath :: ListAssociatedFleets -> ByteString
toPath = ByteString -> ListAssociatedFleets -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListAssociatedFleets where
toQuery :: ListAssociatedFleets -> QueryString
toQuery = QueryString -> ListAssociatedFleets -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListAssociatedFleetsResponse = ListAssociatedFleetsResponse'
{
ListAssociatedFleetsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAssociatedFleetsResponse -> Maybe [Text]
names :: Prelude.Maybe [Prelude.Text],
ListAssociatedFleetsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAssociatedFleetsResponse
-> ListAssociatedFleetsResponse -> Bool
(ListAssociatedFleetsResponse
-> ListAssociatedFleetsResponse -> Bool)
-> (ListAssociatedFleetsResponse
-> ListAssociatedFleetsResponse -> Bool)
-> Eq ListAssociatedFleetsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssociatedFleetsResponse
-> ListAssociatedFleetsResponse -> Bool
$c/= :: ListAssociatedFleetsResponse
-> ListAssociatedFleetsResponse -> Bool
== :: ListAssociatedFleetsResponse
-> ListAssociatedFleetsResponse -> Bool
$c== :: ListAssociatedFleetsResponse
-> ListAssociatedFleetsResponse -> Bool
Prelude.Eq, ReadPrec [ListAssociatedFleetsResponse]
ReadPrec ListAssociatedFleetsResponse
Int -> ReadS ListAssociatedFleetsResponse
ReadS [ListAssociatedFleetsResponse]
(Int -> ReadS ListAssociatedFleetsResponse)
-> ReadS [ListAssociatedFleetsResponse]
-> ReadPrec ListAssociatedFleetsResponse
-> ReadPrec [ListAssociatedFleetsResponse]
-> Read ListAssociatedFleetsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssociatedFleetsResponse]
$creadListPrec :: ReadPrec [ListAssociatedFleetsResponse]
readPrec :: ReadPrec ListAssociatedFleetsResponse
$creadPrec :: ReadPrec ListAssociatedFleetsResponse
readList :: ReadS [ListAssociatedFleetsResponse]
$creadList :: ReadS [ListAssociatedFleetsResponse]
readsPrec :: Int -> ReadS ListAssociatedFleetsResponse
$creadsPrec :: Int -> ReadS ListAssociatedFleetsResponse
Prelude.Read, Int -> ListAssociatedFleetsResponse -> ShowS
[ListAssociatedFleetsResponse] -> ShowS
ListAssociatedFleetsResponse -> String
(Int -> ListAssociatedFleetsResponse -> ShowS)
-> (ListAssociatedFleetsResponse -> String)
-> ([ListAssociatedFleetsResponse] -> ShowS)
-> Show ListAssociatedFleetsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssociatedFleetsResponse] -> ShowS
$cshowList :: [ListAssociatedFleetsResponse] -> ShowS
show :: ListAssociatedFleetsResponse -> String
$cshow :: ListAssociatedFleetsResponse -> String
showsPrec :: Int -> ListAssociatedFleetsResponse -> ShowS
$cshowsPrec :: Int -> ListAssociatedFleetsResponse -> ShowS
Prelude.Show, (forall x.
ListAssociatedFleetsResponse -> Rep ListAssociatedFleetsResponse x)
-> (forall x.
Rep ListAssociatedFleetsResponse x -> ListAssociatedFleetsResponse)
-> Generic ListAssociatedFleetsResponse
forall x.
Rep ListAssociatedFleetsResponse x -> ListAssociatedFleetsResponse
forall x.
ListAssociatedFleetsResponse -> Rep ListAssociatedFleetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAssociatedFleetsResponse x -> ListAssociatedFleetsResponse
$cfrom :: forall x.
ListAssociatedFleetsResponse -> Rep ListAssociatedFleetsResponse x
Prelude.Generic)
newListAssociatedFleetsResponse ::
Prelude.Int ->
ListAssociatedFleetsResponse
newListAssociatedFleetsResponse :: Int -> ListAssociatedFleetsResponse
newListAssociatedFleetsResponse Int
pHttpStatus_ =
ListAssociatedFleetsResponse' :: Maybe Text -> Maybe [Text] -> Int -> ListAssociatedFleetsResponse
ListAssociatedFleetsResponse'
{ $sel:nextToken:ListAssociatedFleetsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:names:ListAssociatedFleetsResponse' :: Maybe [Text]
names = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAssociatedFleetsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAssociatedFleetsResponse_nextToken :: Lens.Lens' ListAssociatedFleetsResponse (Prelude.Maybe Prelude.Text)
listAssociatedFleetsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAssociatedFleetsResponse -> f ListAssociatedFleetsResponse
listAssociatedFleetsResponse_nextToken = (ListAssociatedFleetsResponse -> Maybe Text)
-> (ListAssociatedFleetsResponse
-> Maybe Text -> ListAssociatedFleetsResponse)
-> Lens' ListAssociatedFleetsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedFleetsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssociatedFleetsResponse' :: ListAssociatedFleetsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssociatedFleetsResponse
s@ListAssociatedFleetsResponse' {} Maybe Text
a -> ListAssociatedFleetsResponse
s {$sel:nextToken:ListAssociatedFleetsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssociatedFleetsResponse)
listAssociatedFleetsResponse_names :: Lens.Lens' ListAssociatedFleetsResponse (Prelude.Maybe [Prelude.Text])
listAssociatedFleetsResponse_names :: (Maybe [Text] -> f (Maybe [Text]))
-> ListAssociatedFleetsResponse -> f ListAssociatedFleetsResponse
listAssociatedFleetsResponse_names = (ListAssociatedFleetsResponse -> Maybe [Text])
-> (ListAssociatedFleetsResponse
-> Maybe [Text] -> ListAssociatedFleetsResponse)
-> Lens' ListAssociatedFleetsResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedFleetsResponse' {Maybe [Text]
names :: Maybe [Text]
$sel:names:ListAssociatedFleetsResponse' :: ListAssociatedFleetsResponse -> Maybe [Text]
names} -> Maybe [Text]
names) (\s :: ListAssociatedFleetsResponse
s@ListAssociatedFleetsResponse' {} Maybe [Text]
a -> ListAssociatedFleetsResponse
s {$sel:names:ListAssociatedFleetsResponse' :: Maybe [Text]
names = Maybe [Text]
a} :: ListAssociatedFleetsResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> ListAssociatedFleetsResponse -> f ListAssociatedFleetsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListAssociatedFleetsResponse
-> f ListAssociatedFleetsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAssociatedFleetsResponse_httpStatus :: Lens.Lens' ListAssociatedFleetsResponse Prelude.Int
listAssociatedFleetsResponse_httpStatus :: (Int -> f Int)
-> ListAssociatedFleetsResponse -> f ListAssociatedFleetsResponse
listAssociatedFleetsResponse_httpStatus = (ListAssociatedFleetsResponse -> Int)
-> (ListAssociatedFleetsResponse
-> Int -> ListAssociatedFleetsResponse)
-> Lens
ListAssociatedFleetsResponse ListAssociatedFleetsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedFleetsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAssociatedFleetsResponse' :: ListAssociatedFleetsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAssociatedFleetsResponse
s@ListAssociatedFleetsResponse' {} Int
a -> ListAssociatedFleetsResponse
s {$sel:httpStatus:ListAssociatedFleetsResponse' :: Int
httpStatus = Int
a} :: ListAssociatedFleetsResponse)
instance Prelude.NFData ListAssociatedFleetsResponse