{-# 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.GreengrassV2.ListClientDevicesAssociatedWithCoreDevice
(
ListClientDevicesAssociatedWithCoreDevice (..),
newListClientDevicesAssociatedWithCoreDevice,
listClientDevicesAssociatedWithCoreDevice_maxResults,
listClientDevicesAssociatedWithCoreDevice_nextToken,
listClientDevicesAssociatedWithCoreDevice_coreDeviceThingName,
ListClientDevicesAssociatedWithCoreDeviceResponse (..),
newListClientDevicesAssociatedWithCoreDeviceResponse,
listClientDevicesAssociatedWithCoreDeviceResponse_associatedClientDevices,
listClientDevicesAssociatedWithCoreDeviceResponse_nextToken,
listClientDevicesAssociatedWithCoreDeviceResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.GreengrassV2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListClientDevicesAssociatedWithCoreDevice = ListClientDevicesAssociatedWithCoreDevice'
{
ListClientDevicesAssociatedWithCoreDevice -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListClientDevicesAssociatedWithCoreDevice -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListClientDevicesAssociatedWithCoreDevice -> Text
coreDeviceThingName :: Prelude.Text
}
deriving (ListClientDevicesAssociatedWithCoreDevice
-> ListClientDevicesAssociatedWithCoreDevice -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListClientDevicesAssociatedWithCoreDevice
-> ListClientDevicesAssociatedWithCoreDevice -> Bool
$c/= :: ListClientDevicesAssociatedWithCoreDevice
-> ListClientDevicesAssociatedWithCoreDevice -> Bool
== :: ListClientDevicesAssociatedWithCoreDevice
-> ListClientDevicesAssociatedWithCoreDevice -> Bool
$c== :: ListClientDevicesAssociatedWithCoreDevice
-> ListClientDevicesAssociatedWithCoreDevice -> Bool
Prelude.Eq, ReadPrec [ListClientDevicesAssociatedWithCoreDevice]
ReadPrec ListClientDevicesAssociatedWithCoreDevice
Int -> ReadS ListClientDevicesAssociatedWithCoreDevice
ReadS [ListClientDevicesAssociatedWithCoreDevice]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListClientDevicesAssociatedWithCoreDevice]
$creadListPrec :: ReadPrec [ListClientDevicesAssociatedWithCoreDevice]
readPrec :: ReadPrec ListClientDevicesAssociatedWithCoreDevice
$creadPrec :: ReadPrec ListClientDevicesAssociatedWithCoreDevice
readList :: ReadS [ListClientDevicesAssociatedWithCoreDevice]
$creadList :: ReadS [ListClientDevicesAssociatedWithCoreDevice]
readsPrec :: Int -> ReadS ListClientDevicesAssociatedWithCoreDevice
$creadsPrec :: Int -> ReadS ListClientDevicesAssociatedWithCoreDevice
Prelude.Read, Int -> ListClientDevicesAssociatedWithCoreDevice -> ShowS
[ListClientDevicesAssociatedWithCoreDevice] -> ShowS
ListClientDevicesAssociatedWithCoreDevice -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListClientDevicesAssociatedWithCoreDevice] -> ShowS
$cshowList :: [ListClientDevicesAssociatedWithCoreDevice] -> ShowS
show :: ListClientDevicesAssociatedWithCoreDevice -> String
$cshow :: ListClientDevicesAssociatedWithCoreDevice -> String
showsPrec :: Int -> ListClientDevicesAssociatedWithCoreDevice -> ShowS
$cshowsPrec :: Int -> ListClientDevicesAssociatedWithCoreDevice -> ShowS
Prelude.Show, forall x.
Rep ListClientDevicesAssociatedWithCoreDevice x
-> ListClientDevicesAssociatedWithCoreDevice
forall x.
ListClientDevicesAssociatedWithCoreDevice
-> Rep ListClientDevicesAssociatedWithCoreDevice x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListClientDevicesAssociatedWithCoreDevice x
-> ListClientDevicesAssociatedWithCoreDevice
$cfrom :: forall x.
ListClientDevicesAssociatedWithCoreDevice
-> Rep ListClientDevicesAssociatedWithCoreDevice x
Prelude.Generic)
newListClientDevicesAssociatedWithCoreDevice ::
Prelude.Text ->
ListClientDevicesAssociatedWithCoreDevice
newListClientDevicesAssociatedWithCoreDevice :: Text -> ListClientDevicesAssociatedWithCoreDevice
newListClientDevicesAssociatedWithCoreDevice
Text
pCoreDeviceThingName_ =
ListClientDevicesAssociatedWithCoreDevice'
{ $sel:maxResults:ListClientDevicesAssociatedWithCoreDevice' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListClientDevicesAssociatedWithCoreDevice' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:coreDeviceThingName:ListClientDevicesAssociatedWithCoreDevice' :: Text
coreDeviceThingName =
Text
pCoreDeviceThingName_
}
listClientDevicesAssociatedWithCoreDevice_maxResults :: Lens.Lens' ListClientDevicesAssociatedWithCoreDevice (Prelude.Maybe Prelude.Natural)
listClientDevicesAssociatedWithCoreDevice_maxResults :: Lens' ListClientDevicesAssociatedWithCoreDevice (Maybe Natural)
listClientDevicesAssociatedWithCoreDevice_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClientDevicesAssociatedWithCoreDevice' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListClientDevicesAssociatedWithCoreDevice
s@ListClientDevicesAssociatedWithCoreDevice' {} Maybe Natural
a -> ListClientDevicesAssociatedWithCoreDevice
s {$sel:maxResults:ListClientDevicesAssociatedWithCoreDevice' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListClientDevicesAssociatedWithCoreDevice)
listClientDevicesAssociatedWithCoreDevice_nextToken :: Lens.Lens' ListClientDevicesAssociatedWithCoreDevice (Prelude.Maybe Prelude.Text)
listClientDevicesAssociatedWithCoreDevice_nextToken :: Lens' ListClientDevicesAssociatedWithCoreDevice (Maybe Text)
listClientDevicesAssociatedWithCoreDevice_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClientDevicesAssociatedWithCoreDevice' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListClientDevicesAssociatedWithCoreDevice
s@ListClientDevicesAssociatedWithCoreDevice' {} Maybe Text
a -> ListClientDevicesAssociatedWithCoreDevice
s {$sel:nextToken:ListClientDevicesAssociatedWithCoreDevice' :: Maybe Text
nextToken = Maybe Text
a} :: ListClientDevicesAssociatedWithCoreDevice)
listClientDevicesAssociatedWithCoreDevice_coreDeviceThingName :: Lens.Lens' ListClientDevicesAssociatedWithCoreDevice Prelude.Text
listClientDevicesAssociatedWithCoreDevice_coreDeviceThingName :: Lens' ListClientDevicesAssociatedWithCoreDevice Text
listClientDevicesAssociatedWithCoreDevice_coreDeviceThingName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClientDevicesAssociatedWithCoreDevice' {Text
coreDeviceThingName :: Text
$sel:coreDeviceThingName:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Text
coreDeviceThingName} -> Text
coreDeviceThingName) (\s :: ListClientDevicesAssociatedWithCoreDevice
s@ListClientDevicesAssociatedWithCoreDevice' {} Text
a -> ListClientDevicesAssociatedWithCoreDevice
s {$sel:coreDeviceThingName:ListClientDevicesAssociatedWithCoreDevice' :: Text
coreDeviceThingName = Text
a} :: ListClientDevicesAssociatedWithCoreDevice)
instance
Core.AWSPager
ListClientDevicesAssociatedWithCoreDevice
where
page :: ListClientDevicesAssociatedWithCoreDevice
-> AWSResponse ListClientDevicesAssociatedWithCoreDevice
-> Maybe ListClientDevicesAssociatedWithCoreDevice
page ListClientDevicesAssociatedWithCoreDevice
rq AWSResponse ListClientDevicesAssociatedWithCoreDevice
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListClientDevicesAssociatedWithCoreDevice
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListClientDevicesAssociatedWithCoreDeviceResponse (Maybe Text)
listClientDevicesAssociatedWithCoreDeviceResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListClientDevicesAssociatedWithCoreDevice
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListClientDevicesAssociatedWithCoreDeviceResponse
(Maybe (NonEmpty AssociatedClientDevice))
listClientDevicesAssociatedWithCoreDeviceResponse_associatedClientDevices
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (p :: * -> * -> *) (f :: * -> *) s a.
(Profunctor p, Contravariant f) =>
(s -> a) -> Optic' p f s a
Lens.to forall l. IsList l => l -> [Item l]
Prelude.toList
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListClientDevicesAssociatedWithCoreDevice
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListClientDevicesAssociatedWithCoreDevice (Maybe Text)
listClientDevicesAssociatedWithCoreDevice_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListClientDevicesAssociatedWithCoreDevice
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListClientDevicesAssociatedWithCoreDeviceResponse (Maybe Text)
listClientDevicesAssociatedWithCoreDeviceResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
ListClientDevicesAssociatedWithCoreDevice
where
type
AWSResponse
ListClientDevicesAssociatedWithCoreDevice =
ListClientDevicesAssociatedWithCoreDeviceResponse
request :: (Service -> Service)
-> ListClientDevicesAssociatedWithCoreDevice
-> Request ListClientDevicesAssociatedWithCoreDevice
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListClientDevicesAssociatedWithCoreDevice
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListClientDevicesAssociatedWithCoreDevice)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe (NonEmpty AssociatedClientDevice)
-> Maybe Text
-> Int
-> ListClientDevicesAssociatedWithCoreDeviceResponse
ListClientDevicesAssociatedWithCoreDeviceResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"associatedClientDevices")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
ListClientDevicesAssociatedWithCoreDevice
where
hashWithSalt :: Int -> ListClientDevicesAssociatedWithCoreDevice -> Int
hashWithSalt
Int
_salt
ListClientDevicesAssociatedWithCoreDevice' {Maybe Natural
Maybe Text
Text
coreDeviceThingName :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:coreDeviceThingName:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Text
$sel:nextToken:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Text
$sel:maxResults:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
coreDeviceThingName
instance
Prelude.NFData
ListClientDevicesAssociatedWithCoreDevice
where
rnf :: ListClientDevicesAssociatedWithCoreDevice -> ()
rnf ListClientDevicesAssociatedWithCoreDevice' {Maybe Natural
Maybe Text
Text
coreDeviceThingName :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:coreDeviceThingName:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Text
$sel:nextToken:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Text
$sel:maxResults:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
coreDeviceThingName
instance
Data.ToHeaders
ListClientDevicesAssociatedWithCoreDevice
where
toHeaders :: ListClientDevicesAssociatedWithCoreDevice -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance
Data.ToPath
ListClientDevicesAssociatedWithCoreDevice
where
toPath :: ListClientDevicesAssociatedWithCoreDevice -> ByteString
toPath ListClientDevicesAssociatedWithCoreDevice' {Maybe Natural
Maybe Text
Text
coreDeviceThingName :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:coreDeviceThingName:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Text
$sel:nextToken:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Text
$sel:maxResults:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Natural
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/v2/coreDevices/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
coreDeviceThingName,
ByteString
"/associatedClientDevices"
]
instance
Data.ToQuery
ListClientDevicesAssociatedWithCoreDevice
where
toQuery :: ListClientDevicesAssociatedWithCoreDevice -> QueryString
toQuery
ListClientDevicesAssociatedWithCoreDevice' {Maybe Natural
Maybe Text
Text
coreDeviceThingName :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:coreDeviceThingName:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Text
$sel:nextToken:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Text
$sel:maxResults:ListClientDevicesAssociatedWithCoreDevice' :: ListClientDevicesAssociatedWithCoreDevice -> Maybe Natural
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
]
data ListClientDevicesAssociatedWithCoreDeviceResponse = ListClientDevicesAssociatedWithCoreDeviceResponse'
{
ListClientDevicesAssociatedWithCoreDeviceResponse
-> Maybe (NonEmpty AssociatedClientDevice)
associatedClientDevices :: Prelude.Maybe (Prelude.NonEmpty AssociatedClientDevice),
ListClientDevicesAssociatedWithCoreDeviceResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListClientDevicesAssociatedWithCoreDeviceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListClientDevicesAssociatedWithCoreDeviceResponse
-> ListClientDevicesAssociatedWithCoreDeviceResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListClientDevicesAssociatedWithCoreDeviceResponse
-> ListClientDevicesAssociatedWithCoreDeviceResponse -> Bool
$c/= :: ListClientDevicesAssociatedWithCoreDeviceResponse
-> ListClientDevicesAssociatedWithCoreDeviceResponse -> Bool
== :: ListClientDevicesAssociatedWithCoreDeviceResponse
-> ListClientDevicesAssociatedWithCoreDeviceResponse -> Bool
$c== :: ListClientDevicesAssociatedWithCoreDeviceResponse
-> ListClientDevicesAssociatedWithCoreDeviceResponse -> Bool
Prelude.Eq, ReadPrec [ListClientDevicesAssociatedWithCoreDeviceResponse]
ReadPrec ListClientDevicesAssociatedWithCoreDeviceResponse
Int -> ReadS ListClientDevicesAssociatedWithCoreDeviceResponse
ReadS [ListClientDevicesAssociatedWithCoreDeviceResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListClientDevicesAssociatedWithCoreDeviceResponse]
$creadListPrec :: ReadPrec [ListClientDevicesAssociatedWithCoreDeviceResponse]
readPrec :: ReadPrec ListClientDevicesAssociatedWithCoreDeviceResponse
$creadPrec :: ReadPrec ListClientDevicesAssociatedWithCoreDeviceResponse
readList :: ReadS [ListClientDevicesAssociatedWithCoreDeviceResponse]
$creadList :: ReadS [ListClientDevicesAssociatedWithCoreDeviceResponse]
readsPrec :: Int -> ReadS ListClientDevicesAssociatedWithCoreDeviceResponse
$creadsPrec :: Int -> ReadS ListClientDevicesAssociatedWithCoreDeviceResponse
Prelude.Read, Int -> ListClientDevicesAssociatedWithCoreDeviceResponse -> ShowS
[ListClientDevicesAssociatedWithCoreDeviceResponse] -> ShowS
ListClientDevicesAssociatedWithCoreDeviceResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListClientDevicesAssociatedWithCoreDeviceResponse] -> ShowS
$cshowList :: [ListClientDevicesAssociatedWithCoreDeviceResponse] -> ShowS
show :: ListClientDevicesAssociatedWithCoreDeviceResponse -> String
$cshow :: ListClientDevicesAssociatedWithCoreDeviceResponse -> String
showsPrec :: Int -> ListClientDevicesAssociatedWithCoreDeviceResponse -> ShowS
$cshowsPrec :: Int -> ListClientDevicesAssociatedWithCoreDeviceResponse -> ShowS
Prelude.Show, forall x.
Rep ListClientDevicesAssociatedWithCoreDeviceResponse x
-> ListClientDevicesAssociatedWithCoreDeviceResponse
forall x.
ListClientDevicesAssociatedWithCoreDeviceResponse
-> Rep ListClientDevicesAssociatedWithCoreDeviceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListClientDevicesAssociatedWithCoreDeviceResponse x
-> ListClientDevicesAssociatedWithCoreDeviceResponse
$cfrom :: forall x.
ListClientDevicesAssociatedWithCoreDeviceResponse
-> Rep ListClientDevicesAssociatedWithCoreDeviceResponse x
Prelude.Generic)
newListClientDevicesAssociatedWithCoreDeviceResponse ::
Prelude.Int ->
ListClientDevicesAssociatedWithCoreDeviceResponse
newListClientDevicesAssociatedWithCoreDeviceResponse :: Int -> ListClientDevicesAssociatedWithCoreDeviceResponse
newListClientDevicesAssociatedWithCoreDeviceResponse
Int
pHttpStatus_ =
ListClientDevicesAssociatedWithCoreDeviceResponse'
{ $sel:associatedClientDevices:ListClientDevicesAssociatedWithCoreDeviceResponse' :: Maybe (NonEmpty AssociatedClientDevice)
associatedClientDevices =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListClientDevicesAssociatedWithCoreDeviceResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListClientDevicesAssociatedWithCoreDeviceResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
listClientDevicesAssociatedWithCoreDeviceResponse_associatedClientDevices :: Lens.Lens' ListClientDevicesAssociatedWithCoreDeviceResponse (Prelude.Maybe (Prelude.NonEmpty AssociatedClientDevice))
listClientDevicesAssociatedWithCoreDeviceResponse_associatedClientDevices :: Lens'
ListClientDevicesAssociatedWithCoreDeviceResponse
(Maybe (NonEmpty AssociatedClientDevice))
listClientDevicesAssociatedWithCoreDeviceResponse_associatedClientDevices = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClientDevicesAssociatedWithCoreDeviceResponse' {Maybe (NonEmpty AssociatedClientDevice)
associatedClientDevices :: Maybe (NonEmpty AssociatedClientDevice)
$sel:associatedClientDevices:ListClientDevicesAssociatedWithCoreDeviceResponse' :: ListClientDevicesAssociatedWithCoreDeviceResponse
-> Maybe (NonEmpty AssociatedClientDevice)
associatedClientDevices} -> Maybe (NonEmpty AssociatedClientDevice)
associatedClientDevices) (\s :: ListClientDevicesAssociatedWithCoreDeviceResponse
s@ListClientDevicesAssociatedWithCoreDeviceResponse' {} Maybe (NonEmpty AssociatedClientDevice)
a -> ListClientDevicesAssociatedWithCoreDeviceResponse
s {$sel:associatedClientDevices:ListClientDevicesAssociatedWithCoreDeviceResponse' :: Maybe (NonEmpty AssociatedClientDevice)
associatedClientDevices = Maybe (NonEmpty AssociatedClientDevice)
a} :: ListClientDevicesAssociatedWithCoreDeviceResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listClientDevicesAssociatedWithCoreDeviceResponse_nextToken :: Lens.Lens' ListClientDevicesAssociatedWithCoreDeviceResponse (Prelude.Maybe Prelude.Text)
listClientDevicesAssociatedWithCoreDeviceResponse_nextToken :: Lens'
ListClientDevicesAssociatedWithCoreDeviceResponse (Maybe Text)
listClientDevicesAssociatedWithCoreDeviceResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClientDevicesAssociatedWithCoreDeviceResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListClientDevicesAssociatedWithCoreDeviceResponse' :: ListClientDevicesAssociatedWithCoreDeviceResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListClientDevicesAssociatedWithCoreDeviceResponse
s@ListClientDevicesAssociatedWithCoreDeviceResponse' {} Maybe Text
a -> ListClientDevicesAssociatedWithCoreDeviceResponse
s {$sel:nextToken:ListClientDevicesAssociatedWithCoreDeviceResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListClientDevicesAssociatedWithCoreDeviceResponse)
listClientDevicesAssociatedWithCoreDeviceResponse_httpStatus :: Lens.Lens' ListClientDevicesAssociatedWithCoreDeviceResponse Prelude.Int
listClientDevicesAssociatedWithCoreDeviceResponse_httpStatus :: Lens' ListClientDevicesAssociatedWithCoreDeviceResponse Int
listClientDevicesAssociatedWithCoreDeviceResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListClientDevicesAssociatedWithCoreDeviceResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListClientDevicesAssociatedWithCoreDeviceResponse' :: ListClientDevicesAssociatedWithCoreDeviceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListClientDevicesAssociatedWithCoreDeviceResponse
s@ListClientDevicesAssociatedWithCoreDeviceResponse' {} Int
a -> ListClientDevicesAssociatedWithCoreDeviceResponse
s {$sel:httpStatus:ListClientDevicesAssociatedWithCoreDeviceResponse' :: Int
httpStatus = Int
a} :: ListClientDevicesAssociatedWithCoreDeviceResponse)
instance
Prelude.NFData
ListClientDevicesAssociatedWithCoreDeviceResponse
where
rnf :: ListClientDevicesAssociatedWithCoreDeviceResponse -> ()
rnf
ListClientDevicesAssociatedWithCoreDeviceResponse' {Int
Maybe (NonEmpty AssociatedClientDevice)
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
associatedClientDevices :: Maybe (NonEmpty AssociatedClientDevice)
$sel:httpStatus:ListClientDevicesAssociatedWithCoreDeviceResponse' :: ListClientDevicesAssociatedWithCoreDeviceResponse -> Int
$sel:nextToken:ListClientDevicesAssociatedWithCoreDeviceResponse' :: ListClientDevicesAssociatedWithCoreDeviceResponse -> Maybe Text
$sel:associatedClientDevices:ListClientDevicesAssociatedWithCoreDeviceResponse' :: ListClientDevicesAssociatedWithCoreDeviceResponse
-> Maybe (NonEmpty AssociatedClientDevice)
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty AssociatedClientDevice)
associatedClientDevices
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus