{-# 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.IoTSiteWise.DescribeAssetProperty
(
DescribeAssetProperty (..),
newDescribeAssetProperty,
describeAssetProperty_assetId,
describeAssetProperty_propertyId,
DescribeAssetPropertyResponse (..),
newDescribeAssetPropertyResponse,
describeAssetPropertyResponse_assetProperty,
describeAssetPropertyResponse_compositeModel,
describeAssetPropertyResponse_httpStatus,
describeAssetPropertyResponse_assetId,
describeAssetPropertyResponse_assetName,
describeAssetPropertyResponse_assetModelId,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTSiteWise.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 DescribeAssetProperty = DescribeAssetProperty'
{
DescribeAssetProperty -> Text
assetId :: Prelude.Text,
DescribeAssetProperty -> Text
propertyId :: Prelude.Text
}
deriving (DescribeAssetProperty -> DescribeAssetProperty -> Bool
(DescribeAssetProperty -> DescribeAssetProperty -> Bool)
-> (DescribeAssetProperty -> DescribeAssetProperty -> Bool)
-> Eq DescribeAssetProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAssetProperty -> DescribeAssetProperty -> Bool
$c/= :: DescribeAssetProperty -> DescribeAssetProperty -> Bool
== :: DescribeAssetProperty -> DescribeAssetProperty -> Bool
$c== :: DescribeAssetProperty -> DescribeAssetProperty -> Bool
Prelude.Eq, ReadPrec [DescribeAssetProperty]
ReadPrec DescribeAssetProperty
Int -> ReadS DescribeAssetProperty
ReadS [DescribeAssetProperty]
(Int -> ReadS DescribeAssetProperty)
-> ReadS [DescribeAssetProperty]
-> ReadPrec DescribeAssetProperty
-> ReadPrec [DescribeAssetProperty]
-> Read DescribeAssetProperty
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAssetProperty]
$creadListPrec :: ReadPrec [DescribeAssetProperty]
readPrec :: ReadPrec DescribeAssetProperty
$creadPrec :: ReadPrec DescribeAssetProperty
readList :: ReadS [DescribeAssetProperty]
$creadList :: ReadS [DescribeAssetProperty]
readsPrec :: Int -> ReadS DescribeAssetProperty
$creadsPrec :: Int -> ReadS DescribeAssetProperty
Prelude.Read, Int -> DescribeAssetProperty -> ShowS
[DescribeAssetProperty] -> ShowS
DescribeAssetProperty -> String
(Int -> DescribeAssetProperty -> ShowS)
-> (DescribeAssetProperty -> String)
-> ([DescribeAssetProperty] -> ShowS)
-> Show DescribeAssetProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAssetProperty] -> ShowS
$cshowList :: [DescribeAssetProperty] -> ShowS
show :: DescribeAssetProperty -> String
$cshow :: DescribeAssetProperty -> String
showsPrec :: Int -> DescribeAssetProperty -> ShowS
$cshowsPrec :: Int -> DescribeAssetProperty -> ShowS
Prelude.Show, (forall x. DescribeAssetProperty -> Rep DescribeAssetProperty x)
-> (forall x. Rep DescribeAssetProperty x -> DescribeAssetProperty)
-> Generic DescribeAssetProperty
forall x. Rep DescribeAssetProperty x -> DescribeAssetProperty
forall x. DescribeAssetProperty -> Rep DescribeAssetProperty x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeAssetProperty x -> DescribeAssetProperty
$cfrom :: forall x. DescribeAssetProperty -> Rep DescribeAssetProperty x
Prelude.Generic)
newDescribeAssetProperty ::
Prelude.Text ->
Prelude.Text ->
DescribeAssetProperty
newDescribeAssetProperty :: Text -> Text -> DescribeAssetProperty
newDescribeAssetProperty Text
pAssetId_ Text
pPropertyId_ =
DescribeAssetProperty' :: Text -> Text -> DescribeAssetProperty
DescribeAssetProperty'
{ $sel:assetId:DescribeAssetProperty' :: Text
assetId = Text
pAssetId_,
$sel:propertyId:DescribeAssetProperty' :: Text
propertyId = Text
pPropertyId_
}
describeAssetProperty_assetId :: Lens.Lens' DescribeAssetProperty Prelude.Text
describeAssetProperty_assetId :: (Text -> f Text)
-> DescribeAssetProperty -> f DescribeAssetProperty
describeAssetProperty_assetId = (DescribeAssetProperty -> Text)
-> (DescribeAssetProperty -> Text -> DescribeAssetProperty)
-> Lens DescribeAssetProperty DescribeAssetProperty Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetProperty' {Text
assetId :: Text
$sel:assetId:DescribeAssetProperty' :: DescribeAssetProperty -> Text
assetId} -> Text
assetId) (\s :: DescribeAssetProperty
s@DescribeAssetProperty' {} Text
a -> DescribeAssetProperty
s {$sel:assetId:DescribeAssetProperty' :: Text
assetId = Text
a} :: DescribeAssetProperty)
describeAssetProperty_propertyId :: Lens.Lens' DescribeAssetProperty Prelude.Text
describeAssetProperty_propertyId :: (Text -> f Text)
-> DescribeAssetProperty -> f DescribeAssetProperty
describeAssetProperty_propertyId = (DescribeAssetProperty -> Text)
-> (DescribeAssetProperty -> Text -> DescribeAssetProperty)
-> Lens DescribeAssetProperty DescribeAssetProperty Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetProperty' {Text
propertyId :: Text
$sel:propertyId:DescribeAssetProperty' :: DescribeAssetProperty -> Text
propertyId} -> Text
propertyId) (\s :: DescribeAssetProperty
s@DescribeAssetProperty' {} Text
a -> DescribeAssetProperty
s {$sel:propertyId:DescribeAssetProperty' :: Text
propertyId = Text
a} :: DescribeAssetProperty)
instance Core.AWSRequest DescribeAssetProperty where
type
AWSResponse DescribeAssetProperty =
DescribeAssetPropertyResponse
request :: DescribeAssetProperty -> Request DescribeAssetProperty
request = Service -> DescribeAssetProperty -> Request DescribeAssetProperty
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeAssetProperty
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAssetProperty)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeAssetProperty))
-> Logger
-> Service
-> Proxy DescribeAssetProperty
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAssetProperty)))
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 Property
-> Maybe CompositeModelProperty
-> Int
-> Text
-> Text
-> Text
-> DescribeAssetPropertyResponse
DescribeAssetPropertyResponse'
(Maybe Property
-> Maybe CompositeModelProperty
-> Int
-> Text
-> Text
-> Text
-> DescribeAssetPropertyResponse)
-> Either String (Maybe Property)
-> Either
String
(Maybe CompositeModelProperty
-> Int -> Text -> Text -> Text -> DescribeAssetPropertyResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Property)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"assetProperty")
Either
String
(Maybe CompositeModelProperty
-> Int -> Text -> Text -> Text -> DescribeAssetPropertyResponse)
-> Either String (Maybe CompositeModelProperty)
-> Either
String
(Int -> Text -> Text -> Text -> DescribeAssetPropertyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CompositeModelProperty)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"compositeModel")
Either
String
(Int -> Text -> Text -> Text -> DescribeAssetPropertyResponse)
-> Either String Int
-> Either
String (Text -> Text -> Text -> DescribeAssetPropertyResponse)
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))
Either
String (Text -> Text -> Text -> DescribeAssetPropertyResponse)
-> Either String Text
-> Either String (Text -> Text -> DescribeAssetPropertyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetId")
Either String (Text -> Text -> DescribeAssetPropertyResponse)
-> Either String Text
-> Either String (Text -> DescribeAssetPropertyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetName")
Either String (Text -> DescribeAssetPropertyResponse)
-> Either String Text
-> Either String DescribeAssetPropertyResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"assetModelId")
)
instance Prelude.Hashable DescribeAssetProperty
instance Prelude.NFData DescribeAssetProperty
instance Core.ToHeaders DescribeAssetProperty where
toHeaders :: DescribeAssetProperty -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeAssetProperty -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DescribeAssetProperty where
toPath :: DescribeAssetProperty -> ByteString
toPath DescribeAssetProperty' {Text
propertyId :: Text
assetId :: Text
$sel:propertyId:DescribeAssetProperty' :: DescribeAssetProperty -> Text
$sel:assetId:DescribeAssetProperty' :: DescribeAssetProperty -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/assets/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
assetId,
ByteString
"/properties/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
propertyId
]
instance Core.ToQuery DescribeAssetProperty where
toQuery :: DescribeAssetProperty -> QueryString
toQuery = QueryString -> DescribeAssetProperty -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeAssetPropertyResponse = DescribeAssetPropertyResponse'
{
DescribeAssetPropertyResponse -> Maybe Property
assetProperty :: Prelude.Maybe Property,
DescribeAssetPropertyResponse -> Maybe CompositeModelProperty
compositeModel :: Prelude.Maybe CompositeModelProperty,
DescribeAssetPropertyResponse -> Int
httpStatus :: Prelude.Int,
DescribeAssetPropertyResponse -> Text
assetId :: Prelude.Text,
DescribeAssetPropertyResponse -> Text
assetName :: Prelude.Text,
DescribeAssetPropertyResponse -> Text
assetModelId :: Prelude.Text
}
deriving (DescribeAssetPropertyResponse
-> DescribeAssetPropertyResponse -> Bool
(DescribeAssetPropertyResponse
-> DescribeAssetPropertyResponse -> Bool)
-> (DescribeAssetPropertyResponse
-> DescribeAssetPropertyResponse -> Bool)
-> Eq DescribeAssetPropertyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAssetPropertyResponse
-> DescribeAssetPropertyResponse -> Bool
$c/= :: DescribeAssetPropertyResponse
-> DescribeAssetPropertyResponse -> Bool
== :: DescribeAssetPropertyResponse
-> DescribeAssetPropertyResponse -> Bool
$c== :: DescribeAssetPropertyResponse
-> DescribeAssetPropertyResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAssetPropertyResponse]
ReadPrec DescribeAssetPropertyResponse
Int -> ReadS DescribeAssetPropertyResponse
ReadS [DescribeAssetPropertyResponse]
(Int -> ReadS DescribeAssetPropertyResponse)
-> ReadS [DescribeAssetPropertyResponse]
-> ReadPrec DescribeAssetPropertyResponse
-> ReadPrec [DescribeAssetPropertyResponse]
-> Read DescribeAssetPropertyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAssetPropertyResponse]
$creadListPrec :: ReadPrec [DescribeAssetPropertyResponse]
readPrec :: ReadPrec DescribeAssetPropertyResponse
$creadPrec :: ReadPrec DescribeAssetPropertyResponse
readList :: ReadS [DescribeAssetPropertyResponse]
$creadList :: ReadS [DescribeAssetPropertyResponse]
readsPrec :: Int -> ReadS DescribeAssetPropertyResponse
$creadsPrec :: Int -> ReadS DescribeAssetPropertyResponse
Prelude.Read, Int -> DescribeAssetPropertyResponse -> ShowS
[DescribeAssetPropertyResponse] -> ShowS
DescribeAssetPropertyResponse -> String
(Int -> DescribeAssetPropertyResponse -> ShowS)
-> (DescribeAssetPropertyResponse -> String)
-> ([DescribeAssetPropertyResponse] -> ShowS)
-> Show DescribeAssetPropertyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAssetPropertyResponse] -> ShowS
$cshowList :: [DescribeAssetPropertyResponse] -> ShowS
show :: DescribeAssetPropertyResponse -> String
$cshow :: DescribeAssetPropertyResponse -> String
showsPrec :: Int -> DescribeAssetPropertyResponse -> ShowS
$cshowsPrec :: Int -> DescribeAssetPropertyResponse -> ShowS
Prelude.Show, (forall x.
DescribeAssetPropertyResponse
-> Rep DescribeAssetPropertyResponse x)
-> (forall x.
Rep DescribeAssetPropertyResponse x
-> DescribeAssetPropertyResponse)
-> Generic DescribeAssetPropertyResponse
forall x.
Rep DescribeAssetPropertyResponse x
-> DescribeAssetPropertyResponse
forall x.
DescribeAssetPropertyResponse
-> Rep DescribeAssetPropertyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAssetPropertyResponse x
-> DescribeAssetPropertyResponse
$cfrom :: forall x.
DescribeAssetPropertyResponse
-> Rep DescribeAssetPropertyResponse x
Prelude.Generic)
newDescribeAssetPropertyResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
DescribeAssetPropertyResponse
newDescribeAssetPropertyResponse :: Int -> Text -> Text -> Text -> DescribeAssetPropertyResponse
newDescribeAssetPropertyResponse
Int
pHttpStatus_
Text
pAssetId_
Text
pAssetName_
Text
pAssetModelId_ =
DescribeAssetPropertyResponse' :: Maybe Property
-> Maybe CompositeModelProperty
-> Int
-> Text
-> Text
-> Text
-> DescribeAssetPropertyResponse
DescribeAssetPropertyResponse'
{ $sel:assetProperty:DescribeAssetPropertyResponse' :: Maybe Property
assetProperty =
Maybe Property
forall a. Maybe a
Prelude.Nothing,
$sel:compositeModel:DescribeAssetPropertyResponse' :: Maybe CompositeModelProperty
compositeModel = Maybe CompositeModelProperty
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeAssetPropertyResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:assetId:DescribeAssetPropertyResponse' :: Text
assetId = Text
pAssetId_,
$sel:assetName:DescribeAssetPropertyResponse' :: Text
assetName = Text
pAssetName_,
$sel:assetModelId:DescribeAssetPropertyResponse' :: Text
assetModelId = Text
pAssetModelId_
}
describeAssetPropertyResponse_assetProperty :: Lens.Lens' DescribeAssetPropertyResponse (Prelude.Maybe Property)
describeAssetPropertyResponse_assetProperty :: (Maybe Property -> f (Maybe Property))
-> DescribeAssetPropertyResponse -> f DescribeAssetPropertyResponse
describeAssetPropertyResponse_assetProperty = (DescribeAssetPropertyResponse -> Maybe Property)
-> (DescribeAssetPropertyResponse
-> Maybe Property -> DescribeAssetPropertyResponse)
-> Lens
DescribeAssetPropertyResponse
DescribeAssetPropertyResponse
(Maybe Property)
(Maybe Property)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetPropertyResponse' {Maybe Property
assetProperty :: Maybe Property
$sel:assetProperty:DescribeAssetPropertyResponse' :: DescribeAssetPropertyResponse -> Maybe Property
assetProperty} -> Maybe Property
assetProperty) (\s :: DescribeAssetPropertyResponse
s@DescribeAssetPropertyResponse' {} Maybe Property
a -> DescribeAssetPropertyResponse
s {$sel:assetProperty:DescribeAssetPropertyResponse' :: Maybe Property
assetProperty = Maybe Property
a} :: DescribeAssetPropertyResponse)
describeAssetPropertyResponse_compositeModel :: Lens.Lens' DescribeAssetPropertyResponse (Prelude.Maybe CompositeModelProperty)
describeAssetPropertyResponse_compositeModel :: (Maybe CompositeModelProperty -> f (Maybe CompositeModelProperty))
-> DescribeAssetPropertyResponse -> f DescribeAssetPropertyResponse
describeAssetPropertyResponse_compositeModel = (DescribeAssetPropertyResponse -> Maybe CompositeModelProperty)
-> (DescribeAssetPropertyResponse
-> Maybe CompositeModelProperty -> DescribeAssetPropertyResponse)
-> Lens
DescribeAssetPropertyResponse
DescribeAssetPropertyResponse
(Maybe CompositeModelProperty)
(Maybe CompositeModelProperty)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetPropertyResponse' {Maybe CompositeModelProperty
compositeModel :: Maybe CompositeModelProperty
$sel:compositeModel:DescribeAssetPropertyResponse' :: DescribeAssetPropertyResponse -> Maybe CompositeModelProperty
compositeModel} -> Maybe CompositeModelProperty
compositeModel) (\s :: DescribeAssetPropertyResponse
s@DescribeAssetPropertyResponse' {} Maybe CompositeModelProperty
a -> DescribeAssetPropertyResponse
s {$sel:compositeModel:DescribeAssetPropertyResponse' :: Maybe CompositeModelProperty
compositeModel = Maybe CompositeModelProperty
a} :: DescribeAssetPropertyResponse)
describeAssetPropertyResponse_httpStatus :: Lens.Lens' DescribeAssetPropertyResponse Prelude.Int
describeAssetPropertyResponse_httpStatus :: (Int -> f Int)
-> DescribeAssetPropertyResponse -> f DescribeAssetPropertyResponse
describeAssetPropertyResponse_httpStatus = (DescribeAssetPropertyResponse -> Int)
-> (DescribeAssetPropertyResponse
-> Int -> DescribeAssetPropertyResponse)
-> Lens
DescribeAssetPropertyResponse DescribeAssetPropertyResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetPropertyResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeAssetPropertyResponse' :: DescribeAssetPropertyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeAssetPropertyResponse
s@DescribeAssetPropertyResponse' {} Int
a -> DescribeAssetPropertyResponse
s {$sel:httpStatus:DescribeAssetPropertyResponse' :: Int
httpStatus = Int
a} :: DescribeAssetPropertyResponse)
describeAssetPropertyResponse_assetId :: Lens.Lens' DescribeAssetPropertyResponse Prelude.Text
describeAssetPropertyResponse_assetId :: (Text -> f Text)
-> DescribeAssetPropertyResponse -> f DescribeAssetPropertyResponse
describeAssetPropertyResponse_assetId = (DescribeAssetPropertyResponse -> Text)
-> (DescribeAssetPropertyResponse
-> Text -> DescribeAssetPropertyResponse)
-> Lens
DescribeAssetPropertyResponse
DescribeAssetPropertyResponse
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetPropertyResponse' {Text
assetId :: Text
$sel:assetId:DescribeAssetPropertyResponse' :: DescribeAssetPropertyResponse -> Text
assetId} -> Text
assetId) (\s :: DescribeAssetPropertyResponse
s@DescribeAssetPropertyResponse' {} Text
a -> DescribeAssetPropertyResponse
s {$sel:assetId:DescribeAssetPropertyResponse' :: Text
assetId = Text
a} :: DescribeAssetPropertyResponse)
describeAssetPropertyResponse_assetName :: Lens.Lens' DescribeAssetPropertyResponse Prelude.Text
describeAssetPropertyResponse_assetName :: (Text -> f Text)
-> DescribeAssetPropertyResponse -> f DescribeAssetPropertyResponse
describeAssetPropertyResponse_assetName = (DescribeAssetPropertyResponse -> Text)
-> (DescribeAssetPropertyResponse
-> Text -> DescribeAssetPropertyResponse)
-> Lens
DescribeAssetPropertyResponse
DescribeAssetPropertyResponse
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetPropertyResponse' {Text
assetName :: Text
$sel:assetName:DescribeAssetPropertyResponse' :: DescribeAssetPropertyResponse -> Text
assetName} -> Text
assetName) (\s :: DescribeAssetPropertyResponse
s@DescribeAssetPropertyResponse' {} Text
a -> DescribeAssetPropertyResponse
s {$sel:assetName:DescribeAssetPropertyResponse' :: Text
assetName = Text
a} :: DescribeAssetPropertyResponse)
describeAssetPropertyResponse_assetModelId :: Lens.Lens' DescribeAssetPropertyResponse Prelude.Text
describeAssetPropertyResponse_assetModelId :: (Text -> f Text)
-> DescribeAssetPropertyResponse -> f DescribeAssetPropertyResponse
describeAssetPropertyResponse_assetModelId = (DescribeAssetPropertyResponse -> Text)
-> (DescribeAssetPropertyResponse
-> Text -> DescribeAssetPropertyResponse)
-> Lens
DescribeAssetPropertyResponse
DescribeAssetPropertyResponse
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetPropertyResponse' {Text
assetModelId :: Text
$sel:assetModelId:DescribeAssetPropertyResponse' :: DescribeAssetPropertyResponse -> Text
assetModelId} -> Text
assetModelId) (\s :: DescribeAssetPropertyResponse
s@DescribeAssetPropertyResponse' {} Text
a -> DescribeAssetPropertyResponse
s {$sel:assetModelId:DescribeAssetPropertyResponse' :: Text
assetModelId = Text
a} :: DescribeAssetPropertyResponse)
instance Prelude.NFData DescribeAssetPropertyResponse