{-# 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.GetInterpolatedAssetPropertyValues
-- 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)
--
-- Get interpolated values for an asset property for a specified time
-- interval, during a period of time. If your time series is missing data
-- points during the specified time interval, you can use interpolation to
-- estimate the missing data.
--
-- For example, you can use this operation to return the interpolated
-- temperature values for a wind turbine every 24 hours over a duration of
-- 7 days.
--
-- To identify an asset property, you must specify one of the following:
--
-- -   The @assetId@ and @propertyId@ of an asset property.
--
-- -   A @propertyAlias@, which is a data stream alias (for example,
--     @\/company\/windfarm\/3\/turbine\/7\/temperature@). To define an
--     asset property\'s alias, see
--     <https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html UpdateAssetProperty>.
--
-- This operation returns paginated results.
module Amazonka.IoTSiteWise.GetInterpolatedAssetPropertyValues
  ( -- * Creating a Request
    GetInterpolatedAssetPropertyValues (..),
    newGetInterpolatedAssetPropertyValues,

    -- * Request Lenses
    getInterpolatedAssetPropertyValues_startTimeOffsetInNanos,
    getInterpolatedAssetPropertyValues_endTimeOffsetInNanos,
    getInterpolatedAssetPropertyValues_propertyAlias,
    getInterpolatedAssetPropertyValues_nextToken,
    getInterpolatedAssetPropertyValues_intervalWindowInSeconds,
    getInterpolatedAssetPropertyValues_propertyId,
    getInterpolatedAssetPropertyValues_assetId,
    getInterpolatedAssetPropertyValues_maxResults,
    getInterpolatedAssetPropertyValues_startTimeInSeconds,
    getInterpolatedAssetPropertyValues_endTimeInSeconds,
    getInterpolatedAssetPropertyValues_quality,
    getInterpolatedAssetPropertyValues_intervalInSeconds,
    getInterpolatedAssetPropertyValues_type,

    -- * Destructuring the Response
    GetInterpolatedAssetPropertyValuesResponse (..),
    newGetInterpolatedAssetPropertyValuesResponse,

    -- * Response Lenses
    getInterpolatedAssetPropertyValuesResponse_nextToken,
    getInterpolatedAssetPropertyValuesResponse_httpStatus,
    getInterpolatedAssetPropertyValuesResponse_interpolatedAssetPropertyValues,
  )
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:/ 'newGetInterpolatedAssetPropertyValues' smart constructor.
data GetInterpolatedAssetPropertyValues = GetInterpolatedAssetPropertyValues'
  { -- | The nanosecond offset converted from @startTimeInSeconds@.
    GetInterpolatedAssetPropertyValues -> Maybe Natural
startTimeOffsetInNanos :: Prelude.Maybe Prelude.Natural,
    -- | The nanosecond offset converted from @endTimeInSeconds@.
    GetInterpolatedAssetPropertyValues -> Maybe Natural
endTimeOffsetInNanos :: Prelude.Maybe Prelude.Natural,
    -- | 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/.
    GetInterpolatedAssetPropertyValues -> Maybe Text
propertyAlias :: Prelude.Maybe Prelude.Text,
    -- | The token to be used for the next set of paginated results.
    GetInterpolatedAssetPropertyValues -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The query interval for the window in seconds. IoT SiteWise computes each
    -- interpolated value by using data points from the timestamp of each
    -- interval minus the window to the timestamp of each interval plus the
    -- window. If not specified, the window is between the start time minus the
    -- interval and the end time plus the interval.
    --
    -- -   If you specify a value for the @intervalWindowInSeconds@ parameter,
    --     the @type@ parameter must be @LINEAR_INTERPOLATION@.
    --
    -- -   If no data point is found during the specified query window, IoT
    --     SiteWise won\'t return an interpolated value for the interval. This
    --     indicates that there\'s a gap in the ingested data points.
    --
    -- For example, you can get the interpolated temperature values for a wind
    -- turbine every 24 hours over a duration of 7 days. If the interpolation
    -- starts on July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise
    -- uses the data points from 7 AM (9 AM - 2 hours) to 11 AM (9 AM + 2
    -- hours) on July 2, 2021 to compute the first interpolated value, uses the
    -- data points from 7 AM (9 AM - 2 hours) to 11 AM (9 AM + 2 hours) on July
    -- 3, 2021 to compute the second interpolated value, and so on.
    GetInterpolatedAssetPropertyValues -> Maybe Natural
intervalWindowInSeconds :: Prelude.Maybe Prelude.Natural,
    -- | The ID of the asset property.
    GetInterpolatedAssetPropertyValues -> Maybe Text
propertyId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the asset.
    GetInterpolatedAssetPropertyValues -> Maybe Text
assetId :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return for each paginated request. If
    -- not specified, the default value is 10.
    GetInterpolatedAssetPropertyValues -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The exclusive start of the range from which to interpolate data,
    -- expressed in seconds in Unix epoch time.
    GetInterpolatedAssetPropertyValues -> Natural
startTimeInSeconds :: Prelude.Natural,
    -- | The inclusive end of the range from which to interpolate data, expressed
    -- in seconds in Unix epoch time.
    GetInterpolatedAssetPropertyValues -> Natural
endTimeInSeconds :: Prelude.Natural,
    -- | The quality of the asset property value. You can use this parameter as a
    -- filter to choose only the asset property values that have a specific
    -- quality.
    GetInterpolatedAssetPropertyValues -> Quality
quality :: Quality,
    -- | The time interval in seconds over which to interpolate data. Each
    -- interval starts when the previous one ends.
    GetInterpolatedAssetPropertyValues -> Natural
intervalInSeconds :: Prelude.Natural,
    -- | The interpolation type.
    --
    -- Valid values: @LINEAR_INTERPOLATION | LOCF_INTERPOLATION@
    --
    -- -   @LINEAR_INTERPOLATION@ – Estimates missing data using
    --     <https://en.wikipedia.org/wiki/Linear_interpolation linear interpolation>.
    --
    --     For example, you can use this operation to return the interpolated
    --     temperature values for a wind turbine every 24 hours over a duration
    --     of 7 days. If the interpolation starts on July 1, 2021, at 9 AM, IoT
    --     SiteWise returns the first interpolated value on July 2, 2021, at 9
    --     AM, the second interpolated value on July 3, 2021, at 9 AM, and so
    --     on.
    --
    -- -   @LOCF_INTERPOLATION@ – Estimates missing data using last observation
    --     carried forward interpolation
    --
    --     If no data point is found for an interval, IoT SiteWise returns the
    --     last observed data point for the previous interval and carries
    --     forward this interpolated value until a new data point is found.
    --
    --     For example, you can get the state of an on-off valve every 24 hours
    --     over a duration of 7 days. If the interpolation starts on July 1,
    --     2021, at 9 AM, IoT SiteWise returns the last observed data point
    --     between July 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first
    --     interpolated value. If no data point is found after 9 AM on July 2,
    --     2021, IoT SiteWise uses the same interpolated value for the rest of
    --     the days.
    GetInterpolatedAssetPropertyValues -> Text
type' :: Prelude.Text
  }
  deriving (GetInterpolatedAssetPropertyValues
-> GetInterpolatedAssetPropertyValues -> Bool
(GetInterpolatedAssetPropertyValues
 -> GetInterpolatedAssetPropertyValues -> Bool)
-> (GetInterpolatedAssetPropertyValues
    -> GetInterpolatedAssetPropertyValues -> Bool)
-> Eq GetInterpolatedAssetPropertyValues
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetInterpolatedAssetPropertyValues
-> GetInterpolatedAssetPropertyValues -> Bool
$c/= :: GetInterpolatedAssetPropertyValues
-> GetInterpolatedAssetPropertyValues -> Bool
== :: GetInterpolatedAssetPropertyValues
-> GetInterpolatedAssetPropertyValues -> Bool
$c== :: GetInterpolatedAssetPropertyValues
-> GetInterpolatedAssetPropertyValues -> Bool
Prelude.Eq, ReadPrec [GetInterpolatedAssetPropertyValues]
ReadPrec GetInterpolatedAssetPropertyValues
Int -> ReadS GetInterpolatedAssetPropertyValues
ReadS [GetInterpolatedAssetPropertyValues]
(Int -> ReadS GetInterpolatedAssetPropertyValues)
-> ReadS [GetInterpolatedAssetPropertyValues]
-> ReadPrec GetInterpolatedAssetPropertyValues
-> ReadPrec [GetInterpolatedAssetPropertyValues]
-> Read GetInterpolatedAssetPropertyValues
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetInterpolatedAssetPropertyValues]
$creadListPrec :: ReadPrec [GetInterpolatedAssetPropertyValues]
readPrec :: ReadPrec GetInterpolatedAssetPropertyValues
$creadPrec :: ReadPrec GetInterpolatedAssetPropertyValues
readList :: ReadS [GetInterpolatedAssetPropertyValues]
$creadList :: ReadS [GetInterpolatedAssetPropertyValues]
readsPrec :: Int -> ReadS GetInterpolatedAssetPropertyValues
$creadsPrec :: Int -> ReadS GetInterpolatedAssetPropertyValues
Prelude.Read, Int -> GetInterpolatedAssetPropertyValues -> ShowS
[GetInterpolatedAssetPropertyValues] -> ShowS
GetInterpolatedAssetPropertyValues -> String
(Int -> GetInterpolatedAssetPropertyValues -> ShowS)
-> (GetInterpolatedAssetPropertyValues -> String)
-> ([GetInterpolatedAssetPropertyValues] -> ShowS)
-> Show GetInterpolatedAssetPropertyValues
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetInterpolatedAssetPropertyValues] -> ShowS
$cshowList :: [GetInterpolatedAssetPropertyValues] -> ShowS
show :: GetInterpolatedAssetPropertyValues -> String
$cshow :: GetInterpolatedAssetPropertyValues -> String
showsPrec :: Int -> GetInterpolatedAssetPropertyValues -> ShowS
$cshowsPrec :: Int -> GetInterpolatedAssetPropertyValues -> ShowS
Prelude.Show, (forall x.
 GetInterpolatedAssetPropertyValues
 -> Rep GetInterpolatedAssetPropertyValues x)
-> (forall x.
    Rep GetInterpolatedAssetPropertyValues x
    -> GetInterpolatedAssetPropertyValues)
-> Generic GetInterpolatedAssetPropertyValues
forall x.
Rep GetInterpolatedAssetPropertyValues x
-> GetInterpolatedAssetPropertyValues
forall x.
GetInterpolatedAssetPropertyValues
-> Rep GetInterpolatedAssetPropertyValues x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetInterpolatedAssetPropertyValues x
-> GetInterpolatedAssetPropertyValues
$cfrom :: forall x.
GetInterpolatedAssetPropertyValues
-> Rep GetInterpolatedAssetPropertyValues x
Prelude.Generic)

-- |
-- Create a value of 'GetInterpolatedAssetPropertyValues' 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:
--
-- 'startTimeOffsetInNanos', 'getInterpolatedAssetPropertyValues_startTimeOffsetInNanos' - The nanosecond offset converted from @startTimeInSeconds@.
--
-- 'endTimeOffsetInNanos', 'getInterpolatedAssetPropertyValues_endTimeOffsetInNanos' - The nanosecond offset converted from @endTimeInSeconds@.
--
-- 'propertyAlias', 'getInterpolatedAssetPropertyValues_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/.
--
-- 'nextToken', 'getInterpolatedAssetPropertyValues_nextToken' - The token to be used for the next set of paginated results.
--
-- 'intervalWindowInSeconds', 'getInterpolatedAssetPropertyValues_intervalWindowInSeconds' - The query interval for the window in seconds. IoT SiteWise computes each
-- interpolated value by using data points from the timestamp of each
-- interval minus the window to the timestamp of each interval plus the
-- window. If not specified, the window is between the start time minus the
-- interval and the end time plus the interval.
--
-- -   If you specify a value for the @intervalWindowInSeconds@ parameter,
--     the @type@ parameter must be @LINEAR_INTERPOLATION@.
--
-- -   If no data point is found during the specified query window, IoT
--     SiteWise won\'t return an interpolated value for the interval. This
--     indicates that there\'s a gap in the ingested data points.
--
-- For example, you can get the interpolated temperature values for a wind
-- turbine every 24 hours over a duration of 7 days. If the interpolation
-- starts on July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise
-- uses the data points from 7 AM (9 AM - 2 hours) to 11 AM (9 AM + 2
-- hours) on July 2, 2021 to compute the first interpolated value, uses the
-- data points from 7 AM (9 AM - 2 hours) to 11 AM (9 AM + 2 hours) on July
-- 3, 2021 to compute the second interpolated value, and so on.
--
-- 'propertyId', 'getInterpolatedAssetPropertyValues_propertyId' - The ID of the asset property.
--
-- 'assetId', 'getInterpolatedAssetPropertyValues_assetId' - The ID of the asset.
--
-- 'maxResults', 'getInterpolatedAssetPropertyValues_maxResults' - The maximum number of results to return for each paginated request. If
-- not specified, the default value is 10.
--
-- 'startTimeInSeconds', 'getInterpolatedAssetPropertyValues_startTimeInSeconds' - The exclusive start of the range from which to interpolate data,
-- expressed in seconds in Unix epoch time.
--
-- 'endTimeInSeconds', 'getInterpolatedAssetPropertyValues_endTimeInSeconds' - The inclusive end of the range from which to interpolate data, expressed
-- in seconds in Unix epoch time.
--
-- 'quality', 'getInterpolatedAssetPropertyValues_quality' - The quality of the asset property value. You can use this parameter as a
-- filter to choose only the asset property values that have a specific
-- quality.
--
-- 'intervalInSeconds', 'getInterpolatedAssetPropertyValues_intervalInSeconds' - The time interval in seconds over which to interpolate data. Each
-- interval starts when the previous one ends.
--
-- 'type'', 'getInterpolatedAssetPropertyValues_type' - The interpolation type.
--
-- Valid values: @LINEAR_INTERPOLATION | LOCF_INTERPOLATION@
--
-- -   @LINEAR_INTERPOLATION@ – Estimates missing data using
--     <https://en.wikipedia.org/wiki/Linear_interpolation linear interpolation>.
--
--     For example, you can use this operation to return the interpolated
--     temperature values for a wind turbine every 24 hours over a duration
--     of 7 days. If the interpolation starts on July 1, 2021, at 9 AM, IoT
--     SiteWise returns the first interpolated value on July 2, 2021, at 9
--     AM, the second interpolated value on July 3, 2021, at 9 AM, and so
--     on.
--
-- -   @LOCF_INTERPOLATION@ – Estimates missing data using last observation
--     carried forward interpolation
--
--     If no data point is found for an interval, IoT SiteWise returns the
--     last observed data point for the previous interval and carries
--     forward this interpolated value until a new data point is found.
--
--     For example, you can get the state of an on-off valve every 24 hours
--     over a duration of 7 days. If the interpolation starts on July 1,
--     2021, at 9 AM, IoT SiteWise returns the last observed data point
--     between July 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first
--     interpolated value. If no data point is found after 9 AM on July 2,
--     2021, IoT SiteWise uses the same interpolated value for the rest of
--     the days.
newGetInterpolatedAssetPropertyValues ::
  -- | 'startTimeInSeconds'
  Prelude.Natural ->
  -- | 'endTimeInSeconds'
  Prelude.Natural ->
  -- | 'quality'
  Quality ->
  -- | 'intervalInSeconds'
  Prelude.Natural ->
  -- | 'type''
  Prelude.Text ->
  GetInterpolatedAssetPropertyValues
newGetInterpolatedAssetPropertyValues :: Natural
-> Natural
-> Quality
-> Natural
-> Text
-> GetInterpolatedAssetPropertyValues
newGetInterpolatedAssetPropertyValues
  Natural
pStartTimeInSeconds_
  Natural
pEndTimeInSeconds_
  Quality
pQuality_
  Natural
pIntervalInSeconds_
  Text
pType_ =
    GetInterpolatedAssetPropertyValues' :: Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Natural
-> Natural
-> Quality
-> Natural
-> Text
-> GetInterpolatedAssetPropertyValues
GetInterpolatedAssetPropertyValues'
      { $sel:startTimeOffsetInNanos:GetInterpolatedAssetPropertyValues' :: Maybe Natural
startTimeOffsetInNanos =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:endTimeOffsetInNanos:GetInterpolatedAssetPropertyValues' :: Maybe Natural
endTimeOffsetInNanos = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:propertyAlias:GetInterpolatedAssetPropertyValues' :: Maybe Text
propertyAlias = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:GetInterpolatedAssetPropertyValues' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:intervalWindowInSeconds:GetInterpolatedAssetPropertyValues' :: Maybe Natural
intervalWindowInSeconds =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:propertyId:GetInterpolatedAssetPropertyValues' :: Maybe Text
propertyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:assetId:GetInterpolatedAssetPropertyValues' :: Maybe Text
assetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:GetInterpolatedAssetPropertyValues' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:startTimeInSeconds:GetInterpolatedAssetPropertyValues' :: Natural
startTimeInSeconds =
          Natural
pStartTimeInSeconds_,
        $sel:endTimeInSeconds:GetInterpolatedAssetPropertyValues' :: Natural
endTimeInSeconds = Natural
pEndTimeInSeconds_,
        $sel:quality:GetInterpolatedAssetPropertyValues' :: Quality
quality = Quality
pQuality_,
        $sel:intervalInSeconds:GetInterpolatedAssetPropertyValues' :: Natural
intervalInSeconds = Natural
pIntervalInSeconds_,
        $sel:type':GetInterpolatedAssetPropertyValues' :: Text
type' = Text
pType_
      }

-- | The nanosecond offset converted from @startTimeInSeconds@.
getInterpolatedAssetPropertyValues_startTimeOffsetInNanos :: Lens.Lens' GetInterpolatedAssetPropertyValues (Prelude.Maybe Prelude.Natural)
getInterpolatedAssetPropertyValues_startTimeOffsetInNanos :: (Maybe Natural -> f (Maybe Natural))
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_startTimeOffsetInNanos = (GetInterpolatedAssetPropertyValues -> Maybe Natural)
-> (GetInterpolatedAssetPropertyValues
    -> Maybe Natural -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Maybe Natural
startTimeOffsetInNanos :: Maybe Natural
$sel:startTimeOffsetInNanos:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Natural
startTimeOffsetInNanos} -> Maybe Natural
startTimeOffsetInNanos) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Maybe Natural
a -> GetInterpolatedAssetPropertyValues
s {$sel:startTimeOffsetInNanos:GetInterpolatedAssetPropertyValues' :: Maybe Natural
startTimeOffsetInNanos = Maybe Natural
a} :: GetInterpolatedAssetPropertyValues)

-- | The nanosecond offset converted from @endTimeInSeconds@.
getInterpolatedAssetPropertyValues_endTimeOffsetInNanos :: Lens.Lens' GetInterpolatedAssetPropertyValues (Prelude.Maybe Prelude.Natural)
getInterpolatedAssetPropertyValues_endTimeOffsetInNanos :: (Maybe Natural -> f (Maybe Natural))
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_endTimeOffsetInNanos = (GetInterpolatedAssetPropertyValues -> Maybe Natural)
-> (GetInterpolatedAssetPropertyValues
    -> Maybe Natural -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Maybe Natural
endTimeOffsetInNanos :: Maybe Natural
$sel:endTimeOffsetInNanos:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Natural
endTimeOffsetInNanos} -> Maybe Natural
endTimeOffsetInNanos) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Maybe Natural
a -> GetInterpolatedAssetPropertyValues
s {$sel:endTimeOffsetInNanos:GetInterpolatedAssetPropertyValues' :: Maybe Natural
endTimeOffsetInNanos = Maybe Natural
a} :: GetInterpolatedAssetPropertyValues)

-- | 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/.
getInterpolatedAssetPropertyValues_propertyAlias :: Lens.Lens' GetInterpolatedAssetPropertyValues (Prelude.Maybe Prelude.Text)
getInterpolatedAssetPropertyValues_propertyAlias :: (Maybe Text -> f (Maybe Text))
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_propertyAlias = (GetInterpolatedAssetPropertyValues -> Maybe Text)
-> (GetInterpolatedAssetPropertyValues
    -> Maybe Text -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Maybe Text
propertyAlias :: Maybe Text
$sel:propertyAlias:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Text
propertyAlias} -> Maybe Text
propertyAlias) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Maybe Text
a -> GetInterpolatedAssetPropertyValues
s {$sel:propertyAlias:GetInterpolatedAssetPropertyValues' :: Maybe Text
propertyAlias = Maybe Text
a} :: GetInterpolatedAssetPropertyValues)

-- | The token to be used for the next set of paginated results.
getInterpolatedAssetPropertyValues_nextToken :: Lens.Lens' GetInterpolatedAssetPropertyValues (Prelude.Maybe Prelude.Text)
getInterpolatedAssetPropertyValues_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_nextToken = (GetInterpolatedAssetPropertyValues -> Maybe Text)
-> (GetInterpolatedAssetPropertyValues
    -> Maybe Text -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Maybe Text
a -> GetInterpolatedAssetPropertyValues
s {$sel:nextToken:GetInterpolatedAssetPropertyValues' :: Maybe Text
nextToken = Maybe Text
a} :: GetInterpolatedAssetPropertyValues)

-- | The query interval for the window in seconds. IoT SiteWise computes each
-- interpolated value by using data points from the timestamp of each
-- interval minus the window to the timestamp of each interval plus the
-- window. If not specified, the window is between the start time minus the
-- interval and the end time plus the interval.
--
-- -   If you specify a value for the @intervalWindowInSeconds@ parameter,
--     the @type@ parameter must be @LINEAR_INTERPOLATION@.
--
-- -   If no data point is found during the specified query window, IoT
--     SiteWise won\'t return an interpolated value for the interval. This
--     indicates that there\'s a gap in the ingested data points.
--
-- For example, you can get the interpolated temperature values for a wind
-- turbine every 24 hours over a duration of 7 days. If the interpolation
-- starts on July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise
-- uses the data points from 7 AM (9 AM - 2 hours) to 11 AM (9 AM + 2
-- hours) on July 2, 2021 to compute the first interpolated value, uses the
-- data points from 7 AM (9 AM - 2 hours) to 11 AM (9 AM + 2 hours) on July
-- 3, 2021 to compute the second interpolated value, and so on.
getInterpolatedAssetPropertyValues_intervalWindowInSeconds :: Lens.Lens' GetInterpolatedAssetPropertyValues (Prelude.Maybe Prelude.Natural)
getInterpolatedAssetPropertyValues_intervalWindowInSeconds :: (Maybe Natural -> f (Maybe Natural))
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_intervalWindowInSeconds = (GetInterpolatedAssetPropertyValues -> Maybe Natural)
-> (GetInterpolatedAssetPropertyValues
    -> Maybe Natural -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Maybe Natural
intervalWindowInSeconds :: Maybe Natural
$sel:intervalWindowInSeconds:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Natural
intervalWindowInSeconds} -> Maybe Natural
intervalWindowInSeconds) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Maybe Natural
a -> GetInterpolatedAssetPropertyValues
s {$sel:intervalWindowInSeconds:GetInterpolatedAssetPropertyValues' :: Maybe Natural
intervalWindowInSeconds = Maybe Natural
a} :: GetInterpolatedAssetPropertyValues)

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

-- | The ID of the asset.
getInterpolatedAssetPropertyValues_assetId :: Lens.Lens' GetInterpolatedAssetPropertyValues (Prelude.Maybe Prelude.Text)
getInterpolatedAssetPropertyValues_assetId :: (Maybe Text -> f (Maybe Text))
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_assetId = (GetInterpolatedAssetPropertyValues -> Maybe Text)
-> (GetInterpolatedAssetPropertyValues
    -> Maybe Text -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Maybe Text
assetId :: Maybe Text
$sel:assetId:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Text
assetId} -> Maybe Text
assetId) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Maybe Text
a -> GetInterpolatedAssetPropertyValues
s {$sel:assetId:GetInterpolatedAssetPropertyValues' :: Maybe Text
assetId = Maybe Text
a} :: GetInterpolatedAssetPropertyValues)

-- | The maximum number of results to return for each paginated request. If
-- not specified, the default value is 10.
getInterpolatedAssetPropertyValues_maxResults :: Lens.Lens' GetInterpolatedAssetPropertyValues (Prelude.Maybe Prelude.Natural)
getInterpolatedAssetPropertyValues_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_maxResults = (GetInterpolatedAssetPropertyValues -> Maybe Natural)
-> (GetInterpolatedAssetPropertyValues
    -> Maybe Natural -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Maybe Natural
a -> GetInterpolatedAssetPropertyValues
s {$sel:maxResults:GetInterpolatedAssetPropertyValues' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetInterpolatedAssetPropertyValues)

-- | The exclusive start of the range from which to interpolate data,
-- expressed in seconds in Unix epoch time.
getInterpolatedAssetPropertyValues_startTimeInSeconds :: Lens.Lens' GetInterpolatedAssetPropertyValues Prelude.Natural
getInterpolatedAssetPropertyValues_startTimeInSeconds :: (Natural -> f Natural)
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_startTimeInSeconds = (GetInterpolatedAssetPropertyValues -> Natural)
-> (GetInterpolatedAssetPropertyValues
    -> Natural -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     Natural
     Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Natural
startTimeInSeconds :: Natural
$sel:startTimeInSeconds:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Natural
startTimeInSeconds} -> Natural
startTimeInSeconds) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Natural
a -> GetInterpolatedAssetPropertyValues
s {$sel:startTimeInSeconds:GetInterpolatedAssetPropertyValues' :: Natural
startTimeInSeconds = Natural
a} :: GetInterpolatedAssetPropertyValues)

-- | The inclusive end of the range from which to interpolate data, expressed
-- in seconds in Unix epoch time.
getInterpolatedAssetPropertyValues_endTimeInSeconds :: Lens.Lens' GetInterpolatedAssetPropertyValues Prelude.Natural
getInterpolatedAssetPropertyValues_endTimeInSeconds :: (Natural -> f Natural)
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_endTimeInSeconds = (GetInterpolatedAssetPropertyValues -> Natural)
-> (GetInterpolatedAssetPropertyValues
    -> Natural -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     Natural
     Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Natural
endTimeInSeconds :: Natural
$sel:endTimeInSeconds:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Natural
endTimeInSeconds} -> Natural
endTimeInSeconds) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Natural
a -> GetInterpolatedAssetPropertyValues
s {$sel:endTimeInSeconds:GetInterpolatedAssetPropertyValues' :: Natural
endTimeInSeconds = Natural
a} :: GetInterpolatedAssetPropertyValues)

-- | The quality of the asset property value. You can use this parameter as a
-- filter to choose only the asset property values that have a specific
-- quality.
getInterpolatedAssetPropertyValues_quality :: Lens.Lens' GetInterpolatedAssetPropertyValues Quality
getInterpolatedAssetPropertyValues_quality :: (Quality -> f Quality)
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_quality = (GetInterpolatedAssetPropertyValues -> Quality)
-> (GetInterpolatedAssetPropertyValues
    -> Quality -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     Quality
     Quality
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Quality
quality :: Quality
$sel:quality:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Quality
quality} -> Quality
quality) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Quality
a -> GetInterpolatedAssetPropertyValues
s {$sel:quality:GetInterpolatedAssetPropertyValues' :: Quality
quality = Quality
a} :: GetInterpolatedAssetPropertyValues)

-- | The time interval in seconds over which to interpolate data. Each
-- interval starts when the previous one ends.
getInterpolatedAssetPropertyValues_intervalInSeconds :: Lens.Lens' GetInterpolatedAssetPropertyValues Prelude.Natural
getInterpolatedAssetPropertyValues_intervalInSeconds :: (Natural -> f Natural)
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_intervalInSeconds = (GetInterpolatedAssetPropertyValues -> Natural)
-> (GetInterpolatedAssetPropertyValues
    -> Natural -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     Natural
     Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Natural
intervalInSeconds :: Natural
$sel:intervalInSeconds:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Natural
intervalInSeconds} -> Natural
intervalInSeconds) (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Natural
a -> GetInterpolatedAssetPropertyValues
s {$sel:intervalInSeconds:GetInterpolatedAssetPropertyValues' :: Natural
intervalInSeconds = Natural
a} :: GetInterpolatedAssetPropertyValues)

-- | The interpolation type.
--
-- Valid values: @LINEAR_INTERPOLATION | LOCF_INTERPOLATION@
--
-- -   @LINEAR_INTERPOLATION@ – Estimates missing data using
--     <https://en.wikipedia.org/wiki/Linear_interpolation linear interpolation>.
--
--     For example, you can use this operation to return the interpolated
--     temperature values for a wind turbine every 24 hours over a duration
--     of 7 days. If the interpolation starts on July 1, 2021, at 9 AM, IoT
--     SiteWise returns the first interpolated value on July 2, 2021, at 9
--     AM, the second interpolated value on July 3, 2021, at 9 AM, and so
--     on.
--
-- -   @LOCF_INTERPOLATION@ – Estimates missing data using last observation
--     carried forward interpolation
--
--     If no data point is found for an interval, IoT SiteWise returns the
--     last observed data point for the previous interval and carries
--     forward this interpolated value until a new data point is found.
--
--     For example, you can get the state of an on-off valve every 24 hours
--     over a duration of 7 days. If the interpolation starts on July 1,
--     2021, at 9 AM, IoT SiteWise returns the last observed data point
--     between July 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first
--     interpolated value. If no data point is found after 9 AM on July 2,
--     2021, IoT SiteWise uses the same interpolated value for the rest of
--     the days.
getInterpolatedAssetPropertyValues_type :: Lens.Lens' GetInterpolatedAssetPropertyValues Prelude.Text
getInterpolatedAssetPropertyValues_type :: (Text -> f Text)
-> GetInterpolatedAssetPropertyValues
-> f GetInterpolatedAssetPropertyValues
getInterpolatedAssetPropertyValues_type = (GetInterpolatedAssetPropertyValues -> Text)
-> (GetInterpolatedAssetPropertyValues
    -> Text -> GetInterpolatedAssetPropertyValues)
-> Lens
     GetInterpolatedAssetPropertyValues
     GetInterpolatedAssetPropertyValues
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValues' {Text
type' :: Text
$sel:type':GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Text
type'} -> Text
type') (\s :: GetInterpolatedAssetPropertyValues
s@GetInterpolatedAssetPropertyValues' {} Text
a -> GetInterpolatedAssetPropertyValues
s {$sel:type':GetInterpolatedAssetPropertyValues' :: Text
type' = Text
a} :: GetInterpolatedAssetPropertyValues)

instance
  Core.AWSPager
    GetInterpolatedAssetPropertyValues
  where
  page :: GetInterpolatedAssetPropertyValues
-> AWSResponse GetInterpolatedAssetPropertyValues
-> Maybe GetInterpolatedAssetPropertyValues
page GetInterpolatedAssetPropertyValues
rq AWSResponse GetInterpolatedAssetPropertyValues
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetInterpolatedAssetPropertyValues
GetInterpolatedAssetPropertyValuesResponse
rs
            GetInterpolatedAssetPropertyValuesResponse
-> Getting
     (First Text) GetInterpolatedAssetPropertyValuesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetInterpolatedAssetPropertyValuesResponse
-> Const (First Text) GetInterpolatedAssetPropertyValuesResponse
Lens' GetInterpolatedAssetPropertyValuesResponse (Maybe Text)
getInterpolatedAssetPropertyValuesResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> GetInterpolatedAssetPropertyValuesResponse
 -> Const (First Text) GetInterpolatedAssetPropertyValuesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) GetInterpolatedAssetPropertyValuesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe GetInterpolatedAssetPropertyValues
forall a. Maybe a
Prelude.Nothing
    | [InterpolatedAssetPropertyValue] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetInterpolatedAssetPropertyValues
GetInterpolatedAssetPropertyValuesResponse
rs
            GetInterpolatedAssetPropertyValuesResponse
-> Getting
     [InterpolatedAssetPropertyValue]
     GetInterpolatedAssetPropertyValuesResponse
     [InterpolatedAssetPropertyValue]
-> [InterpolatedAssetPropertyValue]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
  [InterpolatedAssetPropertyValue]
  GetInterpolatedAssetPropertyValuesResponse
  [InterpolatedAssetPropertyValue]
Lens'
  GetInterpolatedAssetPropertyValuesResponse
  [InterpolatedAssetPropertyValue]
getInterpolatedAssetPropertyValuesResponse_interpolatedAssetPropertyValues
        ) =
      Maybe GetInterpolatedAssetPropertyValues
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      GetInterpolatedAssetPropertyValues
-> Maybe GetInterpolatedAssetPropertyValues
forall a. a -> Maybe a
Prelude.Just (GetInterpolatedAssetPropertyValues
 -> Maybe GetInterpolatedAssetPropertyValues)
-> GetInterpolatedAssetPropertyValues
-> Maybe GetInterpolatedAssetPropertyValues
forall a b. (a -> b) -> a -> b
Prelude.$
        GetInterpolatedAssetPropertyValues
rq
          GetInterpolatedAssetPropertyValues
-> (GetInterpolatedAssetPropertyValues
    -> GetInterpolatedAssetPropertyValues)
-> GetInterpolatedAssetPropertyValues
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetInterpolatedAssetPropertyValues
-> Identity GetInterpolatedAssetPropertyValues
Lens
  GetInterpolatedAssetPropertyValues
  GetInterpolatedAssetPropertyValues
  (Maybe Text)
  (Maybe Text)
getInterpolatedAssetPropertyValues_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> GetInterpolatedAssetPropertyValues
 -> Identity GetInterpolatedAssetPropertyValues)
-> Maybe Text
-> GetInterpolatedAssetPropertyValues
-> GetInterpolatedAssetPropertyValues
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetInterpolatedAssetPropertyValues
GetInterpolatedAssetPropertyValuesResponse
rs
          GetInterpolatedAssetPropertyValuesResponse
-> Getting
     (First Text) GetInterpolatedAssetPropertyValuesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetInterpolatedAssetPropertyValuesResponse
-> Const (First Text) GetInterpolatedAssetPropertyValuesResponse
Lens' GetInterpolatedAssetPropertyValuesResponse (Maybe Text)
getInterpolatedAssetPropertyValuesResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> GetInterpolatedAssetPropertyValuesResponse
 -> Const (First Text) GetInterpolatedAssetPropertyValuesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) GetInterpolatedAssetPropertyValuesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    GetInterpolatedAssetPropertyValues
  where
  type
    AWSResponse GetInterpolatedAssetPropertyValues =
      GetInterpolatedAssetPropertyValuesResponse
  request :: GetInterpolatedAssetPropertyValues
-> Request GetInterpolatedAssetPropertyValues
request = Service
-> GetInterpolatedAssetPropertyValues
-> Request GetInterpolatedAssetPropertyValues
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetInterpolatedAssetPropertyValues
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetInterpolatedAssetPropertyValues)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetInterpolatedAssetPropertyValues))
-> Logger
-> Service
-> Proxy GetInterpolatedAssetPropertyValues
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetInterpolatedAssetPropertyValues)))
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
-> Int
-> [InterpolatedAssetPropertyValue]
-> GetInterpolatedAssetPropertyValuesResponse
GetInterpolatedAssetPropertyValuesResponse'
            (Maybe Text
 -> Int
 -> [InterpolatedAssetPropertyValue]
 -> GetInterpolatedAssetPropertyValuesResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Int
      -> [InterpolatedAssetPropertyValue]
      -> GetInterpolatedAssetPropertyValuesResponse)
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
"nextToken")
              Either
  String
  (Int
   -> [InterpolatedAssetPropertyValue]
   -> GetInterpolatedAssetPropertyValuesResponse)
-> Either String Int
-> Either
     String
     ([InterpolatedAssetPropertyValue]
      -> GetInterpolatedAssetPropertyValuesResponse)
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
  ([InterpolatedAssetPropertyValue]
   -> GetInterpolatedAssetPropertyValuesResponse)
-> Either String [InterpolatedAssetPropertyValue]
-> Either String GetInterpolatedAssetPropertyValuesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe [InterpolatedAssetPropertyValue])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"interpolatedAssetPropertyValues"
                              Either String (Maybe [InterpolatedAssetPropertyValue])
-> [InterpolatedAssetPropertyValue]
-> Either String [InterpolatedAssetPropertyValue]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [InterpolatedAssetPropertyValue]
forall a. Monoid a => a
Prelude.mempty
                          )
      )

instance
  Prelude.Hashable
    GetInterpolatedAssetPropertyValues

instance
  Prelude.NFData
    GetInterpolatedAssetPropertyValues

instance
  Core.ToHeaders
    GetInterpolatedAssetPropertyValues
  where
  toHeaders :: GetInterpolatedAssetPropertyValues -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> GetInterpolatedAssetPropertyValues -> 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
    GetInterpolatedAssetPropertyValues
  where
  toPath :: GetInterpolatedAssetPropertyValues -> ByteString
toPath = ByteString -> GetInterpolatedAssetPropertyValues -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/properties/interpolated"

instance
  Core.ToQuery
    GetInterpolatedAssetPropertyValues
  where
  toQuery :: GetInterpolatedAssetPropertyValues -> QueryString
toQuery GetInterpolatedAssetPropertyValues' {Natural
Maybe Natural
Maybe Text
Text
Quality
type' :: Text
intervalInSeconds :: Natural
quality :: Quality
endTimeInSeconds :: Natural
startTimeInSeconds :: Natural
maxResults :: Maybe Natural
assetId :: Maybe Text
propertyId :: Maybe Text
intervalWindowInSeconds :: Maybe Natural
nextToken :: Maybe Text
propertyAlias :: Maybe Text
endTimeOffsetInNanos :: Maybe Natural
startTimeOffsetInNanos :: Maybe Natural
$sel:type':GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Text
$sel:intervalInSeconds:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Natural
$sel:quality:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Quality
$sel:endTimeInSeconds:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Natural
$sel:startTimeInSeconds:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Natural
$sel:maxResults:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Natural
$sel:assetId:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Text
$sel:propertyId:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Text
$sel:intervalWindowInSeconds:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Natural
$sel:nextToken:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Text
$sel:propertyAlias:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Text
$sel:endTimeOffsetInNanos:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Natural
$sel:startTimeOffsetInNanos:GetInterpolatedAssetPropertyValues' :: GetInterpolatedAssetPropertyValues -> Maybe Natural
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"startTimeOffsetInNanos"
          ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
startTimeOffsetInNanos,
        ByteString
"endTimeOffsetInNanos" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
endTimeOffsetInNanos,
        ByteString
"propertyAlias" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
propertyAlias,
        ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"intervalWindowInSeconds"
          ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
intervalWindowInSeconds,
        ByteString
"propertyId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
propertyId,
        ByteString
"assetId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
assetId,
        ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults,
        ByteString
"startTimeInSeconds" ByteString -> Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Natural
startTimeInSeconds,
        ByteString
"endTimeInSeconds" ByteString -> Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Natural
endTimeInSeconds,
        ByteString
"quality" ByteString -> Quality -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Quality
quality,
        ByteString
"intervalInSeconds" ByteString -> Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Natural
intervalInSeconds,
        ByteString
"type" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
type'
      ]

-- | /See:/ 'newGetInterpolatedAssetPropertyValuesResponse' smart constructor.
data GetInterpolatedAssetPropertyValuesResponse = GetInterpolatedAssetPropertyValuesResponse'
  { -- | The token for the next set of results, or null if there are no
    -- additional results.
    GetInterpolatedAssetPropertyValuesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetInterpolatedAssetPropertyValuesResponse -> Int
httpStatus :: Prelude.Int,
    -- | The requested interpolated values.
    GetInterpolatedAssetPropertyValuesResponse
-> [InterpolatedAssetPropertyValue]
interpolatedAssetPropertyValues :: [InterpolatedAssetPropertyValue]
  }
  deriving (GetInterpolatedAssetPropertyValuesResponse
-> GetInterpolatedAssetPropertyValuesResponse -> Bool
(GetInterpolatedAssetPropertyValuesResponse
 -> GetInterpolatedAssetPropertyValuesResponse -> Bool)
-> (GetInterpolatedAssetPropertyValuesResponse
    -> GetInterpolatedAssetPropertyValuesResponse -> Bool)
-> Eq GetInterpolatedAssetPropertyValuesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetInterpolatedAssetPropertyValuesResponse
-> GetInterpolatedAssetPropertyValuesResponse -> Bool
$c/= :: GetInterpolatedAssetPropertyValuesResponse
-> GetInterpolatedAssetPropertyValuesResponse -> Bool
== :: GetInterpolatedAssetPropertyValuesResponse
-> GetInterpolatedAssetPropertyValuesResponse -> Bool
$c== :: GetInterpolatedAssetPropertyValuesResponse
-> GetInterpolatedAssetPropertyValuesResponse -> Bool
Prelude.Eq, ReadPrec [GetInterpolatedAssetPropertyValuesResponse]
ReadPrec GetInterpolatedAssetPropertyValuesResponse
Int -> ReadS GetInterpolatedAssetPropertyValuesResponse
ReadS [GetInterpolatedAssetPropertyValuesResponse]
(Int -> ReadS GetInterpolatedAssetPropertyValuesResponse)
-> ReadS [GetInterpolatedAssetPropertyValuesResponse]
-> ReadPrec GetInterpolatedAssetPropertyValuesResponse
-> ReadPrec [GetInterpolatedAssetPropertyValuesResponse]
-> Read GetInterpolatedAssetPropertyValuesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetInterpolatedAssetPropertyValuesResponse]
$creadListPrec :: ReadPrec [GetInterpolatedAssetPropertyValuesResponse]
readPrec :: ReadPrec GetInterpolatedAssetPropertyValuesResponse
$creadPrec :: ReadPrec GetInterpolatedAssetPropertyValuesResponse
readList :: ReadS [GetInterpolatedAssetPropertyValuesResponse]
$creadList :: ReadS [GetInterpolatedAssetPropertyValuesResponse]
readsPrec :: Int -> ReadS GetInterpolatedAssetPropertyValuesResponse
$creadsPrec :: Int -> ReadS GetInterpolatedAssetPropertyValuesResponse
Prelude.Read, Int -> GetInterpolatedAssetPropertyValuesResponse -> ShowS
[GetInterpolatedAssetPropertyValuesResponse] -> ShowS
GetInterpolatedAssetPropertyValuesResponse -> String
(Int -> GetInterpolatedAssetPropertyValuesResponse -> ShowS)
-> (GetInterpolatedAssetPropertyValuesResponse -> String)
-> ([GetInterpolatedAssetPropertyValuesResponse] -> ShowS)
-> Show GetInterpolatedAssetPropertyValuesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetInterpolatedAssetPropertyValuesResponse] -> ShowS
$cshowList :: [GetInterpolatedAssetPropertyValuesResponse] -> ShowS
show :: GetInterpolatedAssetPropertyValuesResponse -> String
$cshow :: GetInterpolatedAssetPropertyValuesResponse -> String
showsPrec :: Int -> GetInterpolatedAssetPropertyValuesResponse -> ShowS
$cshowsPrec :: Int -> GetInterpolatedAssetPropertyValuesResponse -> ShowS
Prelude.Show, (forall x.
 GetInterpolatedAssetPropertyValuesResponse
 -> Rep GetInterpolatedAssetPropertyValuesResponse x)
-> (forall x.
    Rep GetInterpolatedAssetPropertyValuesResponse x
    -> GetInterpolatedAssetPropertyValuesResponse)
-> Generic GetInterpolatedAssetPropertyValuesResponse
forall x.
Rep GetInterpolatedAssetPropertyValuesResponse x
-> GetInterpolatedAssetPropertyValuesResponse
forall x.
GetInterpolatedAssetPropertyValuesResponse
-> Rep GetInterpolatedAssetPropertyValuesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetInterpolatedAssetPropertyValuesResponse x
-> GetInterpolatedAssetPropertyValuesResponse
$cfrom :: forall x.
GetInterpolatedAssetPropertyValuesResponse
-> Rep GetInterpolatedAssetPropertyValuesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetInterpolatedAssetPropertyValuesResponse' 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:
--
-- 'nextToken', 'getInterpolatedAssetPropertyValuesResponse_nextToken' - The token for the next set of results, or null if there are no
-- additional results.
--
-- 'httpStatus', 'getInterpolatedAssetPropertyValuesResponse_httpStatus' - The response's http status code.
--
-- 'interpolatedAssetPropertyValues', 'getInterpolatedAssetPropertyValuesResponse_interpolatedAssetPropertyValues' - The requested interpolated values.
newGetInterpolatedAssetPropertyValuesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetInterpolatedAssetPropertyValuesResponse
newGetInterpolatedAssetPropertyValuesResponse :: Int -> GetInterpolatedAssetPropertyValuesResponse
newGetInterpolatedAssetPropertyValuesResponse
  Int
pHttpStatus_ =
    GetInterpolatedAssetPropertyValuesResponse' :: Maybe Text
-> Int
-> [InterpolatedAssetPropertyValue]
-> GetInterpolatedAssetPropertyValuesResponse
GetInterpolatedAssetPropertyValuesResponse'
      { $sel:nextToken:GetInterpolatedAssetPropertyValuesResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetInterpolatedAssetPropertyValuesResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:interpolatedAssetPropertyValues:GetInterpolatedAssetPropertyValuesResponse' :: [InterpolatedAssetPropertyValue]
interpolatedAssetPropertyValues =
          [InterpolatedAssetPropertyValue]
forall a. Monoid a => a
Prelude.mempty
      }

-- | The token for the next set of results, or null if there are no
-- additional results.
getInterpolatedAssetPropertyValuesResponse_nextToken :: Lens.Lens' GetInterpolatedAssetPropertyValuesResponse (Prelude.Maybe Prelude.Text)
getInterpolatedAssetPropertyValuesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetInterpolatedAssetPropertyValuesResponse
-> f GetInterpolatedAssetPropertyValuesResponse
getInterpolatedAssetPropertyValuesResponse_nextToken = (GetInterpolatedAssetPropertyValuesResponse -> Maybe Text)
-> (GetInterpolatedAssetPropertyValuesResponse
    -> Maybe Text -> GetInterpolatedAssetPropertyValuesResponse)
-> Lens' GetInterpolatedAssetPropertyValuesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValuesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetInterpolatedAssetPropertyValuesResponse' :: GetInterpolatedAssetPropertyValuesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetInterpolatedAssetPropertyValuesResponse
s@GetInterpolatedAssetPropertyValuesResponse' {} Maybe Text
a -> GetInterpolatedAssetPropertyValuesResponse
s {$sel:nextToken:GetInterpolatedAssetPropertyValuesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetInterpolatedAssetPropertyValuesResponse)

-- | The response's http status code.
getInterpolatedAssetPropertyValuesResponse_httpStatus :: Lens.Lens' GetInterpolatedAssetPropertyValuesResponse Prelude.Int
getInterpolatedAssetPropertyValuesResponse_httpStatus :: (Int -> f Int)
-> GetInterpolatedAssetPropertyValuesResponse
-> f GetInterpolatedAssetPropertyValuesResponse
getInterpolatedAssetPropertyValuesResponse_httpStatus = (GetInterpolatedAssetPropertyValuesResponse -> Int)
-> (GetInterpolatedAssetPropertyValuesResponse
    -> Int -> GetInterpolatedAssetPropertyValuesResponse)
-> Lens
     GetInterpolatedAssetPropertyValuesResponse
     GetInterpolatedAssetPropertyValuesResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValuesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetInterpolatedAssetPropertyValuesResponse' :: GetInterpolatedAssetPropertyValuesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetInterpolatedAssetPropertyValuesResponse
s@GetInterpolatedAssetPropertyValuesResponse' {} Int
a -> GetInterpolatedAssetPropertyValuesResponse
s {$sel:httpStatus:GetInterpolatedAssetPropertyValuesResponse' :: Int
httpStatus = Int
a} :: GetInterpolatedAssetPropertyValuesResponse)

-- | The requested interpolated values.
getInterpolatedAssetPropertyValuesResponse_interpolatedAssetPropertyValues :: Lens.Lens' GetInterpolatedAssetPropertyValuesResponse [InterpolatedAssetPropertyValue]
getInterpolatedAssetPropertyValuesResponse_interpolatedAssetPropertyValues :: ([InterpolatedAssetPropertyValue]
 -> f [InterpolatedAssetPropertyValue])
-> GetInterpolatedAssetPropertyValuesResponse
-> f GetInterpolatedAssetPropertyValuesResponse
getInterpolatedAssetPropertyValuesResponse_interpolatedAssetPropertyValues = (GetInterpolatedAssetPropertyValuesResponse
 -> [InterpolatedAssetPropertyValue])
-> (GetInterpolatedAssetPropertyValuesResponse
    -> [InterpolatedAssetPropertyValue]
    -> GetInterpolatedAssetPropertyValuesResponse)
-> Lens'
     GetInterpolatedAssetPropertyValuesResponse
     [InterpolatedAssetPropertyValue]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInterpolatedAssetPropertyValuesResponse' {[InterpolatedAssetPropertyValue]
interpolatedAssetPropertyValues :: [InterpolatedAssetPropertyValue]
$sel:interpolatedAssetPropertyValues:GetInterpolatedAssetPropertyValuesResponse' :: GetInterpolatedAssetPropertyValuesResponse
-> [InterpolatedAssetPropertyValue]
interpolatedAssetPropertyValues} -> [InterpolatedAssetPropertyValue]
interpolatedAssetPropertyValues) (\s :: GetInterpolatedAssetPropertyValuesResponse
s@GetInterpolatedAssetPropertyValuesResponse' {} [InterpolatedAssetPropertyValue]
a -> GetInterpolatedAssetPropertyValuesResponse
s {$sel:interpolatedAssetPropertyValues:GetInterpolatedAssetPropertyValuesResponse' :: [InterpolatedAssetPropertyValue]
interpolatedAssetPropertyValues = [InterpolatedAssetPropertyValue]
a} :: GetInterpolatedAssetPropertyValuesResponse) (([InterpolatedAssetPropertyValue]
  -> f [InterpolatedAssetPropertyValue])
 -> GetInterpolatedAssetPropertyValuesResponse
 -> f GetInterpolatedAssetPropertyValuesResponse)
-> (([InterpolatedAssetPropertyValue]
     -> f [InterpolatedAssetPropertyValue])
    -> [InterpolatedAssetPropertyValue]
    -> f [InterpolatedAssetPropertyValue])
-> ([InterpolatedAssetPropertyValue]
    -> f [InterpolatedAssetPropertyValue])
-> GetInterpolatedAssetPropertyValuesResponse
-> f GetInterpolatedAssetPropertyValuesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([InterpolatedAssetPropertyValue]
 -> f [InterpolatedAssetPropertyValue])
-> [InterpolatedAssetPropertyValue]
-> f [InterpolatedAssetPropertyValue]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    GetInterpolatedAssetPropertyValuesResponse