{-# 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.IoTEvents.ListAlarmModelVersions
(
ListAlarmModelVersions (..),
newListAlarmModelVersions,
listAlarmModelVersions_nextToken,
listAlarmModelVersions_maxResults,
listAlarmModelVersions_alarmModelName,
ListAlarmModelVersionsResponse (..),
newListAlarmModelVersionsResponse,
listAlarmModelVersionsResponse_alarmModelVersionSummaries,
listAlarmModelVersionsResponse_nextToken,
listAlarmModelVersionsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTEvents.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 ListAlarmModelVersions = ListAlarmModelVersions'
{
ListAlarmModelVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAlarmModelVersions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListAlarmModelVersions -> Text
alarmModelName :: Prelude.Text
}
deriving (ListAlarmModelVersions -> ListAlarmModelVersions -> Bool
(ListAlarmModelVersions -> ListAlarmModelVersions -> Bool)
-> (ListAlarmModelVersions -> ListAlarmModelVersions -> Bool)
-> Eq ListAlarmModelVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAlarmModelVersions -> ListAlarmModelVersions -> Bool
$c/= :: ListAlarmModelVersions -> ListAlarmModelVersions -> Bool
== :: ListAlarmModelVersions -> ListAlarmModelVersions -> Bool
$c== :: ListAlarmModelVersions -> ListAlarmModelVersions -> Bool
Prelude.Eq, ReadPrec [ListAlarmModelVersions]
ReadPrec ListAlarmModelVersions
Int -> ReadS ListAlarmModelVersions
ReadS [ListAlarmModelVersions]
(Int -> ReadS ListAlarmModelVersions)
-> ReadS [ListAlarmModelVersions]
-> ReadPrec ListAlarmModelVersions
-> ReadPrec [ListAlarmModelVersions]
-> Read ListAlarmModelVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAlarmModelVersions]
$creadListPrec :: ReadPrec [ListAlarmModelVersions]
readPrec :: ReadPrec ListAlarmModelVersions
$creadPrec :: ReadPrec ListAlarmModelVersions
readList :: ReadS [ListAlarmModelVersions]
$creadList :: ReadS [ListAlarmModelVersions]
readsPrec :: Int -> ReadS ListAlarmModelVersions
$creadsPrec :: Int -> ReadS ListAlarmModelVersions
Prelude.Read, Int -> ListAlarmModelVersions -> ShowS
[ListAlarmModelVersions] -> ShowS
ListAlarmModelVersions -> String
(Int -> ListAlarmModelVersions -> ShowS)
-> (ListAlarmModelVersions -> String)
-> ([ListAlarmModelVersions] -> ShowS)
-> Show ListAlarmModelVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAlarmModelVersions] -> ShowS
$cshowList :: [ListAlarmModelVersions] -> ShowS
show :: ListAlarmModelVersions -> String
$cshow :: ListAlarmModelVersions -> String
showsPrec :: Int -> ListAlarmModelVersions -> ShowS
$cshowsPrec :: Int -> ListAlarmModelVersions -> ShowS
Prelude.Show, (forall x. ListAlarmModelVersions -> Rep ListAlarmModelVersions x)
-> (forall x.
Rep ListAlarmModelVersions x -> ListAlarmModelVersions)
-> Generic ListAlarmModelVersions
forall x. Rep ListAlarmModelVersions x -> ListAlarmModelVersions
forall x. ListAlarmModelVersions -> Rep ListAlarmModelVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAlarmModelVersions x -> ListAlarmModelVersions
$cfrom :: forall x. ListAlarmModelVersions -> Rep ListAlarmModelVersions x
Prelude.Generic)
newListAlarmModelVersions ::
Prelude.Text ->
ListAlarmModelVersions
newListAlarmModelVersions :: Text -> ListAlarmModelVersions
newListAlarmModelVersions Text
pAlarmModelName_ =
ListAlarmModelVersions' :: Maybe Text -> Maybe Natural -> Text -> ListAlarmModelVersions
ListAlarmModelVersions'
{ $sel:nextToken:ListAlarmModelVersions' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAlarmModelVersions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:alarmModelName:ListAlarmModelVersions' :: Text
alarmModelName = Text
pAlarmModelName_
}
listAlarmModelVersions_nextToken :: Lens.Lens' ListAlarmModelVersions (Prelude.Maybe Prelude.Text)
listAlarmModelVersions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAlarmModelVersions -> f ListAlarmModelVersions
listAlarmModelVersions_nextToken = (ListAlarmModelVersions -> Maybe Text)
-> (ListAlarmModelVersions -> Maybe Text -> ListAlarmModelVersions)
-> Lens
ListAlarmModelVersions
ListAlarmModelVersions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAlarmModelVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAlarmModelVersions' :: ListAlarmModelVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAlarmModelVersions
s@ListAlarmModelVersions' {} Maybe Text
a -> ListAlarmModelVersions
s {$sel:nextToken:ListAlarmModelVersions' :: Maybe Text
nextToken = Maybe Text
a} :: ListAlarmModelVersions)
listAlarmModelVersions_maxResults :: Lens.Lens' ListAlarmModelVersions (Prelude.Maybe Prelude.Natural)
listAlarmModelVersions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListAlarmModelVersions -> f ListAlarmModelVersions
listAlarmModelVersions_maxResults = (ListAlarmModelVersions -> Maybe Natural)
-> (ListAlarmModelVersions
-> Maybe Natural -> ListAlarmModelVersions)
-> Lens
ListAlarmModelVersions
ListAlarmModelVersions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAlarmModelVersions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAlarmModelVersions' :: ListAlarmModelVersions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAlarmModelVersions
s@ListAlarmModelVersions' {} Maybe Natural
a -> ListAlarmModelVersions
s {$sel:maxResults:ListAlarmModelVersions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAlarmModelVersions)
listAlarmModelVersions_alarmModelName :: Lens.Lens' ListAlarmModelVersions Prelude.Text
listAlarmModelVersions_alarmModelName :: (Text -> f Text)
-> ListAlarmModelVersions -> f ListAlarmModelVersions
listAlarmModelVersions_alarmModelName = (ListAlarmModelVersions -> Text)
-> (ListAlarmModelVersions -> Text -> ListAlarmModelVersions)
-> Lens ListAlarmModelVersions ListAlarmModelVersions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAlarmModelVersions' {Text
alarmModelName :: Text
$sel:alarmModelName:ListAlarmModelVersions' :: ListAlarmModelVersions -> Text
alarmModelName} -> Text
alarmModelName) (\s :: ListAlarmModelVersions
s@ListAlarmModelVersions' {} Text
a -> ListAlarmModelVersions
s {$sel:alarmModelName:ListAlarmModelVersions' :: Text
alarmModelName = Text
a} :: ListAlarmModelVersions)
instance Core.AWSRequest ListAlarmModelVersions where
type
AWSResponse ListAlarmModelVersions =
ListAlarmModelVersionsResponse
request :: ListAlarmModelVersions -> Request ListAlarmModelVersions
request = Service -> ListAlarmModelVersions -> Request ListAlarmModelVersions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListAlarmModelVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAlarmModelVersions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListAlarmModelVersions))
-> Logger
-> Service
-> Proxy ListAlarmModelVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAlarmModelVersions)))
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 [AlarmModelVersionSummary]
-> Maybe Text -> Int -> ListAlarmModelVersionsResponse
ListAlarmModelVersionsResponse'
(Maybe [AlarmModelVersionSummary]
-> Maybe Text -> Int -> ListAlarmModelVersionsResponse)
-> Either String (Maybe [AlarmModelVersionSummary])
-> Either
String (Maybe Text -> Int -> ListAlarmModelVersionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [AlarmModelVersionSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"alarmModelVersionSummaries"
Either String (Maybe (Maybe [AlarmModelVersionSummary]))
-> Maybe [AlarmModelVersionSummary]
-> Either String (Maybe [AlarmModelVersionSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AlarmModelVersionSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListAlarmModelVersionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListAlarmModelVersionsResponse)
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 (Int -> ListAlarmModelVersionsResponse)
-> Either String Int
-> Either String ListAlarmModelVersionsResponse
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 ListAlarmModelVersions
instance Prelude.NFData ListAlarmModelVersions
instance Core.ToHeaders ListAlarmModelVersions where
toHeaders :: ListAlarmModelVersions -> ResponseHeaders
toHeaders = ResponseHeaders -> ListAlarmModelVersions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListAlarmModelVersions where
toPath :: ListAlarmModelVersions -> ByteString
toPath ListAlarmModelVersions' {Maybe Natural
Maybe Text
Text
alarmModelName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:alarmModelName:ListAlarmModelVersions' :: ListAlarmModelVersions -> Text
$sel:maxResults:ListAlarmModelVersions' :: ListAlarmModelVersions -> Maybe Natural
$sel:nextToken:ListAlarmModelVersions' :: ListAlarmModelVersions -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/alarm-models/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
alarmModelName,
ByteString
"/versions"
]
instance Core.ToQuery ListAlarmModelVersions where
toQuery :: ListAlarmModelVersions -> QueryString
toQuery ListAlarmModelVersions' {Maybe Natural
Maybe Text
Text
alarmModelName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:alarmModelName:ListAlarmModelVersions' :: ListAlarmModelVersions -> Text
$sel:maxResults:ListAlarmModelVersions' :: ListAlarmModelVersions -> Maybe Natural
$sel:nextToken:ListAlarmModelVersions' :: ListAlarmModelVersions -> 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
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListAlarmModelVersionsResponse = ListAlarmModelVersionsResponse'
{
ListAlarmModelVersionsResponse -> Maybe [AlarmModelVersionSummary]
alarmModelVersionSummaries :: Prelude.Maybe [AlarmModelVersionSummary],
ListAlarmModelVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAlarmModelVersionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAlarmModelVersionsResponse
-> ListAlarmModelVersionsResponse -> Bool
(ListAlarmModelVersionsResponse
-> ListAlarmModelVersionsResponse -> Bool)
-> (ListAlarmModelVersionsResponse
-> ListAlarmModelVersionsResponse -> Bool)
-> Eq ListAlarmModelVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAlarmModelVersionsResponse
-> ListAlarmModelVersionsResponse -> Bool
$c/= :: ListAlarmModelVersionsResponse
-> ListAlarmModelVersionsResponse -> Bool
== :: ListAlarmModelVersionsResponse
-> ListAlarmModelVersionsResponse -> Bool
$c== :: ListAlarmModelVersionsResponse
-> ListAlarmModelVersionsResponse -> Bool
Prelude.Eq, ReadPrec [ListAlarmModelVersionsResponse]
ReadPrec ListAlarmModelVersionsResponse
Int -> ReadS ListAlarmModelVersionsResponse
ReadS [ListAlarmModelVersionsResponse]
(Int -> ReadS ListAlarmModelVersionsResponse)
-> ReadS [ListAlarmModelVersionsResponse]
-> ReadPrec ListAlarmModelVersionsResponse
-> ReadPrec [ListAlarmModelVersionsResponse]
-> Read ListAlarmModelVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAlarmModelVersionsResponse]
$creadListPrec :: ReadPrec [ListAlarmModelVersionsResponse]
readPrec :: ReadPrec ListAlarmModelVersionsResponse
$creadPrec :: ReadPrec ListAlarmModelVersionsResponse
readList :: ReadS [ListAlarmModelVersionsResponse]
$creadList :: ReadS [ListAlarmModelVersionsResponse]
readsPrec :: Int -> ReadS ListAlarmModelVersionsResponse
$creadsPrec :: Int -> ReadS ListAlarmModelVersionsResponse
Prelude.Read, Int -> ListAlarmModelVersionsResponse -> ShowS
[ListAlarmModelVersionsResponse] -> ShowS
ListAlarmModelVersionsResponse -> String
(Int -> ListAlarmModelVersionsResponse -> ShowS)
-> (ListAlarmModelVersionsResponse -> String)
-> ([ListAlarmModelVersionsResponse] -> ShowS)
-> Show ListAlarmModelVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAlarmModelVersionsResponse] -> ShowS
$cshowList :: [ListAlarmModelVersionsResponse] -> ShowS
show :: ListAlarmModelVersionsResponse -> String
$cshow :: ListAlarmModelVersionsResponse -> String
showsPrec :: Int -> ListAlarmModelVersionsResponse -> ShowS
$cshowsPrec :: Int -> ListAlarmModelVersionsResponse -> ShowS
Prelude.Show, (forall x.
ListAlarmModelVersionsResponse
-> Rep ListAlarmModelVersionsResponse x)
-> (forall x.
Rep ListAlarmModelVersionsResponse x
-> ListAlarmModelVersionsResponse)
-> Generic ListAlarmModelVersionsResponse
forall x.
Rep ListAlarmModelVersionsResponse x
-> ListAlarmModelVersionsResponse
forall x.
ListAlarmModelVersionsResponse
-> Rep ListAlarmModelVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAlarmModelVersionsResponse x
-> ListAlarmModelVersionsResponse
$cfrom :: forall x.
ListAlarmModelVersionsResponse
-> Rep ListAlarmModelVersionsResponse x
Prelude.Generic)
newListAlarmModelVersionsResponse ::
Prelude.Int ->
ListAlarmModelVersionsResponse
newListAlarmModelVersionsResponse :: Int -> ListAlarmModelVersionsResponse
newListAlarmModelVersionsResponse Int
pHttpStatus_ =
ListAlarmModelVersionsResponse' :: Maybe [AlarmModelVersionSummary]
-> Maybe Text -> Int -> ListAlarmModelVersionsResponse
ListAlarmModelVersionsResponse'
{ $sel:alarmModelVersionSummaries:ListAlarmModelVersionsResponse' :: Maybe [AlarmModelVersionSummary]
alarmModelVersionSummaries =
Maybe [AlarmModelVersionSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAlarmModelVersionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAlarmModelVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAlarmModelVersionsResponse_alarmModelVersionSummaries :: Lens.Lens' ListAlarmModelVersionsResponse (Prelude.Maybe [AlarmModelVersionSummary])
listAlarmModelVersionsResponse_alarmModelVersionSummaries :: (Maybe [AlarmModelVersionSummary]
-> f (Maybe [AlarmModelVersionSummary]))
-> ListAlarmModelVersionsResponse
-> f ListAlarmModelVersionsResponse
listAlarmModelVersionsResponse_alarmModelVersionSummaries = (ListAlarmModelVersionsResponse
-> Maybe [AlarmModelVersionSummary])
-> (ListAlarmModelVersionsResponse
-> Maybe [AlarmModelVersionSummary]
-> ListAlarmModelVersionsResponse)
-> Lens
ListAlarmModelVersionsResponse
ListAlarmModelVersionsResponse
(Maybe [AlarmModelVersionSummary])
(Maybe [AlarmModelVersionSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAlarmModelVersionsResponse' {Maybe [AlarmModelVersionSummary]
alarmModelVersionSummaries :: Maybe [AlarmModelVersionSummary]
$sel:alarmModelVersionSummaries:ListAlarmModelVersionsResponse' :: ListAlarmModelVersionsResponse -> Maybe [AlarmModelVersionSummary]
alarmModelVersionSummaries} -> Maybe [AlarmModelVersionSummary]
alarmModelVersionSummaries) (\s :: ListAlarmModelVersionsResponse
s@ListAlarmModelVersionsResponse' {} Maybe [AlarmModelVersionSummary]
a -> ListAlarmModelVersionsResponse
s {$sel:alarmModelVersionSummaries:ListAlarmModelVersionsResponse' :: Maybe [AlarmModelVersionSummary]
alarmModelVersionSummaries = Maybe [AlarmModelVersionSummary]
a} :: ListAlarmModelVersionsResponse) ((Maybe [AlarmModelVersionSummary]
-> f (Maybe [AlarmModelVersionSummary]))
-> ListAlarmModelVersionsResponse
-> f ListAlarmModelVersionsResponse)
-> ((Maybe [AlarmModelVersionSummary]
-> f (Maybe [AlarmModelVersionSummary]))
-> Maybe [AlarmModelVersionSummary]
-> f (Maybe [AlarmModelVersionSummary]))
-> (Maybe [AlarmModelVersionSummary]
-> f (Maybe [AlarmModelVersionSummary]))
-> ListAlarmModelVersionsResponse
-> f ListAlarmModelVersionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AlarmModelVersionSummary]
[AlarmModelVersionSummary]
[AlarmModelVersionSummary]
[AlarmModelVersionSummary]
-> Iso
(Maybe [AlarmModelVersionSummary])
(Maybe [AlarmModelVersionSummary])
(Maybe [AlarmModelVersionSummary])
(Maybe [AlarmModelVersionSummary])
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
[AlarmModelVersionSummary]
[AlarmModelVersionSummary]
[AlarmModelVersionSummary]
[AlarmModelVersionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAlarmModelVersionsResponse_nextToken :: Lens.Lens' ListAlarmModelVersionsResponse (Prelude.Maybe Prelude.Text)
listAlarmModelVersionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAlarmModelVersionsResponse
-> f ListAlarmModelVersionsResponse
listAlarmModelVersionsResponse_nextToken = (ListAlarmModelVersionsResponse -> Maybe Text)
-> (ListAlarmModelVersionsResponse
-> Maybe Text -> ListAlarmModelVersionsResponse)
-> Lens
ListAlarmModelVersionsResponse
ListAlarmModelVersionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAlarmModelVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAlarmModelVersionsResponse' :: ListAlarmModelVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAlarmModelVersionsResponse
s@ListAlarmModelVersionsResponse' {} Maybe Text
a -> ListAlarmModelVersionsResponse
s {$sel:nextToken:ListAlarmModelVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAlarmModelVersionsResponse)
listAlarmModelVersionsResponse_httpStatus :: Lens.Lens' ListAlarmModelVersionsResponse Prelude.Int
listAlarmModelVersionsResponse_httpStatus :: (Int -> f Int)
-> ListAlarmModelVersionsResponse
-> f ListAlarmModelVersionsResponse
listAlarmModelVersionsResponse_httpStatus = (ListAlarmModelVersionsResponse -> Int)
-> (ListAlarmModelVersionsResponse
-> Int -> ListAlarmModelVersionsResponse)
-> Lens
ListAlarmModelVersionsResponse
ListAlarmModelVersionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAlarmModelVersionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAlarmModelVersionsResponse' :: ListAlarmModelVersionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAlarmModelVersionsResponse
s@ListAlarmModelVersionsResponse' {} Int
a -> ListAlarmModelVersionsResponse
s {$sel:httpStatus:ListAlarmModelVersionsResponse' :: Int
httpStatus = Int
a} :: ListAlarmModelVersionsResponse)
instance
Prelude.NFData
ListAlarmModelVersionsResponse