{-# 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.UpdateDynamicThingGroup
(
UpdateDynamicThingGroup (..),
newUpdateDynamicThingGroup,
updateDynamicThingGroup_queryVersion,
updateDynamicThingGroup_expectedVersion,
updateDynamicThingGroup_queryString,
updateDynamicThingGroup_indexName,
updateDynamicThingGroup_thingGroupName,
updateDynamicThingGroup_thingGroupProperties,
UpdateDynamicThingGroupResponse (..),
newUpdateDynamicThingGroupResponse,
updateDynamicThingGroupResponse_version,
updateDynamicThingGroupResponse_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 UpdateDynamicThingGroup = UpdateDynamicThingGroup'
{
UpdateDynamicThingGroup -> Maybe Text
queryVersion :: Prelude.Maybe Prelude.Text,
UpdateDynamicThingGroup -> Maybe Integer
expectedVersion :: Prelude.Maybe Prelude.Integer,
UpdateDynamicThingGroup -> Maybe Text
queryString :: Prelude.Maybe Prelude.Text,
UpdateDynamicThingGroup -> Maybe Text
indexName :: Prelude.Maybe Prelude.Text,
UpdateDynamicThingGroup -> Text
thingGroupName :: Prelude.Text,
UpdateDynamicThingGroup -> ThingGroupProperties
thingGroupProperties :: ThingGroupProperties
}
deriving (UpdateDynamicThingGroup -> UpdateDynamicThingGroup -> Bool
(UpdateDynamicThingGroup -> UpdateDynamicThingGroup -> Bool)
-> (UpdateDynamicThingGroup -> UpdateDynamicThingGroup -> Bool)
-> Eq UpdateDynamicThingGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateDynamicThingGroup -> UpdateDynamicThingGroup -> Bool
$c/= :: UpdateDynamicThingGroup -> UpdateDynamicThingGroup -> Bool
== :: UpdateDynamicThingGroup -> UpdateDynamicThingGroup -> Bool
$c== :: UpdateDynamicThingGroup -> UpdateDynamicThingGroup -> Bool
Prelude.Eq, ReadPrec [UpdateDynamicThingGroup]
ReadPrec UpdateDynamicThingGroup
Int -> ReadS UpdateDynamicThingGroup
ReadS [UpdateDynamicThingGroup]
(Int -> ReadS UpdateDynamicThingGroup)
-> ReadS [UpdateDynamicThingGroup]
-> ReadPrec UpdateDynamicThingGroup
-> ReadPrec [UpdateDynamicThingGroup]
-> Read UpdateDynamicThingGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateDynamicThingGroup]
$creadListPrec :: ReadPrec [UpdateDynamicThingGroup]
readPrec :: ReadPrec UpdateDynamicThingGroup
$creadPrec :: ReadPrec UpdateDynamicThingGroup
readList :: ReadS [UpdateDynamicThingGroup]
$creadList :: ReadS [UpdateDynamicThingGroup]
readsPrec :: Int -> ReadS UpdateDynamicThingGroup
$creadsPrec :: Int -> ReadS UpdateDynamicThingGroup
Prelude.Read, Int -> UpdateDynamicThingGroup -> ShowS
[UpdateDynamicThingGroup] -> ShowS
UpdateDynamicThingGroup -> String
(Int -> UpdateDynamicThingGroup -> ShowS)
-> (UpdateDynamicThingGroup -> String)
-> ([UpdateDynamicThingGroup] -> ShowS)
-> Show UpdateDynamicThingGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateDynamicThingGroup] -> ShowS
$cshowList :: [UpdateDynamicThingGroup] -> ShowS
show :: UpdateDynamicThingGroup -> String
$cshow :: UpdateDynamicThingGroup -> String
showsPrec :: Int -> UpdateDynamicThingGroup -> ShowS
$cshowsPrec :: Int -> UpdateDynamicThingGroup -> ShowS
Prelude.Show, (forall x.
UpdateDynamicThingGroup -> Rep UpdateDynamicThingGroup x)
-> (forall x.
Rep UpdateDynamicThingGroup x -> UpdateDynamicThingGroup)
-> Generic UpdateDynamicThingGroup
forall x. Rep UpdateDynamicThingGroup x -> UpdateDynamicThingGroup
forall x. UpdateDynamicThingGroup -> Rep UpdateDynamicThingGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateDynamicThingGroup x -> UpdateDynamicThingGroup
$cfrom :: forall x. UpdateDynamicThingGroup -> Rep UpdateDynamicThingGroup x
Prelude.Generic)
newUpdateDynamicThingGroup ::
Prelude.Text ->
ThingGroupProperties ->
UpdateDynamicThingGroup
newUpdateDynamicThingGroup :: Text -> ThingGroupProperties -> UpdateDynamicThingGroup
newUpdateDynamicThingGroup
Text
pThingGroupName_
ThingGroupProperties
pThingGroupProperties_ =
UpdateDynamicThingGroup' :: Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Text
-> ThingGroupProperties
-> UpdateDynamicThingGroup
UpdateDynamicThingGroup'
{ $sel:queryVersion:UpdateDynamicThingGroup' :: Maybe Text
queryVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expectedVersion:UpdateDynamicThingGroup' :: Maybe Integer
expectedVersion = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:queryString:UpdateDynamicThingGroup' :: Maybe Text
queryString = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:indexName:UpdateDynamicThingGroup' :: Maybe Text
indexName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:thingGroupName:UpdateDynamicThingGroup' :: Text
thingGroupName = Text
pThingGroupName_,
$sel:thingGroupProperties:UpdateDynamicThingGroup' :: ThingGroupProperties
thingGroupProperties = ThingGroupProperties
pThingGroupProperties_
}
updateDynamicThingGroup_queryVersion :: Lens.Lens' UpdateDynamicThingGroup (Prelude.Maybe Prelude.Text)
updateDynamicThingGroup_queryVersion :: (Maybe Text -> f (Maybe Text))
-> UpdateDynamicThingGroup -> f UpdateDynamicThingGroup
updateDynamicThingGroup_queryVersion = (UpdateDynamicThingGroup -> Maybe Text)
-> (UpdateDynamicThingGroup
-> Maybe Text -> UpdateDynamicThingGroup)
-> Lens
UpdateDynamicThingGroup
UpdateDynamicThingGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDynamicThingGroup' {Maybe Text
queryVersion :: Maybe Text
$sel:queryVersion:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Text
queryVersion} -> Maybe Text
queryVersion) (\s :: UpdateDynamicThingGroup
s@UpdateDynamicThingGroup' {} Maybe Text
a -> UpdateDynamicThingGroup
s {$sel:queryVersion:UpdateDynamicThingGroup' :: Maybe Text
queryVersion = Maybe Text
a} :: UpdateDynamicThingGroup)
updateDynamicThingGroup_expectedVersion :: Lens.Lens' UpdateDynamicThingGroup (Prelude.Maybe Prelude.Integer)
updateDynamicThingGroup_expectedVersion :: (Maybe Integer -> f (Maybe Integer))
-> UpdateDynamicThingGroup -> f UpdateDynamicThingGroup
updateDynamicThingGroup_expectedVersion = (UpdateDynamicThingGroup -> Maybe Integer)
-> (UpdateDynamicThingGroup
-> Maybe Integer -> UpdateDynamicThingGroup)
-> Lens
UpdateDynamicThingGroup
UpdateDynamicThingGroup
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDynamicThingGroup' {Maybe Integer
expectedVersion :: Maybe Integer
$sel:expectedVersion:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Integer
expectedVersion} -> Maybe Integer
expectedVersion) (\s :: UpdateDynamicThingGroup
s@UpdateDynamicThingGroup' {} Maybe Integer
a -> UpdateDynamicThingGroup
s {$sel:expectedVersion:UpdateDynamicThingGroup' :: Maybe Integer
expectedVersion = Maybe Integer
a} :: UpdateDynamicThingGroup)
updateDynamicThingGroup_queryString :: Lens.Lens' UpdateDynamicThingGroup (Prelude.Maybe Prelude.Text)
updateDynamicThingGroup_queryString :: (Maybe Text -> f (Maybe Text))
-> UpdateDynamicThingGroup -> f UpdateDynamicThingGroup
updateDynamicThingGroup_queryString = (UpdateDynamicThingGroup -> Maybe Text)
-> (UpdateDynamicThingGroup
-> Maybe Text -> UpdateDynamicThingGroup)
-> Lens
UpdateDynamicThingGroup
UpdateDynamicThingGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDynamicThingGroup' {Maybe Text
queryString :: Maybe Text
$sel:queryString:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Text
queryString} -> Maybe Text
queryString) (\s :: UpdateDynamicThingGroup
s@UpdateDynamicThingGroup' {} Maybe Text
a -> UpdateDynamicThingGroup
s {$sel:queryString:UpdateDynamicThingGroup' :: Maybe Text
queryString = Maybe Text
a} :: UpdateDynamicThingGroup)
updateDynamicThingGroup_indexName :: Lens.Lens' UpdateDynamicThingGroup (Prelude.Maybe Prelude.Text)
updateDynamicThingGroup_indexName :: (Maybe Text -> f (Maybe Text))
-> UpdateDynamicThingGroup -> f UpdateDynamicThingGroup
updateDynamicThingGroup_indexName = (UpdateDynamicThingGroup -> Maybe Text)
-> (UpdateDynamicThingGroup
-> Maybe Text -> UpdateDynamicThingGroup)
-> Lens
UpdateDynamicThingGroup
UpdateDynamicThingGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDynamicThingGroup' {Maybe Text
indexName :: Maybe Text
$sel:indexName:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Text
indexName} -> Maybe Text
indexName) (\s :: UpdateDynamicThingGroup
s@UpdateDynamicThingGroup' {} Maybe Text
a -> UpdateDynamicThingGroup
s {$sel:indexName:UpdateDynamicThingGroup' :: Maybe Text
indexName = Maybe Text
a} :: UpdateDynamicThingGroup)
updateDynamicThingGroup_thingGroupName :: Lens.Lens' UpdateDynamicThingGroup Prelude.Text
updateDynamicThingGroup_thingGroupName :: (Text -> f Text)
-> UpdateDynamicThingGroup -> f UpdateDynamicThingGroup
updateDynamicThingGroup_thingGroupName = (UpdateDynamicThingGroup -> Text)
-> (UpdateDynamicThingGroup -> Text -> UpdateDynamicThingGroup)
-> Lens UpdateDynamicThingGroup UpdateDynamicThingGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDynamicThingGroup' {Text
thingGroupName :: Text
$sel:thingGroupName:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Text
thingGroupName} -> Text
thingGroupName) (\s :: UpdateDynamicThingGroup
s@UpdateDynamicThingGroup' {} Text
a -> UpdateDynamicThingGroup
s {$sel:thingGroupName:UpdateDynamicThingGroup' :: Text
thingGroupName = Text
a} :: UpdateDynamicThingGroup)
updateDynamicThingGroup_thingGroupProperties :: Lens.Lens' UpdateDynamicThingGroup ThingGroupProperties
updateDynamicThingGroup_thingGroupProperties :: (ThingGroupProperties -> f ThingGroupProperties)
-> UpdateDynamicThingGroup -> f UpdateDynamicThingGroup
updateDynamicThingGroup_thingGroupProperties = (UpdateDynamicThingGroup -> ThingGroupProperties)
-> (UpdateDynamicThingGroup
-> ThingGroupProperties -> UpdateDynamicThingGroup)
-> Lens
UpdateDynamicThingGroup
UpdateDynamicThingGroup
ThingGroupProperties
ThingGroupProperties
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDynamicThingGroup' {ThingGroupProperties
thingGroupProperties :: ThingGroupProperties
$sel:thingGroupProperties:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> ThingGroupProperties
thingGroupProperties} -> ThingGroupProperties
thingGroupProperties) (\s :: UpdateDynamicThingGroup
s@UpdateDynamicThingGroup' {} ThingGroupProperties
a -> UpdateDynamicThingGroup
s {$sel:thingGroupProperties:UpdateDynamicThingGroup' :: ThingGroupProperties
thingGroupProperties = ThingGroupProperties
a} :: UpdateDynamicThingGroup)
instance Core.AWSRequest UpdateDynamicThingGroup where
type
AWSResponse UpdateDynamicThingGroup =
UpdateDynamicThingGroupResponse
request :: UpdateDynamicThingGroup -> Request UpdateDynamicThingGroup
request = Service
-> UpdateDynamicThingGroup -> Request UpdateDynamicThingGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateDynamicThingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateDynamicThingGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateDynamicThingGroup))
-> Logger
-> Service
-> Proxy UpdateDynamicThingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateDynamicThingGroup)))
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 Integer -> Int -> UpdateDynamicThingGroupResponse
UpdateDynamicThingGroupResponse'
(Maybe Integer -> Int -> UpdateDynamicThingGroupResponse)
-> Either String (Maybe Integer)
-> Either String (Int -> UpdateDynamicThingGroupResponse)
forall (f :: * -> *) a b. Functor 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
"version")
Either String (Int -> UpdateDynamicThingGroupResponse)
-> Either String Int
-> Either String UpdateDynamicThingGroupResponse
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 UpdateDynamicThingGroup
instance Prelude.NFData UpdateDynamicThingGroup
instance Core.ToHeaders UpdateDynamicThingGroup where
toHeaders :: UpdateDynamicThingGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> UpdateDynamicThingGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON UpdateDynamicThingGroup where
toJSON :: UpdateDynamicThingGroup -> Value
toJSON UpdateDynamicThingGroup' {Maybe Integer
Maybe Text
Text
ThingGroupProperties
thingGroupProperties :: ThingGroupProperties
thingGroupName :: Text
indexName :: Maybe Text
queryString :: Maybe Text
expectedVersion :: Maybe Integer
queryVersion :: Maybe Text
$sel:thingGroupProperties:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> ThingGroupProperties
$sel:thingGroupName:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Text
$sel:indexName:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Text
$sel:queryString:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Text
$sel:expectedVersion:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Integer
$sel:queryVersion:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"queryVersion" 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
queryVersion,
(Text
"expectedVersion" Text -> Integer -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Integer -> Pair) -> Maybe Integer -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Integer
expectedVersion,
(Text
"queryString" 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
queryString,
(Text
"indexName" 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
indexName,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"thingGroupProperties"
Text -> ThingGroupProperties -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ThingGroupProperties
thingGroupProperties
)
]
)
instance Core.ToPath UpdateDynamicThingGroup where
toPath :: UpdateDynamicThingGroup -> ByteString
toPath UpdateDynamicThingGroup' {Maybe Integer
Maybe Text
Text
ThingGroupProperties
thingGroupProperties :: ThingGroupProperties
thingGroupName :: Text
indexName :: Maybe Text
queryString :: Maybe Text
expectedVersion :: Maybe Integer
queryVersion :: Maybe Text
$sel:thingGroupProperties:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> ThingGroupProperties
$sel:thingGroupName:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Text
$sel:indexName:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Text
$sel:queryString:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Text
$sel:expectedVersion:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Integer
$sel:queryVersion:UpdateDynamicThingGroup' :: UpdateDynamicThingGroup -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/dynamic-thing-groups/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
thingGroupName]
instance Core.ToQuery UpdateDynamicThingGroup where
toQuery :: UpdateDynamicThingGroup -> QueryString
toQuery = QueryString -> UpdateDynamicThingGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateDynamicThingGroupResponse = UpdateDynamicThingGroupResponse'
{
UpdateDynamicThingGroupResponse -> Maybe Integer
version :: Prelude.Maybe Prelude.Integer,
UpdateDynamicThingGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateDynamicThingGroupResponse
-> UpdateDynamicThingGroupResponse -> Bool
(UpdateDynamicThingGroupResponse
-> UpdateDynamicThingGroupResponse -> Bool)
-> (UpdateDynamicThingGroupResponse
-> UpdateDynamicThingGroupResponse -> Bool)
-> Eq UpdateDynamicThingGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateDynamicThingGroupResponse
-> UpdateDynamicThingGroupResponse -> Bool
$c/= :: UpdateDynamicThingGroupResponse
-> UpdateDynamicThingGroupResponse -> Bool
== :: UpdateDynamicThingGroupResponse
-> UpdateDynamicThingGroupResponse -> Bool
$c== :: UpdateDynamicThingGroupResponse
-> UpdateDynamicThingGroupResponse -> Bool
Prelude.Eq, ReadPrec [UpdateDynamicThingGroupResponse]
ReadPrec UpdateDynamicThingGroupResponse
Int -> ReadS UpdateDynamicThingGroupResponse
ReadS [UpdateDynamicThingGroupResponse]
(Int -> ReadS UpdateDynamicThingGroupResponse)
-> ReadS [UpdateDynamicThingGroupResponse]
-> ReadPrec UpdateDynamicThingGroupResponse
-> ReadPrec [UpdateDynamicThingGroupResponse]
-> Read UpdateDynamicThingGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateDynamicThingGroupResponse]
$creadListPrec :: ReadPrec [UpdateDynamicThingGroupResponse]
readPrec :: ReadPrec UpdateDynamicThingGroupResponse
$creadPrec :: ReadPrec UpdateDynamicThingGroupResponse
readList :: ReadS [UpdateDynamicThingGroupResponse]
$creadList :: ReadS [UpdateDynamicThingGroupResponse]
readsPrec :: Int -> ReadS UpdateDynamicThingGroupResponse
$creadsPrec :: Int -> ReadS UpdateDynamicThingGroupResponse
Prelude.Read, Int -> UpdateDynamicThingGroupResponse -> ShowS
[UpdateDynamicThingGroupResponse] -> ShowS
UpdateDynamicThingGroupResponse -> String
(Int -> UpdateDynamicThingGroupResponse -> ShowS)
-> (UpdateDynamicThingGroupResponse -> String)
-> ([UpdateDynamicThingGroupResponse] -> ShowS)
-> Show UpdateDynamicThingGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateDynamicThingGroupResponse] -> ShowS
$cshowList :: [UpdateDynamicThingGroupResponse] -> ShowS
show :: UpdateDynamicThingGroupResponse -> String
$cshow :: UpdateDynamicThingGroupResponse -> String
showsPrec :: Int -> UpdateDynamicThingGroupResponse -> ShowS
$cshowsPrec :: Int -> UpdateDynamicThingGroupResponse -> ShowS
Prelude.Show, (forall x.
UpdateDynamicThingGroupResponse
-> Rep UpdateDynamicThingGroupResponse x)
-> (forall x.
Rep UpdateDynamicThingGroupResponse x
-> UpdateDynamicThingGroupResponse)
-> Generic UpdateDynamicThingGroupResponse
forall x.
Rep UpdateDynamicThingGroupResponse x
-> UpdateDynamicThingGroupResponse
forall x.
UpdateDynamicThingGroupResponse
-> Rep UpdateDynamicThingGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateDynamicThingGroupResponse x
-> UpdateDynamicThingGroupResponse
$cfrom :: forall x.
UpdateDynamicThingGroupResponse
-> Rep UpdateDynamicThingGroupResponse x
Prelude.Generic)
newUpdateDynamicThingGroupResponse ::
Prelude.Int ->
UpdateDynamicThingGroupResponse
newUpdateDynamicThingGroupResponse :: Int -> UpdateDynamicThingGroupResponse
newUpdateDynamicThingGroupResponse Int
pHttpStatus_ =
UpdateDynamicThingGroupResponse' :: Maybe Integer -> Int -> UpdateDynamicThingGroupResponse
UpdateDynamicThingGroupResponse'
{ $sel:version:UpdateDynamicThingGroupResponse' :: Maybe Integer
version =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateDynamicThingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateDynamicThingGroupResponse_version :: Lens.Lens' UpdateDynamicThingGroupResponse (Prelude.Maybe Prelude.Integer)
updateDynamicThingGroupResponse_version :: (Maybe Integer -> f (Maybe Integer))
-> UpdateDynamicThingGroupResponse
-> f UpdateDynamicThingGroupResponse
updateDynamicThingGroupResponse_version = (UpdateDynamicThingGroupResponse -> Maybe Integer)
-> (UpdateDynamicThingGroupResponse
-> Maybe Integer -> UpdateDynamicThingGroupResponse)
-> Lens
UpdateDynamicThingGroupResponse
UpdateDynamicThingGroupResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDynamicThingGroupResponse' {Maybe Integer
version :: Maybe Integer
$sel:version:UpdateDynamicThingGroupResponse' :: UpdateDynamicThingGroupResponse -> Maybe Integer
version} -> Maybe Integer
version) (\s :: UpdateDynamicThingGroupResponse
s@UpdateDynamicThingGroupResponse' {} Maybe Integer
a -> UpdateDynamicThingGroupResponse
s {$sel:version:UpdateDynamicThingGroupResponse' :: Maybe Integer
version = Maybe Integer
a} :: UpdateDynamicThingGroupResponse)
updateDynamicThingGroupResponse_httpStatus :: Lens.Lens' UpdateDynamicThingGroupResponse Prelude.Int
updateDynamicThingGroupResponse_httpStatus :: (Int -> f Int)
-> UpdateDynamicThingGroupResponse
-> f UpdateDynamicThingGroupResponse
updateDynamicThingGroupResponse_httpStatus = (UpdateDynamicThingGroupResponse -> Int)
-> (UpdateDynamicThingGroupResponse
-> Int -> UpdateDynamicThingGroupResponse)
-> Lens
UpdateDynamicThingGroupResponse
UpdateDynamicThingGroupResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateDynamicThingGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateDynamicThingGroupResponse' :: UpdateDynamicThingGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateDynamicThingGroupResponse
s@UpdateDynamicThingGroupResponse' {} Int
a -> UpdateDynamicThingGroupResponse
s {$sel:httpStatus:UpdateDynamicThingGroupResponse' :: Int
httpStatus = Int
a} :: UpdateDynamicThingGroupResponse)
instance
Prelude.NFData
UpdateDynamicThingGroupResponse