{-# 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.IoTData.ListNamedShadowsForThing
(
ListNamedShadowsForThing (..),
newListNamedShadowsForThing,
listNamedShadowsForThing_nextToken,
listNamedShadowsForThing_pageSize,
listNamedShadowsForThing_thingName,
ListNamedShadowsForThingResponse (..),
newListNamedShadowsForThingResponse,
listNamedShadowsForThingResponse_results,
listNamedShadowsForThingResponse_nextToken,
listNamedShadowsForThingResponse_timestamp,
listNamedShadowsForThingResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTData.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 ListNamedShadowsForThing = ListNamedShadowsForThing'
{
ListNamedShadowsForThing -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListNamedShadowsForThing -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural,
ListNamedShadowsForThing -> Text
thingName :: Prelude.Text
}
deriving (ListNamedShadowsForThing -> ListNamedShadowsForThing -> Bool
(ListNamedShadowsForThing -> ListNamedShadowsForThing -> Bool)
-> (ListNamedShadowsForThing -> ListNamedShadowsForThing -> Bool)
-> Eq ListNamedShadowsForThing
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListNamedShadowsForThing -> ListNamedShadowsForThing -> Bool
$c/= :: ListNamedShadowsForThing -> ListNamedShadowsForThing -> Bool
== :: ListNamedShadowsForThing -> ListNamedShadowsForThing -> Bool
$c== :: ListNamedShadowsForThing -> ListNamedShadowsForThing -> Bool
Prelude.Eq, ReadPrec [ListNamedShadowsForThing]
ReadPrec ListNamedShadowsForThing
Int -> ReadS ListNamedShadowsForThing
ReadS [ListNamedShadowsForThing]
(Int -> ReadS ListNamedShadowsForThing)
-> ReadS [ListNamedShadowsForThing]
-> ReadPrec ListNamedShadowsForThing
-> ReadPrec [ListNamedShadowsForThing]
-> Read ListNamedShadowsForThing
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListNamedShadowsForThing]
$creadListPrec :: ReadPrec [ListNamedShadowsForThing]
readPrec :: ReadPrec ListNamedShadowsForThing
$creadPrec :: ReadPrec ListNamedShadowsForThing
readList :: ReadS [ListNamedShadowsForThing]
$creadList :: ReadS [ListNamedShadowsForThing]
readsPrec :: Int -> ReadS ListNamedShadowsForThing
$creadsPrec :: Int -> ReadS ListNamedShadowsForThing
Prelude.Read, Int -> ListNamedShadowsForThing -> ShowS
[ListNamedShadowsForThing] -> ShowS
ListNamedShadowsForThing -> String
(Int -> ListNamedShadowsForThing -> ShowS)
-> (ListNamedShadowsForThing -> String)
-> ([ListNamedShadowsForThing] -> ShowS)
-> Show ListNamedShadowsForThing
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListNamedShadowsForThing] -> ShowS
$cshowList :: [ListNamedShadowsForThing] -> ShowS
show :: ListNamedShadowsForThing -> String
$cshow :: ListNamedShadowsForThing -> String
showsPrec :: Int -> ListNamedShadowsForThing -> ShowS
$cshowsPrec :: Int -> ListNamedShadowsForThing -> ShowS
Prelude.Show, (forall x.
ListNamedShadowsForThing -> Rep ListNamedShadowsForThing x)
-> (forall x.
Rep ListNamedShadowsForThing x -> ListNamedShadowsForThing)
-> Generic ListNamedShadowsForThing
forall x.
Rep ListNamedShadowsForThing x -> ListNamedShadowsForThing
forall x.
ListNamedShadowsForThing -> Rep ListNamedShadowsForThing x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListNamedShadowsForThing x -> ListNamedShadowsForThing
$cfrom :: forall x.
ListNamedShadowsForThing -> Rep ListNamedShadowsForThing x
Prelude.Generic)
newListNamedShadowsForThing ::
Prelude.Text ->
ListNamedShadowsForThing
newListNamedShadowsForThing :: Text -> ListNamedShadowsForThing
newListNamedShadowsForThing Text
pThingName_ =
ListNamedShadowsForThing' :: Maybe Text -> Maybe Natural -> Text -> ListNamedShadowsForThing
ListNamedShadowsForThing'
{ $sel:nextToken:ListNamedShadowsForThing' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:ListNamedShadowsForThing' :: Maybe Natural
pageSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:thingName:ListNamedShadowsForThing' :: Text
thingName = Text
pThingName_
}
listNamedShadowsForThing_nextToken :: Lens.Lens' ListNamedShadowsForThing (Prelude.Maybe Prelude.Text)
listNamedShadowsForThing_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListNamedShadowsForThing -> f ListNamedShadowsForThing
listNamedShadowsForThing_nextToken = (ListNamedShadowsForThing -> Maybe Text)
-> (ListNamedShadowsForThing
-> Maybe Text -> ListNamedShadowsForThing)
-> Lens
ListNamedShadowsForThing
ListNamedShadowsForThing
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNamedShadowsForThing' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListNamedShadowsForThing' :: ListNamedShadowsForThing -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListNamedShadowsForThing
s@ListNamedShadowsForThing' {} Maybe Text
a -> ListNamedShadowsForThing
s {$sel:nextToken:ListNamedShadowsForThing' :: Maybe Text
nextToken = Maybe Text
a} :: ListNamedShadowsForThing)
listNamedShadowsForThing_pageSize :: Lens.Lens' ListNamedShadowsForThing (Prelude.Maybe Prelude.Natural)
listNamedShadowsForThing_pageSize :: (Maybe Natural -> f (Maybe Natural))
-> ListNamedShadowsForThing -> f ListNamedShadowsForThing
listNamedShadowsForThing_pageSize = (ListNamedShadowsForThing -> Maybe Natural)
-> (ListNamedShadowsForThing
-> Maybe Natural -> ListNamedShadowsForThing)
-> Lens
ListNamedShadowsForThing
ListNamedShadowsForThing
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNamedShadowsForThing' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:ListNamedShadowsForThing' :: ListNamedShadowsForThing -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: ListNamedShadowsForThing
s@ListNamedShadowsForThing' {} Maybe Natural
a -> ListNamedShadowsForThing
s {$sel:pageSize:ListNamedShadowsForThing' :: Maybe Natural
pageSize = Maybe Natural
a} :: ListNamedShadowsForThing)
listNamedShadowsForThing_thingName :: Lens.Lens' ListNamedShadowsForThing Prelude.Text
listNamedShadowsForThing_thingName :: (Text -> f Text)
-> ListNamedShadowsForThing -> f ListNamedShadowsForThing
listNamedShadowsForThing_thingName = (ListNamedShadowsForThing -> Text)
-> (ListNamedShadowsForThing -> Text -> ListNamedShadowsForThing)
-> Lens ListNamedShadowsForThing ListNamedShadowsForThing Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNamedShadowsForThing' {Text
thingName :: Text
$sel:thingName:ListNamedShadowsForThing' :: ListNamedShadowsForThing -> Text
thingName} -> Text
thingName) (\s :: ListNamedShadowsForThing
s@ListNamedShadowsForThing' {} Text
a -> ListNamedShadowsForThing
s {$sel:thingName:ListNamedShadowsForThing' :: Text
thingName = Text
a} :: ListNamedShadowsForThing)
instance Core.AWSRequest ListNamedShadowsForThing where
type
AWSResponse ListNamedShadowsForThing =
ListNamedShadowsForThingResponse
request :: ListNamedShadowsForThing -> Request ListNamedShadowsForThing
request = Service
-> ListNamedShadowsForThing -> Request ListNamedShadowsForThing
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListNamedShadowsForThing
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListNamedShadowsForThing)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListNamedShadowsForThing))
-> Logger
-> Service
-> Proxy ListNamedShadowsForThing
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListNamedShadowsForThing)))
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 Integer
-> Int
-> ListNamedShadowsForThingResponse
ListNamedShadowsForThingResponse'
(Maybe [Text]
-> Maybe Text
-> Maybe Integer
-> Int
-> ListNamedShadowsForThingResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe Text
-> Maybe Integer -> Int -> ListNamedShadowsForThingResponse)
forall (f :: * -> *) a b. Functor 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
"results" 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
(Maybe Text
-> Maybe Integer -> Int -> ListNamedShadowsForThingResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Integer -> Int -> ListNamedShadowsForThingResponse)
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 Integer -> Int -> ListNamedShadowsForThingResponse)
-> Either String (Maybe Integer)
-> Either String (Int -> ListNamedShadowsForThingResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"timestamp")
Either String (Int -> ListNamedShadowsForThingResponse)
-> Either String Int
-> Either String ListNamedShadowsForThingResponse
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 ListNamedShadowsForThing
instance Prelude.NFData ListNamedShadowsForThing
instance Core.ToHeaders ListNamedShadowsForThing where
toHeaders :: ListNamedShadowsForThing -> ResponseHeaders
toHeaders = ResponseHeaders -> ListNamedShadowsForThing -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListNamedShadowsForThing where
toPath :: ListNamedShadowsForThing -> ByteString
toPath ListNamedShadowsForThing' {Maybe Natural
Maybe Text
Text
thingName :: Text
pageSize :: Maybe Natural
nextToken :: Maybe Text
$sel:thingName:ListNamedShadowsForThing' :: ListNamedShadowsForThing -> Text
$sel:pageSize:ListNamedShadowsForThing' :: ListNamedShadowsForThing -> Maybe Natural
$sel:nextToken:ListNamedShadowsForThing' :: ListNamedShadowsForThing -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/api/things/shadow/ListNamedShadowsForThing/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
thingName
]
instance Core.ToQuery ListNamedShadowsForThing where
toQuery :: ListNamedShadowsForThing -> QueryString
toQuery ListNamedShadowsForThing' {Maybe Natural
Maybe Text
Text
thingName :: Text
pageSize :: Maybe Natural
nextToken :: Maybe Text
$sel:thingName:ListNamedShadowsForThing' :: ListNamedShadowsForThing -> Text
$sel:pageSize:ListNamedShadowsForThing' :: ListNamedShadowsForThing -> Maybe Natural
$sel:nextToken:ListNamedShadowsForThing' :: ListNamedShadowsForThing -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"pageSize" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
pageSize
]
data ListNamedShadowsForThingResponse = ListNamedShadowsForThingResponse'
{
ListNamedShadowsForThingResponse -> Maybe [Text]
results :: Prelude.Maybe [Prelude.Text],
ListNamedShadowsForThingResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListNamedShadowsForThingResponse -> Maybe Integer
timestamp :: Prelude.Maybe Prelude.Integer,
ListNamedShadowsForThingResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListNamedShadowsForThingResponse
-> ListNamedShadowsForThingResponse -> Bool
(ListNamedShadowsForThingResponse
-> ListNamedShadowsForThingResponse -> Bool)
-> (ListNamedShadowsForThingResponse
-> ListNamedShadowsForThingResponse -> Bool)
-> Eq ListNamedShadowsForThingResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListNamedShadowsForThingResponse
-> ListNamedShadowsForThingResponse -> Bool
$c/= :: ListNamedShadowsForThingResponse
-> ListNamedShadowsForThingResponse -> Bool
== :: ListNamedShadowsForThingResponse
-> ListNamedShadowsForThingResponse -> Bool
$c== :: ListNamedShadowsForThingResponse
-> ListNamedShadowsForThingResponse -> Bool
Prelude.Eq, ReadPrec [ListNamedShadowsForThingResponse]
ReadPrec ListNamedShadowsForThingResponse
Int -> ReadS ListNamedShadowsForThingResponse
ReadS [ListNamedShadowsForThingResponse]
(Int -> ReadS ListNamedShadowsForThingResponse)
-> ReadS [ListNamedShadowsForThingResponse]
-> ReadPrec ListNamedShadowsForThingResponse
-> ReadPrec [ListNamedShadowsForThingResponse]
-> Read ListNamedShadowsForThingResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListNamedShadowsForThingResponse]
$creadListPrec :: ReadPrec [ListNamedShadowsForThingResponse]
readPrec :: ReadPrec ListNamedShadowsForThingResponse
$creadPrec :: ReadPrec ListNamedShadowsForThingResponse
readList :: ReadS [ListNamedShadowsForThingResponse]
$creadList :: ReadS [ListNamedShadowsForThingResponse]
readsPrec :: Int -> ReadS ListNamedShadowsForThingResponse
$creadsPrec :: Int -> ReadS ListNamedShadowsForThingResponse
Prelude.Read, Int -> ListNamedShadowsForThingResponse -> ShowS
[ListNamedShadowsForThingResponse] -> ShowS
ListNamedShadowsForThingResponse -> String
(Int -> ListNamedShadowsForThingResponse -> ShowS)
-> (ListNamedShadowsForThingResponse -> String)
-> ([ListNamedShadowsForThingResponse] -> ShowS)
-> Show ListNamedShadowsForThingResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListNamedShadowsForThingResponse] -> ShowS
$cshowList :: [ListNamedShadowsForThingResponse] -> ShowS
show :: ListNamedShadowsForThingResponse -> String
$cshow :: ListNamedShadowsForThingResponse -> String
showsPrec :: Int -> ListNamedShadowsForThingResponse -> ShowS
$cshowsPrec :: Int -> ListNamedShadowsForThingResponse -> ShowS
Prelude.Show, (forall x.
ListNamedShadowsForThingResponse
-> Rep ListNamedShadowsForThingResponse x)
-> (forall x.
Rep ListNamedShadowsForThingResponse x
-> ListNamedShadowsForThingResponse)
-> Generic ListNamedShadowsForThingResponse
forall x.
Rep ListNamedShadowsForThingResponse x
-> ListNamedShadowsForThingResponse
forall x.
ListNamedShadowsForThingResponse
-> Rep ListNamedShadowsForThingResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListNamedShadowsForThingResponse x
-> ListNamedShadowsForThingResponse
$cfrom :: forall x.
ListNamedShadowsForThingResponse
-> Rep ListNamedShadowsForThingResponse x
Prelude.Generic)
newListNamedShadowsForThingResponse ::
Prelude.Int ->
ListNamedShadowsForThingResponse
newListNamedShadowsForThingResponse :: Int -> ListNamedShadowsForThingResponse
newListNamedShadowsForThingResponse Int
pHttpStatus_ =
ListNamedShadowsForThingResponse' :: Maybe [Text]
-> Maybe Text
-> Maybe Integer
-> Int
-> ListNamedShadowsForThingResponse
ListNamedShadowsForThingResponse'
{ $sel:results:ListNamedShadowsForThingResponse' :: Maybe [Text]
results =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListNamedShadowsForThingResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:timestamp:ListNamedShadowsForThingResponse' :: Maybe Integer
timestamp = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListNamedShadowsForThingResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listNamedShadowsForThingResponse_results :: Lens.Lens' ListNamedShadowsForThingResponse (Prelude.Maybe [Prelude.Text])
listNamedShadowsForThingResponse_results :: (Maybe [Text] -> f (Maybe [Text]))
-> ListNamedShadowsForThingResponse
-> f ListNamedShadowsForThingResponse
listNamedShadowsForThingResponse_results = (ListNamedShadowsForThingResponse -> Maybe [Text])
-> (ListNamedShadowsForThingResponse
-> Maybe [Text] -> ListNamedShadowsForThingResponse)
-> Lens
ListNamedShadowsForThingResponse
ListNamedShadowsForThingResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNamedShadowsForThingResponse' {Maybe [Text]
results :: Maybe [Text]
$sel:results:ListNamedShadowsForThingResponse' :: ListNamedShadowsForThingResponse -> Maybe [Text]
results} -> Maybe [Text]
results) (\s :: ListNamedShadowsForThingResponse
s@ListNamedShadowsForThingResponse' {} Maybe [Text]
a -> ListNamedShadowsForThingResponse
s {$sel:results:ListNamedShadowsForThingResponse' :: Maybe [Text]
results = Maybe [Text]
a} :: ListNamedShadowsForThingResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> ListNamedShadowsForThingResponse
-> f ListNamedShadowsForThingResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListNamedShadowsForThingResponse
-> f ListNamedShadowsForThingResponse
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
listNamedShadowsForThingResponse_nextToken :: Lens.Lens' ListNamedShadowsForThingResponse (Prelude.Maybe Prelude.Text)
listNamedShadowsForThingResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListNamedShadowsForThingResponse
-> f ListNamedShadowsForThingResponse
listNamedShadowsForThingResponse_nextToken = (ListNamedShadowsForThingResponse -> Maybe Text)
-> (ListNamedShadowsForThingResponse
-> Maybe Text -> ListNamedShadowsForThingResponse)
-> Lens
ListNamedShadowsForThingResponse
ListNamedShadowsForThingResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNamedShadowsForThingResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListNamedShadowsForThingResponse' :: ListNamedShadowsForThingResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListNamedShadowsForThingResponse
s@ListNamedShadowsForThingResponse' {} Maybe Text
a -> ListNamedShadowsForThingResponse
s {$sel:nextToken:ListNamedShadowsForThingResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListNamedShadowsForThingResponse)
listNamedShadowsForThingResponse_timestamp :: Lens.Lens' ListNamedShadowsForThingResponse (Prelude.Maybe Prelude.Integer)
listNamedShadowsForThingResponse_timestamp :: (Maybe Integer -> f (Maybe Integer))
-> ListNamedShadowsForThingResponse
-> f ListNamedShadowsForThingResponse
listNamedShadowsForThingResponse_timestamp = (ListNamedShadowsForThingResponse -> Maybe Integer)
-> (ListNamedShadowsForThingResponse
-> Maybe Integer -> ListNamedShadowsForThingResponse)
-> Lens
ListNamedShadowsForThingResponse
ListNamedShadowsForThingResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNamedShadowsForThingResponse' {Maybe Integer
timestamp :: Maybe Integer
$sel:timestamp:ListNamedShadowsForThingResponse' :: ListNamedShadowsForThingResponse -> Maybe Integer
timestamp} -> Maybe Integer
timestamp) (\s :: ListNamedShadowsForThingResponse
s@ListNamedShadowsForThingResponse' {} Maybe Integer
a -> ListNamedShadowsForThingResponse
s {$sel:timestamp:ListNamedShadowsForThingResponse' :: Maybe Integer
timestamp = Maybe Integer
a} :: ListNamedShadowsForThingResponse)
listNamedShadowsForThingResponse_httpStatus :: Lens.Lens' ListNamedShadowsForThingResponse Prelude.Int
listNamedShadowsForThingResponse_httpStatus :: (Int -> f Int)
-> ListNamedShadowsForThingResponse
-> f ListNamedShadowsForThingResponse
listNamedShadowsForThingResponse_httpStatus = (ListNamedShadowsForThingResponse -> Int)
-> (ListNamedShadowsForThingResponse
-> Int -> ListNamedShadowsForThingResponse)
-> Lens
ListNamedShadowsForThingResponse
ListNamedShadowsForThingResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListNamedShadowsForThingResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListNamedShadowsForThingResponse' :: ListNamedShadowsForThingResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListNamedShadowsForThingResponse
s@ListNamedShadowsForThingResponse' {} Int
a -> ListNamedShadowsForThingResponse
s {$sel:httpStatus:ListNamedShadowsForThingResponse' :: Int
httpStatus = Int
a} :: ListNamedShadowsForThingResponse)
instance
Prelude.NFData
ListNamedShadowsForThingResponse