{-# 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.IoTWireless.CreateDeviceProfile
(
CreateDeviceProfile (..),
newCreateDeviceProfile,
createDeviceProfile_loRaWAN,
createDeviceProfile_name,
createDeviceProfile_clientRequestToken,
createDeviceProfile_tags,
CreateDeviceProfileResponse (..),
newCreateDeviceProfileResponse,
createDeviceProfileResponse_arn,
createDeviceProfileResponse_id,
createDeviceProfileResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTWireless.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 CreateDeviceProfile = CreateDeviceProfile'
{
CreateDeviceProfile -> Maybe LoRaWANDeviceProfile
loRaWAN :: Prelude.Maybe LoRaWANDeviceProfile,
CreateDeviceProfile -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateDeviceProfile -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
CreateDeviceProfile -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
}
deriving (CreateDeviceProfile -> CreateDeviceProfile -> Bool
(CreateDeviceProfile -> CreateDeviceProfile -> Bool)
-> (CreateDeviceProfile -> CreateDeviceProfile -> Bool)
-> Eq CreateDeviceProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDeviceProfile -> CreateDeviceProfile -> Bool
$c/= :: CreateDeviceProfile -> CreateDeviceProfile -> Bool
== :: CreateDeviceProfile -> CreateDeviceProfile -> Bool
$c== :: CreateDeviceProfile -> CreateDeviceProfile -> Bool
Prelude.Eq, ReadPrec [CreateDeviceProfile]
ReadPrec CreateDeviceProfile
Int -> ReadS CreateDeviceProfile
ReadS [CreateDeviceProfile]
(Int -> ReadS CreateDeviceProfile)
-> ReadS [CreateDeviceProfile]
-> ReadPrec CreateDeviceProfile
-> ReadPrec [CreateDeviceProfile]
-> Read CreateDeviceProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDeviceProfile]
$creadListPrec :: ReadPrec [CreateDeviceProfile]
readPrec :: ReadPrec CreateDeviceProfile
$creadPrec :: ReadPrec CreateDeviceProfile
readList :: ReadS [CreateDeviceProfile]
$creadList :: ReadS [CreateDeviceProfile]
readsPrec :: Int -> ReadS CreateDeviceProfile
$creadsPrec :: Int -> ReadS CreateDeviceProfile
Prelude.Read, Int -> CreateDeviceProfile -> ShowS
[CreateDeviceProfile] -> ShowS
CreateDeviceProfile -> String
(Int -> CreateDeviceProfile -> ShowS)
-> (CreateDeviceProfile -> String)
-> ([CreateDeviceProfile] -> ShowS)
-> Show CreateDeviceProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDeviceProfile] -> ShowS
$cshowList :: [CreateDeviceProfile] -> ShowS
show :: CreateDeviceProfile -> String
$cshow :: CreateDeviceProfile -> String
showsPrec :: Int -> CreateDeviceProfile -> ShowS
$cshowsPrec :: Int -> CreateDeviceProfile -> ShowS
Prelude.Show, (forall x. CreateDeviceProfile -> Rep CreateDeviceProfile x)
-> (forall x. Rep CreateDeviceProfile x -> CreateDeviceProfile)
-> Generic CreateDeviceProfile
forall x. Rep CreateDeviceProfile x -> CreateDeviceProfile
forall x. CreateDeviceProfile -> Rep CreateDeviceProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDeviceProfile x -> CreateDeviceProfile
$cfrom :: forall x. CreateDeviceProfile -> Rep CreateDeviceProfile x
Prelude.Generic)
newCreateDeviceProfile ::
CreateDeviceProfile
newCreateDeviceProfile :: CreateDeviceProfile
newCreateDeviceProfile =
CreateDeviceProfile' :: Maybe LoRaWANDeviceProfile
-> Maybe Text -> Maybe Text -> Maybe [Tag] -> CreateDeviceProfile
CreateDeviceProfile'
{ $sel:loRaWAN:CreateDeviceProfile' :: Maybe LoRaWANDeviceProfile
loRaWAN = Maybe LoRaWANDeviceProfile
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateDeviceProfile' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:CreateDeviceProfile' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateDeviceProfile' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing
}
createDeviceProfile_loRaWAN :: Lens.Lens' CreateDeviceProfile (Prelude.Maybe LoRaWANDeviceProfile)
createDeviceProfile_loRaWAN :: (Maybe LoRaWANDeviceProfile -> f (Maybe LoRaWANDeviceProfile))
-> CreateDeviceProfile -> f CreateDeviceProfile
createDeviceProfile_loRaWAN = (CreateDeviceProfile -> Maybe LoRaWANDeviceProfile)
-> (CreateDeviceProfile
-> Maybe LoRaWANDeviceProfile -> CreateDeviceProfile)
-> Lens
CreateDeviceProfile
CreateDeviceProfile
(Maybe LoRaWANDeviceProfile)
(Maybe LoRaWANDeviceProfile)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeviceProfile' {Maybe LoRaWANDeviceProfile
loRaWAN :: Maybe LoRaWANDeviceProfile
$sel:loRaWAN:CreateDeviceProfile' :: CreateDeviceProfile -> Maybe LoRaWANDeviceProfile
loRaWAN} -> Maybe LoRaWANDeviceProfile
loRaWAN) (\s :: CreateDeviceProfile
s@CreateDeviceProfile' {} Maybe LoRaWANDeviceProfile
a -> CreateDeviceProfile
s {$sel:loRaWAN:CreateDeviceProfile' :: Maybe LoRaWANDeviceProfile
loRaWAN = Maybe LoRaWANDeviceProfile
a} :: CreateDeviceProfile)
createDeviceProfile_name :: Lens.Lens' CreateDeviceProfile (Prelude.Maybe Prelude.Text)
createDeviceProfile_name :: (Maybe Text -> f (Maybe Text))
-> CreateDeviceProfile -> f CreateDeviceProfile
createDeviceProfile_name = (CreateDeviceProfile -> Maybe Text)
-> (CreateDeviceProfile -> Maybe Text -> CreateDeviceProfile)
-> Lens
CreateDeviceProfile CreateDeviceProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeviceProfile' {Maybe Text
name :: Maybe Text
$sel:name:CreateDeviceProfile' :: CreateDeviceProfile -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateDeviceProfile
s@CreateDeviceProfile' {} Maybe Text
a -> CreateDeviceProfile
s {$sel:name:CreateDeviceProfile' :: Maybe Text
name = Maybe Text
a} :: CreateDeviceProfile)
createDeviceProfile_clientRequestToken :: Lens.Lens' CreateDeviceProfile (Prelude.Maybe Prelude.Text)
createDeviceProfile_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> CreateDeviceProfile -> f CreateDeviceProfile
createDeviceProfile_clientRequestToken = (CreateDeviceProfile -> Maybe Text)
-> (CreateDeviceProfile -> Maybe Text -> CreateDeviceProfile)
-> Lens
CreateDeviceProfile CreateDeviceProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeviceProfile' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:CreateDeviceProfile' :: CreateDeviceProfile -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: CreateDeviceProfile
s@CreateDeviceProfile' {} Maybe Text
a -> CreateDeviceProfile
s {$sel:clientRequestToken:CreateDeviceProfile' :: Maybe Text
clientRequestToken = Maybe Text
a} :: CreateDeviceProfile)
createDeviceProfile_tags :: Lens.Lens' CreateDeviceProfile (Prelude.Maybe [Tag])
createDeviceProfile_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDeviceProfile -> f CreateDeviceProfile
createDeviceProfile_tags = (CreateDeviceProfile -> Maybe [Tag])
-> (CreateDeviceProfile -> Maybe [Tag] -> CreateDeviceProfile)
-> Lens
CreateDeviceProfile CreateDeviceProfile (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeviceProfile' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateDeviceProfile' :: CreateDeviceProfile -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateDeviceProfile
s@CreateDeviceProfile' {} Maybe [Tag]
a -> CreateDeviceProfile
s {$sel:tags:CreateDeviceProfile' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateDeviceProfile) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDeviceProfile -> f CreateDeviceProfile)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDeviceProfile
-> f CreateDeviceProfile
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CreateDeviceProfile where
type
AWSResponse CreateDeviceProfile =
CreateDeviceProfileResponse
request :: CreateDeviceProfile -> Request CreateDeviceProfile
request = Service -> CreateDeviceProfile -> Request CreateDeviceProfile
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDeviceProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDeviceProfile)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateDeviceProfile))
-> Logger
-> Service
-> Proxy CreateDeviceProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDeviceProfile)))
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 -> CreateDeviceProfileResponse
CreateDeviceProfileResponse'
(Maybe Text -> Maybe Text -> Int -> CreateDeviceProfileResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> CreateDeviceProfileResponse)
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
"Arn")
Either String (Maybe Text -> Int -> CreateDeviceProfileResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateDeviceProfileResponse)
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
"Id")
Either String (Int -> CreateDeviceProfileResponse)
-> Either String Int -> Either String CreateDeviceProfileResponse
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 CreateDeviceProfile
instance Prelude.NFData CreateDeviceProfile
instance Core.ToHeaders CreateDeviceProfile where
toHeaders :: CreateDeviceProfile -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateDeviceProfile -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON CreateDeviceProfile where
toJSON :: CreateDeviceProfile -> Value
toJSON CreateDeviceProfile' {Maybe [Tag]
Maybe Text
Maybe LoRaWANDeviceProfile
tags :: Maybe [Tag]
clientRequestToken :: Maybe Text
name :: Maybe Text
loRaWAN :: Maybe LoRaWANDeviceProfile
$sel:tags:CreateDeviceProfile' :: CreateDeviceProfile -> Maybe [Tag]
$sel:clientRequestToken:CreateDeviceProfile' :: CreateDeviceProfile -> Maybe Text
$sel:name:CreateDeviceProfile' :: CreateDeviceProfile -> Maybe Text
$sel:loRaWAN:CreateDeviceProfile' :: CreateDeviceProfile -> Maybe LoRaWANDeviceProfile
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"LoRaWAN" Text -> LoRaWANDeviceProfile -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (LoRaWANDeviceProfile -> Pair)
-> Maybe LoRaWANDeviceProfile -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoRaWANDeviceProfile
loRaWAN,
(Text
"Name" 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
name,
(Text
"ClientRequestToken" 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
clientRequestToken,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags
]
)
instance Core.ToPath CreateDeviceProfile where
toPath :: CreateDeviceProfile -> ByteString
toPath = ByteString -> CreateDeviceProfile -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/device-profiles"
instance Core.ToQuery CreateDeviceProfile where
toQuery :: CreateDeviceProfile -> QueryString
toQuery = QueryString -> CreateDeviceProfile -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateDeviceProfileResponse = CreateDeviceProfileResponse'
{
CreateDeviceProfileResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateDeviceProfileResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreateDeviceProfileResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateDeviceProfileResponse -> CreateDeviceProfileResponse -> Bool
(CreateDeviceProfileResponse
-> CreateDeviceProfileResponse -> Bool)
-> (CreateDeviceProfileResponse
-> CreateDeviceProfileResponse -> Bool)
-> Eq CreateDeviceProfileResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDeviceProfileResponse -> CreateDeviceProfileResponse -> Bool
$c/= :: CreateDeviceProfileResponse -> CreateDeviceProfileResponse -> Bool
== :: CreateDeviceProfileResponse -> CreateDeviceProfileResponse -> Bool
$c== :: CreateDeviceProfileResponse -> CreateDeviceProfileResponse -> Bool
Prelude.Eq, ReadPrec [CreateDeviceProfileResponse]
ReadPrec CreateDeviceProfileResponse
Int -> ReadS CreateDeviceProfileResponse
ReadS [CreateDeviceProfileResponse]
(Int -> ReadS CreateDeviceProfileResponse)
-> ReadS [CreateDeviceProfileResponse]
-> ReadPrec CreateDeviceProfileResponse
-> ReadPrec [CreateDeviceProfileResponse]
-> Read CreateDeviceProfileResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDeviceProfileResponse]
$creadListPrec :: ReadPrec [CreateDeviceProfileResponse]
readPrec :: ReadPrec CreateDeviceProfileResponse
$creadPrec :: ReadPrec CreateDeviceProfileResponse
readList :: ReadS [CreateDeviceProfileResponse]
$creadList :: ReadS [CreateDeviceProfileResponse]
readsPrec :: Int -> ReadS CreateDeviceProfileResponse
$creadsPrec :: Int -> ReadS CreateDeviceProfileResponse
Prelude.Read, Int -> CreateDeviceProfileResponse -> ShowS
[CreateDeviceProfileResponse] -> ShowS
CreateDeviceProfileResponse -> String
(Int -> CreateDeviceProfileResponse -> ShowS)
-> (CreateDeviceProfileResponse -> String)
-> ([CreateDeviceProfileResponse] -> ShowS)
-> Show CreateDeviceProfileResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDeviceProfileResponse] -> ShowS
$cshowList :: [CreateDeviceProfileResponse] -> ShowS
show :: CreateDeviceProfileResponse -> String
$cshow :: CreateDeviceProfileResponse -> String
showsPrec :: Int -> CreateDeviceProfileResponse -> ShowS
$cshowsPrec :: Int -> CreateDeviceProfileResponse -> ShowS
Prelude.Show, (forall x.
CreateDeviceProfileResponse -> Rep CreateDeviceProfileResponse x)
-> (forall x.
Rep CreateDeviceProfileResponse x -> CreateDeviceProfileResponse)
-> Generic CreateDeviceProfileResponse
forall x.
Rep CreateDeviceProfileResponse x -> CreateDeviceProfileResponse
forall x.
CreateDeviceProfileResponse -> Rep CreateDeviceProfileResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateDeviceProfileResponse x -> CreateDeviceProfileResponse
$cfrom :: forall x.
CreateDeviceProfileResponse -> Rep CreateDeviceProfileResponse x
Prelude.Generic)
newCreateDeviceProfileResponse ::
Prelude.Int ->
CreateDeviceProfileResponse
newCreateDeviceProfileResponse :: Int -> CreateDeviceProfileResponse
newCreateDeviceProfileResponse Int
pHttpStatus_ =
CreateDeviceProfileResponse' :: Maybe Text -> Maybe Text -> Int -> CreateDeviceProfileResponse
CreateDeviceProfileResponse'
{ $sel:arn:CreateDeviceProfileResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreateDeviceProfileResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateDeviceProfileResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createDeviceProfileResponse_arn :: Lens.Lens' CreateDeviceProfileResponse (Prelude.Maybe Prelude.Text)
createDeviceProfileResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateDeviceProfileResponse -> f CreateDeviceProfileResponse
createDeviceProfileResponse_arn = (CreateDeviceProfileResponse -> Maybe Text)
-> (CreateDeviceProfileResponse
-> Maybe Text -> CreateDeviceProfileResponse)
-> Lens
CreateDeviceProfileResponse
CreateDeviceProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeviceProfileResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateDeviceProfileResponse' :: CreateDeviceProfileResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateDeviceProfileResponse
s@CreateDeviceProfileResponse' {} Maybe Text
a -> CreateDeviceProfileResponse
s {$sel:arn:CreateDeviceProfileResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateDeviceProfileResponse)
createDeviceProfileResponse_id :: Lens.Lens' CreateDeviceProfileResponse (Prelude.Maybe Prelude.Text)
createDeviceProfileResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreateDeviceProfileResponse -> f CreateDeviceProfileResponse
createDeviceProfileResponse_id = (CreateDeviceProfileResponse -> Maybe Text)
-> (CreateDeviceProfileResponse
-> Maybe Text -> CreateDeviceProfileResponse)
-> Lens
CreateDeviceProfileResponse
CreateDeviceProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeviceProfileResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateDeviceProfileResponse' :: CreateDeviceProfileResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateDeviceProfileResponse
s@CreateDeviceProfileResponse' {} Maybe Text
a -> CreateDeviceProfileResponse
s {$sel:id:CreateDeviceProfileResponse' :: Maybe Text
id = Maybe Text
a} :: CreateDeviceProfileResponse)
createDeviceProfileResponse_httpStatus :: Lens.Lens' CreateDeviceProfileResponse Prelude.Int
createDeviceProfileResponse_httpStatus :: (Int -> f Int)
-> CreateDeviceProfileResponse -> f CreateDeviceProfileResponse
createDeviceProfileResponse_httpStatus = (CreateDeviceProfileResponse -> Int)
-> (CreateDeviceProfileResponse
-> Int -> CreateDeviceProfileResponse)
-> Lens
CreateDeviceProfileResponse CreateDeviceProfileResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDeviceProfileResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDeviceProfileResponse' :: CreateDeviceProfileResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDeviceProfileResponse
s@CreateDeviceProfileResponse' {} Int
a -> CreateDeviceProfileResponse
s {$sel:httpStatus:CreateDeviceProfileResponse' :: Int
httpStatus = Int
a} :: CreateDeviceProfileResponse)
instance Prelude.NFData CreateDeviceProfileResponse