{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoTSiteWise.UpdateAssetProperty
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates an asset property\'s alias and notification state.
--
-- This operation overwrites the property\'s existing alias and
-- notification state. To keep your existing property\'s alias or
-- notification state, you must include the existing values in the
-- UpdateAssetProperty request. For more information, see
-- <https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetProperty.html DescribeAssetProperty>.
module Amazonka.IoTSiteWise.UpdateAssetProperty
  ( -- * Creating a Request
    UpdateAssetProperty (..),
    newUpdateAssetProperty,

    -- * Request Lenses
    updateAssetProperty_clientToken,
    updateAssetProperty_propertyNotificationState,
    updateAssetProperty_propertyAlias,
    updateAssetProperty_assetId,
    updateAssetProperty_propertyId,

    -- * Destructuring the Response
    UpdateAssetPropertyResponse (..),
    newUpdateAssetPropertyResponse,
  )
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

-- | /See:/ 'newUpdateAssetProperty' smart constructor.
data UpdateAssetProperty = UpdateAssetProperty'
  { -- | A unique case-sensitive identifier that you can provide to ensure the
    -- idempotency of the request. Don\'t reuse this client token if a new
    -- idempotent request is required.
    UpdateAssetProperty -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
    -- | The MQTT notification state (enabled or disabled) for this asset
    -- property. When the notification state is enabled, IoT SiteWise publishes
    -- property value updates to a unique MQTT topic. For more information, see
    -- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/interact-with-other-services.html Interacting with other services>
    -- in the /IoT SiteWise User Guide/.
    --
    -- If you omit this parameter, the notification state is set to @DISABLED@.
    UpdateAssetProperty -> Maybe PropertyNotificationState
propertyNotificationState :: Prelude.Maybe PropertyNotificationState,
    -- | The alias that identifies the property, such as an OPC-UA server data
    -- stream path (for example,
    -- @\/company\/windfarm\/3\/turbine\/7\/temperature@). For more
    -- information, see
    -- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html Mapping industrial data streams to asset properties>
    -- in the /IoT SiteWise User Guide/.
    --
    -- If you omit this parameter, the alias is removed from the property.
    UpdateAssetProperty -> Maybe Text
propertyAlias :: Prelude.Maybe Prelude.Text,
    -- | The ID of the asset to be updated.
    UpdateAssetProperty -> Text
assetId :: Prelude.Text,
    -- | The ID of the asset property to be updated.
    UpdateAssetProperty -> Text
propertyId :: Prelude.Text
  }
  deriving (UpdateAssetProperty -> UpdateAssetProperty -> Bool
(UpdateAssetProperty -> UpdateAssetProperty -> Bool)
-> (UpdateAssetProperty -> UpdateAssetProperty -> Bool)
-> Eq UpdateAssetProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAssetProperty -> UpdateAssetProperty -> Bool
$c/= :: UpdateAssetProperty -> UpdateAssetProperty -> Bool
== :: UpdateAssetProperty -> UpdateAssetProperty -> Bool
$c== :: UpdateAssetProperty -> UpdateAssetProperty -> Bool
Prelude.Eq, ReadPrec [UpdateAssetProperty]
ReadPrec UpdateAssetProperty
Int -> ReadS UpdateAssetProperty
ReadS [UpdateAssetProperty]
(Int -> ReadS UpdateAssetProperty)
-> ReadS [UpdateAssetProperty]
-> ReadPrec UpdateAssetProperty
-> ReadPrec [UpdateAssetProperty]
-> Read UpdateAssetProperty
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAssetProperty]
$creadListPrec :: ReadPrec [UpdateAssetProperty]
readPrec :: ReadPrec UpdateAssetProperty
$creadPrec :: ReadPrec UpdateAssetProperty
readList :: ReadS [UpdateAssetProperty]
$creadList :: ReadS [UpdateAssetProperty]
readsPrec :: Int -> ReadS UpdateAssetProperty
$creadsPrec :: Int -> ReadS UpdateAssetProperty
Prelude.Read, Int -> UpdateAssetProperty -> ShowS
[UpdateAssetProperty] -> ShowS
UpdateAssetProperty -> String
(Int -> UpdateAssetProperty -> ShowS)
-> (UpdateAssetProperty -> String)
-> ([UpdateAssetProperty] -> ShowS)
-> Show UpdateAssetProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAssetProperty] -> ShowS
$cshowList :: [UpdateAssetProperty] -> ShowS
show :: UpdateAssetProperty -> String
$cshow :: UpdateAssetProperty -> String
showsPrec :: Int -> UpdateAssetProperty -> ShowS
$cshowsPrec :: Int -> UpdateAssetProperty -> ShowS
Prelude.Show, (forall x. UpdateAssetProperty -> Rep UpdateAssetProperty x)
-> (forall x. Rep UpdateAssetProperty x -> UpdateAssetProperty)
-> Generic UpdateAssetProperty
forall x. Rep UpdateAssetProperty x -> UpdateAssetProperty
forall x. UpdateAssetProperty -> Rep UpdateAssetProperty x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAssetProperty x -> UpdateAssetProperty
$cfrom :: forall x. UpdateAssetProperty -> Rep UpdateAssetProperty x
Prelude.Generic)

-- |
-- Create a value of 'UpdateAssetProperty' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'clientToken', 'updateAssetProperty_clientToken' - A unique case-sensitive identifier that you can provide to ensure the
-- idempotency of the request. Don\'t reuse this client token if a new
-- idempotent request is required.
--
-- 'propertyNotificationState', 'updateAssetProperty_propertyNotificationState' - The MQTT notification state (enabled or disabled) for this asset
-- property. When the notification state is enabled, IoT SiteWise publishes
-- property value updates to a unique MQTT topic. For more information, see
-- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/interact-with-other-services.html Interacting with other services>
-- in the /IoT SiteWise User Guide/.
--
-- If you omit this parameter, the notification state is set to @DISABLED@.
--
-- 'propertyAlias', 'updateAssetProperty_propertyAlias' - The alias that identifies the property, such as an OPC-UA server data
-- stream path (for example,
-- @\/company\/windfarm\/3\/turbine\/7\/temperature@). For more
-- information, see
-- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html Mapping industrial data streams to asset properties>
-- in the /IoT SiteWise User Guide/.
--
-- If you omit this parameter, the alias is removed from the property.
--
-- 'assetId', 'updateAssetProperty_assetId' - The ID of the asset to be updated.
--
-- 'propertyId', 'updateAssetProperty_propertyId' - The ID of the asset property to be updated.
newUpdateAssetProperty ::
  -- | 'assetId'
  Prelude.Text ->
  -- | 'propertyId'
  Prelude.Text ->
  UpdateAssetProperty
newUpdateAssetProperty :: Text -> Text -> UpdateAssetProperty
newUpdateAssetProperty Text
pAssetId_ Text
pPropertyId_ =
  UpdateAssetProperty' :: Maybe Text
-> Maybe PropertyNotificationState
-> Maybe Text
-> Text
-> Text
-> UpdateAssetProperty
UpdateAssetProperty'
    { $sel:clientToken:UpdateAssetProperty' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:propertyNotificationState:UpdateAssetProperty' :: Maybe PropertyNotificationState
propertyNotificationState = Maybe PropertyNotificationState
forall a. Maybe a
Prelude.Nothing,
      $sel:propertyAlias:UpdateAssetProperty' :: Maybe Text
propertyAlias = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:assetId:UpdateAssetProperty' :: Text
assetId = Text
pAssetId_,
      $sel:propertyId:UpdateAssetProperty' :: Text
propertyId = Text
pPropertyId_
    }

-- | A unique case-sensitive identifier that you can provide to ensure the
-- idempotency of the request. Don\'t reuse this client token if a new
-- idempotent request is required.
updateAssetProperty_clientToken :: Lens.Lens' UpdateAssetProperty (Prelude.Maybe Prelude.Text)
updateAssetProperty_clientToken :: (Maybe Text -> f (Maybe Text))
-> UpdateAssetProperty -> f UpdateAssetProperty
updateAssetProperty_clientToken = (UpdateAssetProperty -> Maybe Text)
-> (UpdateAssetProperty -> Maybe Text -> UpdateAssetProperty)
-> Lens
     UpdateAssetProperty UpdateAssetProperty (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetProperty' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:UpdateAssetProperty' :: UpdateAssetProperty -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: UpdateAssetProperty
s@UpdateAssetProperty' {} Maybe Text
a -> UpdateAssetProperty
s {$sel:clientToken:UpdateAssetProperty' :: Maybe Text
clientToken = Maybe Text
a} :: UpdateAssetProperty)

-- | The MQTT notification state (enabled or disabled) for this asset
-- property. When the notification state is enabled, IoT SiteWise publishes
-- property value updates to a unique MQTT topic. For more information, see
-- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/interact-with-other-services.html Interacting with other services>
-- in the /IoT SiteWise User Guide/.
--
-- If you omit this parameter, the notification state is set to @DISABLED@.
updateAssetProperty_propertyNotificationState :: Lens.Lens' UpdateAssetProperty (Prelude.Maybe PropertyNotificationState)
updateAssetProperty_propertyNotificationState :: (Maybe PropertyNotificationState
 -> f (Maybe PropertyNotificationState))
-> UpdateAssetProperty -> f UpdateAssetProperty
updateAssetProperty_propertyNotificationState = (UpdateAssetProperty -> Maybe PropertyNotificationState)
-> (UpdateAssetProperty
    -> Maybe PropertyNotificationState -> UpdateAssetProperty)
-> Lens
     UpdateAssetProperty
     UpdateAssetProperty
     (Maybe PropertyNotificationState)
     (Maybe PropertyNotificationState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetProperty' {Maybe PropertyNotificationState
propertyNotificationState :: Maybe PropertyNotificationState
$sel:propertyNotificationState:UpdateAssetProperty' :: UpdateAssetProperty -> Maybe PropertyNotificationState
propertyNotificationState} -> Maybe PropertyNotificationState
propertyNotificationState) (\s :: UpdateAssetProperty
s@UpdateAssetProperty' {} Maybe PropertyNotificationState
a -> UpdateAssetProperty
s {$sel:propertyNotificationState:UpdateAssetProperty' :: Maybe PropertyNotificationState
propertyNotificationState = Maybe PropertyNotificationState
a} :: UpdateAssetProperty)

-- | The alias that identifies the property, such as an OPC-UA server data
-- stream path (for example,
-- @\/company\/windfarm\/3\/turbine\/7\/temperature@). For more
-- information, see
-- <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html Mapping industrial data streams to asset properties>
-- in the /IoT SiteWise User Guide/.
--
-- If you omit this parameter, the alias is removed from the property.
updateAssetProperty_propertyAlias :: Lens.Lens' UpdateAssetProperty (Prelude.Maybe Prelude.Text)
updateAssetProperty_propertyAlias :: (Maybe Text -> f (Maybe Text))
-> UpdateAssetProperty -> f UpdateAssetProperty
updateAssetProperty_propertyAlias = (UpdateAssetProperty -> Maybe Text)
-> (UpdateAssetProperty -> Maybe Text -> UpdateAssetProperty)
-> Lens
     UpdateAssetProperty UpdateAssetProperty (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetProperty' {Maybe Text
propertyAlias :: Maybe Text
$sel:propertyAlias:UpdateAssetProperty' :: UpdateAssetProperty -> Maybe Text
propertyAlias} -> Maybe Text
propertyAlias) (\s :: UpdateAssetProperty
s@UpdateAssetProperty' {} Maybe Text
a -> UpdateAssetProperty
s {$sel:propertyAlias:UpdateAssetProperty' :: Maybe Text
propertyAlias = Maybe Text
a} :: UpdateAssetProperty)

-- | The ID of the asset to be updated.
updateAssetProperty_assetId :: Lens.Lens' UpdateAssetProperty Prelude.Text
updateAssetProperty_assetId :: (Text -> f Text) -> UpdateAssetProperty -> f UpdateAssetProperty
updateAssetProperty_assetId = (UpdateAssetProperty -> Text)
-> (UpdateAssetProperty -> Text -> UpdateAssetProperty)
-> Lens UpdateAssetProperty UpdateAssetProperty Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetProperty' {Text
assetId :: Text
$sel:assetId:UpdateAssetProperty' :: UpdateAssetProperty -> Text
assetId} -> Text
assetId) (\s :: UpdateAssetProperty
s@UpdateAssetProperty' {} Text
a -> UpdateAssetProperty
s {$sel:assetId:UpdateAssetProperty' :: Text
assetId = Text
a} :: UpdateAssetProperty)

-- | The ID of the asset property to be updated.
updateAssetProperty_propertyId :: Lens.Lens' UpdateAssetProperty Prelude.Text
updateAssetProperty_propertyId :: (Text -> f Text) -> UpdateAssetProperty -> f UpdateAssetProperty
updateAssetProperty_propertyId = (UpdateAssetProperty -> Text)
-> (UpdateAssetProperty -> Text -> UpdateAssetProperty)
-> Lens UpdateAssetProperty UpdateAssetProperty Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetProperty' {Text
propertyId :: Text
$sel:propertyId:UpdateAssetProperty' :: UpdateAssetProperty -> Text
propertyId} -> Text
propertyId) (\s :: UpdateAssetProperty
s@UpdateAssetProperty' {} Text
a -> UpdateAssetProperty
s {$sel:propertyId:UpdateAssetProperty' :: Text
propertyId = Text
a} :: UpdateAssetProperty)

instance Core.AWSRequest UpdateAssetProperty where
  type
    AWSResponse UpdateAssetProperty =
      UpdateAssetPropertyResponse
  request :: UpdateAssetProperty -> Request UpdateAssetProperty
request = Service -> UpdateAssetProperty -> Request UpdateAssetProperty
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateAssetProperty
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateAssetProperty)))
response =
    AWSResponse UpdateAssetProperty
-> Logger
-> Service
-> Proxy UpdateAssetProperty
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateAssetProperty)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse UpdateAssetProperty
UpdateAssetPropertyResponse
UpdateAssetPropertyResponse'

instance Prelude.Hashable UpdateAssetProperty

instance Prelude.NFData UpdateAssetProperty

instance Core.ToHeaders UpdateAssetProperty where
  toHeaders :: UpdateAssetProperty -> [Header]
toHeaders =
    [Header] -> UpdateAssetProperty -> [Header]
forall a b. a -> b -> a
Prelude.const
      ( [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON UpdateAssetProperty where
  toJSON :: UpdateAssetProperty -> Value
toJSON UpdateAssetProperty' {Maybe Text
Maybe PropertyNotificationState
Text
propertyId :: Text
assetId :: Text
propertyAlias :: Maybe Text
propertyNotificationState :: Maybe PropertyNotificationState
clientToken :: Maybe Text
$sel:propertyId:UpdateAssetProperty' :: UpdateAssetProperty -> Text
$sel:assetId:UpdateAssetProperty' :: UpdateAssetProperty -> Text
$sel:propertyAlias:UpdateAssetProperty' :: UpdateAssetProperty -> Maybe Text
$sel:propertyNotificationState:UpdateAssetProperty' :: UpdateAssetProperty -> Maybe PropertyNotificationState
$sel:clientToken:UpdateAssetProperty' :: UpdateAssetProperty -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"clientToken" 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
clientToken,
            (Text
"propertyNotificationState" Text -> PropertyNotificationState -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (PropertyNotificationState -> Pair)
-> Maybe PropertyNotificationState -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PropertyNotificationState
propertyNotificationState,
            (Text
"propertyAlias" 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
propertyAlias
          ]
      )

instance Core.ToPath UpdateAssetProperty where
  toPath :: UpdateAssetProperty -> ByteString
toPath UpdateAssetProperty' {Maybe Text
Maybe PropertyNotificationState
Text
propertyId :: Text
assetId :: Text
propertyAlias :: Maybe Text
propertyNotificationState :: Maybe PropertyNotificationState
clientToken :: Maybe Text
$sel:propertyId:UpdateAssetProperty' :: UpdateAssetProperty -> Text
$sel:assetId:UpdateAssetProperty' :: UpdateAssetProperty -> Text
$sel:propertyAlias:UpdateAssetProperty' :: UpdateAssetProperty -> Maybe Text
$sel:propertyNotificationState:UpdateAssetProperty' :: UpdateAssetProperty -> Maybe PropertyNotificationState
$sel:clientToken:UpdateAssetProperty' :: UpdateAssetProperty -> Maybe 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 UpdateAssetProperty where
  toQuery :: UpdateAssetProperty -> QueryString
toQuery = QueryString -> UpdateAssetProperty -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newUpdateAssetPropertyResponse' smart constructor.
data UpdateAssetPropertyResponse = UpdateAssetPropertyResponse'
  {
  }
  deriving (UpdateAssetPropertyResponse -> UpdateAssetPropertyResponse -> Bool
(UpdateAssetPropertyResponse
 -> UpdateAssetPropertyResponse -> Bool)
-> (UpdateAssetPropertyResponse
    -> UpdateAssetPropertyResponse -> Bool)
-> Eq UpdateAssetPropertyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAssetPropertyResponse -> UpdateAssetPropertyResponse -> Bool
$c/= :: UpdateAssetPropertyResponse -> UpdateAssetPropertyResponse -> Bool
== :: UpdateAssetPropertyResponse -> UpdateAssetPropertyResponse -> Bool
$c== :: UpdateAssetPropertyResponse -> UpdateAssetPropertyResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAssetPropertyResponse]
ReadPrec UpdateAssetPropertyResponse
Int -> ReadS UpdateAssetPropertyResponse
ReadS [UpdateAssetPropertyResponse]
(Int -> ReadS UpdateAssetPropertyResponse)
-> ReadS [UpdateAssetPropertyResponse]
-> ReadPrec UpdateAssetPropertyResponse
-> ReadPrec [UpdateAssetPropertyResponse]
-> Read UpdateAssetPropertyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAssetPropertyResponse]
$creadListPrec :: ReadPrec [UpdateAssetPropertyResponse]
readPrec :: ReadPrec UpdateAssetPropertyResponse
$creadPrec :: ReadPrec UpdateAssetPropertyResponse
readList :: ReadS [UpdateAssetPropertyResponse]
$creadList :: ReadS [UpdateAssetPropertyResponse]
readsPrec :: Int -> ReadS UpdateAssetPropertyResponse
$creadsPrec :: Int -> ReadS UpdateAssetPropertyResponse
Prelude.Read, Int -> UpdateAssetPropertyResponse -> ShowS
[UpdateAssetPropertyResponse] -> ShowS
UpdateAssetPropertyResponse -> String
(Int -> UpdateAssetPropertyResponse -> ShowS)
-> (UpdateAssetPropertyResponse -> String)
-> ([UpdateAssetPropertyResponse] -> ShowS)
-> Show UpdateAssetPropertyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAssetPropertyResponse] -> ShowS
$cshowList :: [UpdateAssetPropertyResponse] -> ShowS
show :: UpdateAssetPropertyResponse -> String
$cshow :: UpdateAssetPropertyResponse -> String
showsPrec :: Int -> UpdateAssetPropertyResponse -> ShowS
$cshowsPrec :: Int -> UpdateAssetPropertyResponse -> ShowS
Prelude.Show, (forall x.
 UpdateAssetPropertyResponse -> Rep UpdateAssetPropertyResponse x)
-> (forall x.
    Rep UpdateAssetPropertyResponse x -> UpdateAssetPropertyResponse)
-> Generic UpdateAssetPropertyResponse
forall x.
Rep UpdateAssetPropertyResponse x -> UpdateAssetPropertyResponse
forall x.
UpdateAssetPropertyResponse -> Rep UpdateAssetPropertyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAssetPropertyResponse x -> UpdateAssetPropertyResponse
$cfrom :: forall x.
UpdateAssetPropertyResponse -> Rep UpdateAssetPropertyResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateAssetPropertyResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
newUpdateAssetPropertyResponse ::
  UpdateAssetPropertyResponse
newUpdateAssetPropertyResponse :: UpdateAssetPropertyResponse
newUpdateAssetPropertyResponse =
  UpdateAssetPropertyResponse
UpdateAssetPropertyResponse'

instance Prelude.NFData UpdateAssetPropertyResponse