{-# 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.GameLift.DescribeFleetLocationAttributes
(
DescribeFleetLocationAttributes (..),
newDescribeFleetLocationAttributes,
describeFleetLocationAttributes_nextToken,
describeFleetLocationAttributes_limit,
describeFleetLocationAttributes_locations,
describeFleetLocationAttributes_fleetId,
DescribeFleetLocationAttributesResponse (..),
newDescribeFleetLocationAttributesResponse,
describeFleetLocationAttributesResponse_fleetArn,
describeFleetLocationAttributesResponse_nextToken,
describeFleetLocationAttributesResponse_locationAttributes,
describeFleetLocationAttributesResponse_fleetId,
describeFleetLocationAttributesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GameLift.Types
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 DescribeFleetLocationAttributes = DescribeFleetLocationAttributes'
{
DescribeFleetLocationAttributes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeFleetLocationAttributes -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
DescribeFleetLocationAttributes -> Maybe (NonEmpty Text)
locations :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
DescribeFleetLocationAttributes -> Text
fleetId :: Prelude.Text
}
deriving (DescribeFleetLocationAttributes
-> DescribeFleetLocationAttributes -> Bool
(DescribeFleetLocationAttributes
-> DescribeFleetLocationAttributes -> Bool)
-> (DescribeFleetLocationAttributes
-> DescribeFleetLocationAttributes -> Bool)
-> Eq DescribeFleetLocationAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFleetLocationAttributes
-> DescribeFleetLocationAttributes -> Bool
$c/= :: DescribeFleetLocationAttributes
-> DescribeFleetLocationAttributes -> Bool
== :: DescribeFleetLocationAttributes
-> DescribeFleetLocationAttributes -> Bool
$c== :: DescribeFleetLocationAttributes
-> DescribeFleetLocationAttributes -> Bool
Prelude.Eq, ReadPrec [DescribeFleetLocationAttributes]
ReadPrec DescribeFleetLocationAttributes
Int -> ReadS DescribeFleetLocationAttributes
ReadS [DescribeFleetLocationAttributes]
(Int -> ReadS DescribeFleetLocationAttributes)
-> ReadS [DescribeFleetLocationAttributes]
-> ReadPrec DescribeFleetLocationAttributes
-> ReadPrec [DescribeFleetLocationAttributes]
-> Read DescribeFleetLocationAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFleetLocationAttributes]
$creadListPrec :: ReadPrec [DescribeFleetLocationAttributes]
readPrec :: ReadPrec DescribeFleetLocationAttributes
$creadPrec :: ReadPrec DescribeFleetLocationAttributes
readList :: ReadS [DescribeFleetLocationAttributes]
$creadList :: ReadS [DescribeFleetLocationAttributes]
readsPrec :: Int -> ReadS DescribeFleetLocationAttributes
$creadsPrec :: Int -> ReadS DescribeFleetLocationAttributes
Prelude.Read, Int -> DescribeFleetLocationAttributes -> ShowS
[DescribeFleetLocationAttributes] -> ShowS
DescribeFleetLocationAttributes -> String
(Int -> DescribeFleetLocationAttributes -> ShowS)
-> (DescribeFleetLocationAttributes -> String)
-> ([DescribeFleetLocationAttributes] -> ShowS)
-> Show DescribeFleetLocationAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFleetLocationAttributes] -> ShowS
$cshowList :: [DescribeFleetLocationAttributes] -> ShowS
show :: DescribeFleetLocationAttributes -> String
$cshow :: DescribeFleetLocationAttributes -> String
showsPrec :: Int -> DescribeFleetLocationAttributes -> ShowS
$cshowsPrec :: Int -> DescribeFleetLocationAttributes -> ShowS
Prelude.Show, (forall x.
DescribeFleetLocationAttributes
-> Rep DescribeFleetLocationAttributes x)
-> (forall x.
Rep DescribeFleetLocationAttributes x
-> DescribeFleetLocationAttributes)
-> Generic DescribeFleetLocationAttributes
forall x.
Rep DescribeFleetLocationAttributes x
-> DescribeFleetLocationAttributes
forall x.
DescribeFleetLocationAttributes
-> Rep DescribeFleetLocationAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeFleetLocationAttributes x
-> DescribeFleetLocationAttributes
$cfrom :: forall x.
DescribeFleetLocationAttributes
-> Rep DescribeFleetLocationAttributes x
Prelude.Generic)
newDescribeFleetLocationAttributes ::
Prelude.Text ->
DescribeFleetLocationAttributes
newDescribeFleetLocationAttributes :: Text -> DescribeFleetLocationAttributes
newDescribeFleetLocationAttributes Text
pFleetId_ =
DescribeFleetLocationAttributes' :: Maybe Text
-> Maybe Natural
-> Maybe (NonEmpty Text)
-> Text
-> DescribeFleetLocationAttributes
DescribeFleetLocationAttributes'
{ $sel:nextToken:DescribeFleetLocationAttributes' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:DescribeFleetLocationAttributes' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:locations:DescribeFleetLocationAttributes' :: Maybe (NonEmpty Text)
locations = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:fleetId:DescribeFleetLocationAttributes' :: Text
fleetId = Text
pFleetId_
}
describeFleetLocationAttributes_nextToken :: Lens.Lens' DescribeFleetLocationAttributes (Prelude.Maybe Prelude.Text)
describeFleetLocationAttributes_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetLocationAttributes
-> f DescribeFleetLocationAttributes
describeFleetLocationAttributes_nextToken = (DescribeFleetLocationAttributes -> Maybe Text)
-> (DescribeFleetLocationAttributes
-> Maybe Text -> DescribeFleetLocationAttributes)
-> Lens
DescribeFleetLocationAttributes
DescribeFleetLocationAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetLocationAttributes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeFleetLocationAttributes' :: DescribeFleetLocationAttributes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeFleetLocationAttributes
s@DescribeFleetLocationAttributes' {} Maybe Text
a -> DescribeFleetLocationAttributes
s {$sel:nextToken:DescribeFleetLocationAttributes' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeFleetLocationAttributes)
describeFleetLocationAttributes_limit :: Lens.Lens' DescribeFleetLocationAttributes (Prelude.Maybe Prelude.Natural)
describeFleetLocationAttributes_limit :: (Maybe Natural -> f (Maybe Natural))
-> DescribeFleetLocationAttributes
-> f DescribeFleetLocationAttributes
describeFleetLocationAttributes_limit = (DescribeFleetLocationAttributes -> Maybe Natural)
-> (DescribeFleetLocationAttributes
-> Maybe Natural -> DescribeFleetLocationAttributes)
-> Lens
DescribeFleetLocationAttributes
DescribeFleetLocationAttributes
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetLocationAttributes' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribeFleetLocationAttributes' :: DescribeFleetLocationAttributes -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribeFleetLocationAttributes
s@DescribeFleetLocationAttributes' {} Maybe Natural
a -> DescribeFleetLocationAttributes
s {$sel:limit:DescribeFleetLocationAttributes' :: Maybe Natural
limit = Maybe Natural
a} :: DescribeFleetLocationAttributes)
describeFleetLocationAttributes_locations :: Lens.Lens' DescribeFleetLocationAttributes (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
describeFleetLocationAttributes_locations :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeFleetLocationAttributes
-> f DescribeFleetLocationAttributes
describeFleetLocationAttributes_locations = (DescribeFleetLocationAttributes -> Maybe (NonEmpty Text))
-> (DescribeFleetLocationAttributes
-> Maybe (NonEmpty Text) -> DescribeFleetLocationAttributes)
-> Lens
DescribeFleetLocationAttributes
DescribeFleetLocationAttributes
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetLocationAttributes' {Maybe (NonEmpty Text)
locations :: Maybe (NonEmpty Text)
$sel:locations:DescribeFleetLocationAttributes' :: DescribeFleetLocationAttributes -> Maybe (NonEmpty Text)
locations} -> Maybe (NonEmpty Text)
locations) (\s :: DescribeFleetLocationAttributes
s@DescribeFleetLocationAttributes' {} Maybe (NonEmpty Text)
a -> DescribeFleetLocationAttributes
s {$sel:locations:DescribeFleetLocationAttributes' :: Maybe (NonEmpty Text)
locations = Maybe (NonEmpty Text)
a} :: DescribeFleetLocationAttributes) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeFleetLocationAttributes
-> f DescribeFleetLocationAttributes)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeFleetLocationAttributes
-> f DescribeFleetLocationAttributes
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeFleetLocationAttributes_fleetId :: Lens.Lens' DescribeFleetLocationAttributes Prelude.Text
describeFleetLocationAttributes_fleetId :: (Text -> f Text)
-> DescribeFleetLocationAttributes
-> f DescribeFleetLocationAttributes
describeFleetLocationAttributes_fleetId = (DescribeFleetLocationAttributes -> Text)
-> (DescribeFleetLocationAttributes
-> Text -> DescribeFleetLocationAttributes)
-> Lens
DescribeFleetLocationAttributes
DescribeFleetLocationAttributes
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetLocationAttributes' {Text
fleetId :: Text
$sel:fleetId:DescribeFleetLocationAttributes' :: DescribeFleetLocationAttributes -> Text
fleetId} -> Text
fleetId) (\s :: DescribeFleetLocationAttributes
s@DescribeFleetLocationAttributes' {} Text
a -> DescribeFleetLocationAttributes
s {$sel:fleetId:DescribeFleetLocationAttributes' :: Text
fleetId = Text
a} :: DescribeFleetLocationAttributes)
instance
Core.AWSRequest
DescribeFleetLocationAttributes
where
type
AWSResponse DescribeFleetLocationAttributes =
DescribeFleetLocationAttributesResponse
request :: DescribeFleetLocationAttributes
-> Request DescribeFleetLocationAttributes
request = Service
-> DescribeFleetLocationAttributes
-> Request DescribeFleetLocationAttributes
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeFleetLocationAttributes
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeFleetLocationAttributes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeFleetLocationAttributes))
-> Logger
-> Service
-> Proxy DescribeFleetLocationAttributes
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeFleetLocationAttributes)))
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
-> Maybe [LocationAttributes]
-> Maybe Text
-> Int
-> DescribeFleetLocationAttributesResponse
DescribeFleetLocationAttributesResponse'
(Maybe Text
-> Maybe Text
-> Maybe [LocationAttributes]
-> Maybe Text
-> Int
-> DescribeFleetLocationAttributesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [LocationAttributes]
-> Maybe Text
-> Int
-> DescribeFleetLocationAttributesResponse)
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
"FleetArn")
Either
String
(Maybe Text
-> Maybe [LocationAttributes]
-> Maybe Text
-> Int
-> DescribeFleetLocationAttributesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [LocationAttributes]
-> Maybe Text -> Int -> DescribeFleetLocationAttributesResponse)
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
"NextToken")
Either
String
(Maybe [LocationAttributes]
-> Maybe Text -> Int -> DescribeFleetLocationAttributesResponse)
-> Either String (Maybe [LocationAttributes])
-> Either
String
(Maybe Text -> Int -> DescribeFleetLocationAttributesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [LocationAttributes]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LocationAttributes"
Either String (Maybe (Maybe [LocationAttributes]))
-> Maybe [LocationAttributes]
-> Either String (Maybe [LocationAttributes])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LocationAttributes]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text -> Int -> DescribeFleetLocationAttributesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeFleetLocationAttributesResponse)
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
"FleetId")
Either String (Int -> DescribeFleetLocationAttributesResponse)
-> Either String Int
-> Either String DescribeFleetLocationAttributesResponse
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
DescribeFleetLocationAttributes
instance
Prelude.NFData
DescribeFleetLocationAttributes
instance
Core.ToHeaders
DescribeFleetLocationAttributes
where
toHeaders :: DescribeFleetLocationAttributes -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeFleetLocationAttributes -> 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
"GameLift.DescribeFleetLocationAttributes" ::
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 DescribeFleetLocationAttributes where
toJSON :: DescribeFleetLocationAttributes -> Value
toJSON DescribeFleetLocationAttributes' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Text
fleetId :: Text
locations :: Maybe (NonEmpty Text)
limit :: Maybe Natural
nextToken :: Maybe Text
$sel:fleetId:DescribeFleetLocationAttributes' :: DescribeFleetLocationAttributes -> Text
$sel:locations:DescribeFleetLocationAttributes' :: DescribeFleetLocationAttributes -> Maybe (NonEmpty Text)
$sel:limit:DescribeFleetLocationAttributes' :: DescribeFleetLocationAttributes -> Maybe Natural
$sel:nextToken:DescribeFleetLocationAttributes' :: DescribeFleetLocationAttributes -> 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,
(Text
"Limit" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit,
(Text
"Locations" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
locations,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"FleetId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
fleetId)
]
)
instance Core.ToPath DescribeFleetLocationAttributes where
toPath :: DescribeFleetLocationAttributes -> ByteString
toPath = ByteString -> DescribeFleetLocationAttributes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeFleetLocationAttributes where
toQuery :: DescribeFleetLocationAttributes -> QueryString
toQuery = QueryString -> DescribeFleetLocationAttributes -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeFleetLocationAttributesResponse = DescribeFleetLocationAttributesResponse'
{
DescribeFleetLocationAttributesResponse -> Maybe Text
fleetArn :: Prelude.Maybe Prelude.Text,
DescribeFleetLocationAttributesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeFleetLocationAttributesResponse
-> Maybe [LocationAttributes]
locationAttributes :: Prelude.Maybe [LocationAttributes],
DescribeFleetLocationAttributesResponse -> Maybe Text
fleetId :: Prelude.Maybe Prelude.Text,
DescribeFleetLocationAttributesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeFleetLocationAttributesResponse
-> DescribeFleetLocationAttributesResponse -> Bool
(DescribeFleetLocationAttributesResponse
-> DescribeFleetLocationAttributesResponse -> Bool)
-> (DescribeFleetLocationAttributesResponse
-> DescribeFleetLocationAttributesResponse -> Bool)
-> Eq DescribeFleetLocationAttributesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFleetLocationAttributesResponse
-> DescribeFleetLocationAttributesResponse -> Bool
$c/= :: DescribeFleetLocationAttributesResponse
-> DescribeFleetLocationAttributesResponse -> Bool
== :: DescribeFleetLocationAttributesResponse
-> DescribeFleetLocationAttributesResponse -> Bool
$c== :: DescribeFleetLocationAttributesResponse
-> DescribeFleetLocationAttributesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeFleetLocationAttributesResponse]
ReadPrec DescribeFleetLocationAttributesResponse
Int -> ReadS DescribeFleetLocationAttributesResponse
ReadS [DescribeFleetLocationAttributesResponse]
(Int -> ReadS DescribeFleetLocationAttributesResponse)
-> ReadS [DescribeFleetLocationAttributesResponse]
-> ReadPrec DescribeFleetLocationAttributesResponse
-> ReadPrec [DescribeFleetLocationAttributesResponse]
-> Read DescribeFleetLocationAttributesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFleetLocationAttributesResponse]
$creadListPrec :: ReadPrec [DescribeFleetLocationAttributesResponse]
readPrec :: ReadPrec DescribeFleetLocationAttributesResponse
$creadPrec :: ReadPrec DescribeFleetLocationAttributesResponse
readList :: ReadS [DescribeFleetLocationAttributesResponse]
$creadList :: ReadS [DescribeFleetLocationAttributesResponse]
readsPrec :: Int -> ReadS DescribeFleetLocationAttributesResponse
$creadsPrec :: Int -> ReadS DescribeFleetLocationAttributesResponse
Prelude.Read, Int -> DescribeFleetLocationAttributesResponse -> ShowS
[DescribeFleetLocationAttributesResponse] -> ShowS
DescribeFleetLocationAttributesResponse -> String
(Int -> DescribeFleetLocationAttributesResponse -> ShowS)
-> (DescribeFleetLocationAttributesResponse -> String)
-> ([DescribeFleetLocationAttributesResponse] -> ShowS)
-> Show DescribeFleetLocationAttributesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFleetLocationAttributesResponse] -> ShowS
$cshowList :: [DescribeFleetLocationAttributesResponse] -> ShowS
show :: DescribeFleetLocationAttributesResponse -> String
$cshow :: DescribeFleetLocationAttributesResponse -> String
showsPrec :: Int -> DescribeFleetLocationAttributesResponse -> ShowS
$cshowsPrec :: Int -> DescribeFleetLocationAttributesResponse -> ShowS
Prelude.Show, (forall x.
DescribeFleetLocationAttributesResponse
-> Rep DescribeFleetLocationAttributesResponse x)
-> (forall x.
Rep DescribeFleetLocationAttributesResponse x
-> DescribeFleetLocationAttributesResponse)
-> Generic DescribeFleetLocationAttributesResponse
forall x.
Rep DescribeFleetLocationAttributesResponse x
-> DescribeFleetLocationAttributesResponse
forall x.
DescribeFleetLocationAttributesResponse
-> Rep DescribeFleetLocationAttributesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeFleetLocationAttributesResponse x
-> DescribeFleetLocationAttributesResponse
$cfrom :: forall x.
DescribeFleetLocationAttributesResponse
-> Rep DescribeFleetLocationAttributesResponse x
Prelude.Generic)
newDescribeFleetLocationAttributesResponse ::
Prelude.Int ->
DescribeFleetLocationAttributesResponse
newDescribeFleetLocationAttributesResponse :: Int -> DescribeFleetLocationAttributesResponse
newDescribeFleetLocationAttributesResponse
Int
pHttpStatus_ =
DescribeFleetLocationAttributesResponse' :: Maybe Text
-> Maybe Text
-> Maybe [LocationAttributes]
-> Maybe Text
-> Int
-> DescribeFleetLocationAttributesResponse
DescribeFleetLocationAttributesResponse'
{ $sel:fleetArn:DescribeFleetLocationAttributesResponse' :: Maybe Text
fleetArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeFleetLocationAttributesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:locationAttributes:DescribeFleetLocationAttributesResponse' :: Maybe [LocationAttributes]
locationAttributes =
Maybe [LocationAttributes]
forall a. Maybe a
Prelude.Nothing,
$sel:fleetId:DescribeFleetLocationAttributesResponse' :: Maybe Text
fleetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeFleetLocationAttributesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeFleetLocationAttributesResponse_fleetArn :: Lens.Lens' DescribeFleetLocationAttributesResponse (Prelude.Maybe Prelude.Text)
describeFleetLocationAttributesResponse_fleetArn :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetLocationAttributesResponse
-> f DescribeFleetLocationAttributesResponse
describeFleetLocationAttributesResponse_fleetArn = (DescribeFleetLocationAttributesResponse -> Maybe Text)
-> (DescribeFleetLocationAttributesResponse
-> Maybe Text -> DescribeFleetLocationAttributesResponse)
-> Lens
DescribeFleetLocationAttributesResponse
DescribeFleetLocationAttributesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetLocationAttributesResponse' {Maybe Text
fleetArn :: Maybe Text
$sel:fleetArn:DescribeFleetLocationAttributesResponse' :: DescribeFleetLocationAttributesResponse -> Maybe Text
fleetArn} -> Maybe Text
fleetArn) (\s :: DescribeFleetLocationAttributesResponse
s@DescribeFleetLocationAttributesResponse' {} Maybe Text
a -> DescribeFleetLocationAttributesResponse
s {$sel:fleetArn:DescribeFleetLocationAttributesResponse' :: Maybe Text
fleetArn = Maybe Text
a} :: DescribeFleetLocationAttributesResponse)
describeFleetLocationAttributesResponse_nextToken :: Lens.Lens' DescribeFleetLocationAttributesResponse (Prelude.Maybe Prelude.Text)
describeFleetLocationAttributesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetLocationAttributesResponse
-> f DescribeFleetLocationAttributesResponse
describeFleetLocationAttributesResponse_nextToken = (DescribeFleetLocationAttributesResponse -> Maybe Text)
-> (DescribeFleetLocationAttributesResponse
-> Maybe Text -> DescribeFleetLocationAttributesResponse)
-> Lens
DescribeFleetLocationAttributesResponse
DescribeFleetLocationAttributesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetLocationAttributesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeFleetLocationAttributesResponse' :: DescribeFleetLocationAttributesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeFleetLocationAttributesResponse
s@DescribeFleetLocationAttributesResponse' {} Maybe Text
a -> DescribeFleetLocationAttributesResponse
s {$sel:nextToken:DescribeFleetLocationAttributesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeFleetLocationAttributesResponse)
describeFleetLocationAttributesResponse_locationAttributes :: Lens.Lens' DescribeFleetLocationAttributesResponse (Prelude.Maybe [LocationAttributes])
describeFleetLocationAttributesResponse_locationAttributes :: (Maybe [LocationAttributes] -> f (Maybe [LocationAttributes]))
-> DescribeFleetLocationAttributesResponse
-> f DescribeFleetLocationAttributesResponse
describeFleetLocationAttributesResponse_locationAttributes = (DescribeFleetLocationAttributesResponse
-> Maybe [LocationAttributes])
-> (DescribeFleetLocationAttributesResponse
-> Maybe [LocationAttributes]
-> DescribeFleetLocationAttributesResponse)
-> Lens
DescribeFleetLocationAttributesResponse
DescribeFleetLocationAttributesResponse
(Maybe [LocationAttributes])
(Maybe [LocationAttributes])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetLocationAttributesResponse' {Maybe [LocationAttributes]
locationAttributes :: Maybe [LocationAttributes]
$sel:locationAttributes:DescribeFleetLocationAttributesResponse' :: DescribeFleetLocationAttributesResponse
-> Maybe [LocationAttributes]
locationAttributes} -> Maybe [LocationAttributes]
locationAttributes) (\s :: DescribeFleetLocationAttributesResponse
s@DescribeFleetLocationAttributesResponse' {} Maybe [LocationAttributes]
a -> DescribeFleetLocationAttributesResponse
s {$sel:locationAttributes:DescribeFleetLocationAttributesResponse' :: Maybe [LocationAttributes]
locationAttributes = Maybe [LocationAttributes]
a} :: DescribeFleetLocationAttributesResponse) ((Maybe [LocationAttributes] -> f (Maybe [LocationAttributes]))
-> DescribeFleetLocationAttributesResponse
-> f DescribeFleetLocationAttributesResponse)
-> ((Maybe [LocationAttributes] -> f (Maybe [LocationAttributes]))
-> Maybe [LocationAttributes] -> f (Maybe [LocationAttributes]))
-> (Maybe [LocationAttributes] -> f (Maybe [LocationAttributes]))
-> DescribeFleetLocationAttributesResponse
-> f DescribeFleetLocationAttributesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[LocationAttributes]
[LocationAttributes]
[LocationAttributes]
[LocationAttributes]
-> Iso
(Maybe [LocationAttributes])
(Maybe [LocationAttributes])
(Maybe [LocationAttributes])
(Maybe [LocationAttributes])
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
[LocationAttributes]
[LocationAttributes]
[LocationAttributes]
[LocationAttributes]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeFleetLocationAttributesResponse_fleetId :: Lens.Lens' DescribeFleetLocationAttributesResponse (Prelude.Maybe Prelude.Text)
describeFleetLocationAttributesResponse_fleetId :: (Maybe Text -> f (Maybe Text))
-> DescribeFleetLocationAttributesResponse
-> f DescribeFleetLocationAttributesResponse
describeFleetLocationAttributesResponse_fleetId = (DescribeFleetLocationAttributesResponse -> Maybe Text)
-> (DescribeFleetLocationAttributesResponse
-> Maybe Text -> DescribeFleetLocationAttributesResponse)
-> Lens
DescribeFleetLocationAttributesResponse
DescribeFleetLocationAttributesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetLocationAttributesResponse' {Maybe Text
fleetId :: Maybe Text
$sel:fleetId:DescribeFleetLocationAttributesResponse' :: DescribeFleetLocationAttributesResponse -> Maybe Text
fleetId} -> Maybe Text
fleetId) (\s :: DescribeFleetLocationAttributesResponse
s@DescribeFleetLocationAttributesResponse' {} Maybe Text
a -> DescribeFleetLocationAttributesResponse
s {$sel:fleetId:DescribeFleetLocationAttributesResponse' :: Maybe Text
fleetId = Maybe Text
a} :: DescribeFleetLocationAttributesResponse)
describeFleetLocationAttributesResponse_httpStatus :: Lens.Lens' DescribeFleetLocationAttributesResponse Prelude.Int
describeFleetLocationAttributesResponse_httpStatus :: (Int -> f Int)
-> DescribeFleetLocationAttributesResponse
-> f DescribeFleetLocationAttributesResponse
describeFleetLocationAttributesResponse_httpStatus = (DescribeFleetLocationAttributesResponse -> Int)
-> (DescribeFleetLocationAttributesResponse
-> Int -> DescribeFleetLocationAttributesResponse)
-> Lens
DescribeFleetLocationAttributesResponse
DescribeFleetLocationAttributesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFleetLocationAttributesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeFleetLocationAttributesResponse' :: DescribeFleetLocationAttributesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeFleetLocationAttributesResponse
s@DescribeFleetLocationAttributesResponse' {} Int
a -> DescribeFleetLocationAttributesResponse
s {$sel:httpStatus:DescribeFleetLocationAttributesResponse' :: Int
httpStatus = Int
a} :: DescribeFleetLocationAttributesResponse)
instance
Prelude.NFData
DescribeFleetLocationAttributesResponse