{-# 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.IoT.ListThingsInThingGroup
(
ListThingsInThingGroup (..),
newListThingsInThingGroup,
listThingsInThingGroup_nextToken,
listThingsInThingGroup_recursive,
listThingsInThingGroup_maxResults,
listThingsInThingGroup_thingGroupName,
ListThingsInThingGroupResponse (..),
newListThingsInThingGroupResponse,
listThingsInThingGroupResponse_nextToken,
listThingsInThingGroupResponse_things,
listThingsInThingGroupResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoT.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 ListThingsInThingGroup = ListThingsInThingGroup'
{
ListThingsInThingGroup -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListThingsInThingGroup -> Maybe Bool
recursive :: Prelude.Maybe Prelude.Bool,
ListThingsInThingGroup -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListThingsInThingGroup -> Text
thingGroupName :: Prelude.Text
}
deriving (ListThingsInThingGroup -> ListThingsInThingGroup -> Bool
(ListThingsInThingGroup -> ListThingsInThingGroup -> Bool)
-> (ListThingsInThingGroup -> ListThingsInThingGroup -> Bool)
-> Eq ListThingsInThingGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListThingsInThingGroup -> ListThingsInThingGroup -> Bool
$c/= :: ListThingsInThingGroup -> ListThingsInThingGroup -> Bool
== :: ListThingsInThingGroup -> ListThingsInThingGroup -> Bool
$c== :: ListThingsInThingGroup -> ListThingsInThingGroup -> Bool
Prelude.Eq, ReadPrec [ListThingsInThingGroup]
ReadPrec ListThingsInThingGroup
Int -> ReadS ListThingsInThingGroup
ReadS [ListThingsInThingGroup]
(Int -> ReadS ListThingsInThingGroup)
-> ReadS [ListThingsInThingGroup]
-> ReadPrec ListThingsInThingGroup
-> ReadPrec [ListThingsInThingGroup]
-> Read ListThingsInThingGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListThingsInThingGroup]
$creadListPrec :: ReadPrec [ListThingsInThingGroup]
readPrec :: ReadPrec ListThingsInThingGroup
$creadPrec :: ReadPrec ListThingsInThingGroup
readList :: ReadS [ListThingsInThingGroup]
$creadList :: ReadS [ListThingsInThingGroup]
readsPrec :: Int -> ReadS ListThingsInThingGroup
$creadsPrec :: Int -> ReadS ListThingsInThingGroup
Prelude.Read, Int -> ListThingsInThingGroup -> ShowS
[ListThingsInThingGroup] -> ShowS
ListThingsInThingGroup -> String
(Int -> ListThingsInThingGroup -> ShowS)
-> (ListThingsInThingGroup -> String)
-> ([ListThingsInThingGroup] -> ShowS)
-> Show ListThingsInThingGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListThingsInThingGroup] -> ShowS
$cshowList :: [ListThingsInThingGroup] -> ShowS
show :: ListThingsInThingGroup -> String
$cshow :: ListThingsInThingGroup -> String
showsPrec :: Int -> ListThingsInThingGroup -> ShowS
$cshowsPrec :: Int -> ListThingsInThingGroup -> ShowS
Prelude.Show, (forall x. ListThingsInThingGroup -> Rep ListThingsInThingGroup x)
-> (forall x.
Rep ListThingsInThingGroup x -> ListThingsInThingGroup)
-> Generic ListThingsInThingGroup
forall x. Rep ListThingsInThingGroup x -> ListThingsInThingGroup
forall x. ListThingsInThingGroup -> Rep ListThingsInThingGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListThingsInThingGroup x -> ListThingsInThingGroup
$cfrom :: forall x. ListThingsInThingGroup -> Rep ListThingsInThingGroup x
Prelude.Generic)
newListThingsInThingGroup ::
Prelude.Text ->
ListThingsInThingGroup
newListThingsInThingGroup :: Text -> ListThingsInThingGroup
newListThingsInThingGroup Text
pThingGroupName_ =
ListThingsInThingGroup' :: Maybe Text
-> Maybe Bool -> Maybe Natural -> Text -> ListThingsInThingGroup
ListThingsInThingGroup'
{ $sel:nextToken:ListThingsInThingGroup' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:recursive:ListThingsInThingGroup' :: Maybe Bool
recursive = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListThingsInThingGroup' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:thingGroupName:ListThingsInThingGroup' :: Text
thingGroupName = Text
pThingGroupName_
}
listThingsInThingGroup_nextToken :: Lens.Lens' ListThingsInThingGroup (Prelude.Maybe Prelude.Text)
listThingsInThingGroup_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListThingsInThingGroup -> f ListThingsInThingGroup
listThingsInThingGroup_nextToken = (ListThingsInThingGroup -> Maybe Text)
-> (ListThingsInThingGroup -> Maybe Text -> ListThingsInThingGroup)
-> Lens
ListThingsInThingGroup
ListThingsInThingGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThingsInThingGroup' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListThingsInThingGroup' :: ListThingsInThingGroup -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListThingsInThingGroup
s@ListThingsInThingGroup' {} Maybe Text
a -> ListThingsInThingGroup
s {$sel:nextToken:ListThingsInThingGroup' :: Maybe Text
nextToken = Maybe Text
a} :: ListThingsInThingGroup)
listThingsInThingGroup_recursive :: Lens.Lens' ListThingsInThingGroup (Prelude.Maybe Prelude.Bool)
listThingsInThingGroup_recursive :: (Maybe Bool -> f (Maybe Bool))
-> ListThingsInThingGroup -> f ListThingsInThingGroup
listThingsInThingGroup_recursive = (ListThingsInThingGroup -> Maybe Bool)
-> (ListThingsInThingGroup -> Maybe Bool -> ListThingsInThingGroup)
-> Lens
ListThingsInThingGroup
ListThingsInThingGroup
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThingsInThingGroup' {Maybe Bool
recursive :: Maybe Bool
$sel:recursive:ListThingsInThingGroup' :: ListThingsInThingGroup -> Maybe Bool
recursive} -> Maybe Bool
recursive) (\s :: ListThingsInThingGroup
s@ListThingsInThingGroup' {} Maybe Bool
a -> ListThingsInThingGroup
s {$sel:recursive:ListThingsInThingGroup' :: Maybe Bool
recursive = Maybe Bool
a} :: ListThingsInThingGroup)
listThingsInThingGroup_maxResults :: Lens.Lens' ListThingsInThingGroup (Prelude.Maybe Prelude.Natural)
listThingsInThingGroup_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListThingsInThingGroup -> f ListThingsInThingGroup
listThingsInThingGroup_maxResults = (ListThingsInThingGroup -> Maybe Natural)
-> (ListThingsInThingGroup
-> Maybe Natural -> ListThingsInThingGroup)
-> Lens
ListThingsInThingGroup
ListThingsInThingGroup
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThingsInThingGroup' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListThingsInThingGroup' :: ListThingsInThingGroup -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListThingsInThingGroup
s@ListThingsInThingGroup' {} Maybe Natural
a -> ListThingsInThingGroup
s {$sel:maxResults:ListThingsInThingGroup' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListThingsInThingGroup)
listThingsInThingGroup_thingGroupName :: Lens.Lens' ListThingsInThingGroup Prelude.Text
listThingsInThingGroup_thingGroupName :: (Text -> f Text)
-> ListThingsInThingGroup -> f ListThingsInThingGroup
listThingsInThingGroup_thingGroupName = (ListThingsInThingGroup -> Text)
-> (ListThingsInThingGroup -> Text -> ListThingsInThingGroup)
-> Lens ListThingsInThingGroup ListThingsInThingGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThingsInThingGroup' {Text
thingGroupName :: Text
$sel:thingGroupName:ListThingsInThingGroup' :: ListThingsInThingGroup -> Text
thingGroupName} -> Text
thingGroupName) (\s :: ListThingsInThingGroup
s@ListThingsInThingGroup' {} Text
a -> ListThingsInThingGroup
s {$sel:thingGroupName:ListThingsInThingGroup' :: Text
thingGroupName = Text
a} :: ListThingsInThingGroup)
instance Core.AWSPager ListThingsInThingGroup where
page :: ListThingsInThingGroup
-> AWSResponse ListThingsInThingGroup
-> Maybe ListThingsInThingGroup
page ListThingsInThingGroup
rq AWSResponse ListThingsInThingGroup
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListThingsInThingGroup
ListThingsInThingGroupResponse
rs
ListThingsInThingGroupResponse
-> Getting (First Text) ListThingsInThingGroupResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListThingsInThingGroupResponse
-> Const (First Text) ListThingsInThingGroupResponse
Lens' ListThingsInThingGroupResponse (Maybe Text)
listThingsInThingGroupResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListThingsInThingGroupResponse
-> Const (First Text) ListThingsInThingGroupResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListThingsInThingGroupResponse 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 ListThingsInThingGroup
forall a. Maybe a
Prelude.Nothing
| Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListThingsInThingGroup
ListThingsInThingGroupResponse
rs
ListThingsInThingGroupResponse
-> Getting (First [Text]) ListThingsInThingGroupResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListThingsInThingGroupResponse
-> Const (First [Text]) ListThingsInThingGroupResponse
Lens' ListThingsInThingGroupResponse (Maybe [Text])
listThingsInThingGroupResponse_things
((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListThingsInThingGroupResponse
-> Const (First [Text]) ListThingsInThingGroupResponse)
-> (([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) ListThingsInThingGroupResponse [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 ListThingsInThingGroup
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListThingsInThingGroup -> Maybe ListThingsInThingGroup
forall a. a -> Maybe a
Prelude.Just (ListThingsInThingGroup -> Maybe ListThingsInThingGroup)
-> ListThingsInThingGroup -> Maybe ListThingsInThingGroup
forall a b. (a -> b) -> a -> b
Prelude.$
ListThingsInThingGroup
rq
ListThingsInThingGroup
-> (ListThingsInThingGroup -> ListThingsInThingGroup)
-> ListThingsInThingGroup
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListThingsInThingGroup -> Identity ListThingsInThingGroup
Lens
ListThingsInThingGroup
ListThingsInThingGroup
(Maybe Text)
(Maybe Text)
listThingsInThingGroup_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListThingsInThingGroup -> Identity ListThingsInThingGroup)
-> Maybe Text -> ListThingsInThingGroup -> ListThingsInThingGroup
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListThingsInThingGroup
ListThingsInThingGroupResponse
rs
ListThingsInThingGroupResponse
-> Getting (First Text) ListThingsInThingGroupResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListThingsInThingGroupResponse
-> Const (First Text) ListThingsInThingGroupResponse
Lens' ListThingsInThingGroupResponse (Maybe Text)
listThingsInThingGroupResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListThingsInThingGroupResponse
-> Const (First Text) ListThingsInThingGroupResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListThingsInThingGroupResponse 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 ListThingsInThingGroup where
type
AWSResponse ListThingsInThingGroup =
ListThingsInThingGroupResponse
request :: ListThingsInThingGroup -> Request ListThingsInThingGroup
request = Service -> ListThingsInThingGroup -> Request ListThingsInThingGroup
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListThingsInThingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListThingsInThingGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListThingsInThingGroup))
-> Logger
-> Service
-> Proxy ListThingsInThingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListThingsInThingGroup)))
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 -> ListThingsInThingGroupResponse
ListThingsInThingGroupResponse'
(Maybe Text
-> Maybe [Text] -> Int -> ListThingsInThingGroupResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Text] -> Int -> ListThingsInThingGroupResponse)
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 -> ListThingsInThingGroupResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> ListThingsInThingGroupResponse)
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
"things" 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 -> ListThingsInThingGroupResponse)
-> Either String Int
-> Either String ListThingsInThingGroupResponse
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 ListThingsInThingGroup
instance Prelude.NFData ListThingsInThingGroup
instance Core.ToHeaders ListThingsInThingGroup where
toHeaders :: ListThingsInThingGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> ListThingsInThingGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListThingsInThingGroup where
toPath :: ListThingsInThingGroup -> ByteString
toPath ListThingsInThingGroup' {Maybe Bool
Maybe Natural
Maybe Text
Text
thingGroupName :: Text
maxResults :: Maybe Natural
recursive :: Maybe Bool
nextToken :: Maybe Text
$sel:thingGroupName:ListThingsInThingGroup' :: ListThingsInThingGroup -> Text
$sel:maxResults:ListThingsInThingGroup' :: ListThingsInThingGroup -> Maybe Natural
$sel:recursive:ListThingsInThingGroup' :: ListThingsInThingGroup -> Maybe Bool
$sel:nextToken:ListThingsInThingGroup' :: ListThingsInThingGroup -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/thing-groups/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
thingGroupName,
ByteString
"/things"
]
instance Core.ToQuery ListThingsInThingGroup where
toQuery :: ListThingsInThingGroup -> QueryString
toQuery ListThingsInThingGroup' {Maybe Bool
Maybe Natural
Maybe Text
Text
thingGroupName :: Text
maxResults :: Maybe Natural
recursive :: Maybe Bool
nextToken :: Maybe Text
$sel:thingGroupName:ListThingsInThingGroup' :: ListThingsInThingGroup -> Text
$sel:maxResults:ListThingsInThingGroup' :: ListThingsInThingGroup -> Maybe Natural
$sel:recursive:ListThingsInThingGroup' :: ListThingsInThingGroup -> Maybe Bool
$sel:nextToken:ListThingsInThingGroup' :: ListThingsInThingGroup -> 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
"recursive" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
recursive,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListThingsInThingGroupResponse = ListThingsInThingGroupResponse'
{
ListThingsInThingGroupResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListThingsInThingGroupResponse -> Maybe [Text]
things :: Prelude.Maybe [Prelude.Text],
ListThingsInThingGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListThingsInThingGroupResponse
-> ListThingsInThingGroupResponse -> Bool
(ListThingsInThingGroupResponse
-> ListThingsInThingGroupResponse -> Bool)
-> (ListThingsInThingGroupResponse
-> ListThingsInThingGroupResponse -> Bool)
-> Eq ListThingsInThingGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListThingsInThingGroupResponse
-> ListThingsInThingGroupResponse -> Bool
$c/= :: ListThingsInThingGroupResponse
-> ListThingsInThingGroupResponse -> Bool
== :: ListThingsInThingGroupResponse
-> ListThingsInThingGroupResponse -> Bool
$c== :: ListThingsInThingGroupResponse
-> ListThingsInThingGroupResponse -> Bool
Prelude.Eq, ReadPrec [ListThingsInThingGroupResponse]
ReadPrec ListThingsInThingGroupResponse
Int -> ReadS ListThingsInThingGroupResponse
ReadS [ListThingsInThingGroupResponse]
(Int -> ReadS ListThingsInThingGroupResponse)
-> ReadS [ListThingsInThingGroupResponse]
-> ReadPrec ListThingsInThingGroupResponse
-> ReadPrec [ListThingsInThingGroupResponse]
-> Read ListThingsInThingGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListThingsInThingGroupResponse]
$creadListPrec :: ReadPrec [ListThingsInThingGroupResponse]
readPrec :: ReadPrec ListThingsInThingGroupResponse
$creadPrec :: ReadPrec ListThingsInThingGroupResponse
readList :: ReadS [ListThingsInThingGroupResponse]
$creadList :: ReadS [ListThingsInThingGroupResponse]
readsPrec :: Int -> ReadS ListThingsInThingGroupResponse
$creadsPrec :: Int -> ReadS ListThingsInThingGroupResponse
Prelude.Read, Int -> ListThingsInThingGroupResponse -> ShowS
[ListThingsInThingGroupResponse] -> ShowS
ListThingsInThingGroupResponse -> String
(Int -> ListThingsInThingGroupResponse -> ShowS)
-> (ListThingsInThingGroupResponse -> String)
-> ([ListThingsInThingGroupResponse] -> ShowS)
-> Show ListThingsInThingGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListThingsInThingGroupResponse] -> ShowS
$cshowList :: [ListThingsInThingGroupResponse] -> ShowS
show :: ListThingsInThingGroupResponse -> String
$cshow :: ListThingsInThingGroupResponse -> String
showsPrec :: Int -> ListThingsInThingGroupResponse -> ShowS
$cshowsPrec :: Int -> ListThingsInThingGroupResponse -> ShowS
Prelude.Show, (forall x.
ListThingsInThingGroupResponse
-> Rep ListThingsInThingGroupResponse x)
-> (forall x.
Rep ListThingsInThingGroupResponse x
-> ListThingsInThingGroupResponse)
-> Generic ListThingsInThingGroupResponse
forall x.
Rep ListThingsInThingGroupResponse x
-> ListThingsInThingGroupResponse
forall x.
ListThingsInThingGroupResponse
-> Rep ListThingsInThingGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListThingsInThingGroupResponse x
-> ListThingsInThingGroupResponse
$cfrom :: forall x.
ListThingsInThingGroupResponse
-> Rep ListThingsInThingGroupResponse x
Prelude.Generic)
newListThingsInThingGroupResponse ::
Prelude.Int ->
ListThingsInThingGroupResponse
newListThingsInThingGroupResponse :: Int -> ListThingsInThingGroupResponse
newListThingsInThingGroupResponse Int
pHttpStatus_ =
ListThingsInThingGroupResponse' :: Maybe Text -> Maybe [Text] -> Int -> ListThingsInThingGroupResponse
ListThingsInThingGroupResponse'
{ $sel:nextToken:ListThingsInThingGroupResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:things:ListThingsInThingGroupResponse' :: Maybe [Text]
things = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListThingsInThingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listThingsInThingGroupResponse_nextToken :: Lens.Lens' ListThingsInThingGroupResponse (Prelude.Maybe Prelude.Text)
listThingsInThingGroupResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListThingsInThingGroupResponse
-> f ListThingsInThingGroupResponse
listThingsInThingGroupResponse_nextToken = (ListThingsInThingGroupResponse -> Maybe Text)
-> (ListThingsInThingGroupResponse
-> Maybe Text -> ListThingsInThingGroupResponse)
-> Lens' ListThingsInThingGroupResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThingsInThingGroupResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListThingsInThingGroupResponse' :: ListThingsInThingGroupResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListThingsInThingGroupResponse
s@ListThingsInThingGroupResponse' {} Maybe Text
a -> ListThingsInThingGroupResponse
s {$sel:nextToken:ListThingsInThingGroupResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListThingsInThingGroupResponse)
listThingsInThingGroupResponse_things :: Lens.Lens' ListThingsInThingGroupResponse (Prelude.Maybe [Prelude.Text])
listThingsInThingGroupResponse_things :: (Maybe [Text] -> f (Maybe [Text]))
-> ListThingsInThingGroupResponse
-> f ListThingsInThingGroupResponse
listThingsInThingGroupResponse_things = (ListThingsInThingGroupResponse -> Maybe [Text])
-> (ListThingsInThingGroupResponse
-> Maybe [Text] -> ListThingsInThingGroupResponse)
-> Lens' ListThingsInThingGroupResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThingsInThingGroupResponse' {Maybe [Text]
things :: Maybe [Text]
$sel:things:ListThingsInThingGroupResponse' :: ListThingsInThingGroupResponse -> Maybe [Text]
things} -> Maybe [Text]
things) (\s :: ListThingsInThingGroupResponse
s@ListThingsInThingGroupResponse' {} Maybe [Text]
a -> ListThingsInThingGroupResponse
s {$sel:things:ListThingsInThingGroupResponse' :: Maybe [Text]
things = Maybe [Text]
a} :: ListThingsInThingGroupResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> ListThingsInThingGroupResponse
-> f ListThingsInThingGroupResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListThingsInThingGroupResponse
-> f ListThingsInThingGroupResponse
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
listThingsInThingGroupResponse_httpStatus :: Lens.Lens' ListThingsInThingGroupResponse Prelude.Int
listThingsInThingGroupResponse_httpStatus :: (Int -> f Int)
-> ListThingsInThingGroupResponse
-> f ListThingsInThingGroupResponse
listThingsInThingGroupResponse_httpStatus = (ListThingsInThingGroupResponse -> Int)
-> (ListThingsInThingGroupResponse
-> Int -> ListThingsInThingGroupResponse)
-> Lens
ListThingsInThingGroupResponse
ListThingsInThingGroupResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThingsInThingGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListThingsInThingGroupResponse' :: ListThingsInThingGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListThingsInThingGroupResponse
s@ListThingsInThingGroupResponse' {} Int
a -> ListThingsInThingGroupResponse
s {$sel:httpStatus:ListThingsInThingGroupResponse' :: Int
httpStatus = Int
a} :: ListThingsInThingGroupResponse)
instance
Prelude.NFData
ListThingsInThingGroupResponse