{-# 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.MediaLive.DescribeInputDeviceThumbnail
-- 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 the latest thumbnail data for the input device.
module Amazonka.MediaLive.DescribeInputDeviceThumbnail
  ( -- * Creating a Request
    DescribeInputDeviceThumbnail (..),
    newDescribeInputDeviceThumbnail,

    -- * Request Lenses
    describeInputDeviceThumbnail_inputDeviceId,
    describeInputDeviceThumbnail_accept,

    -- * Destructuring the Response
    DescribeInputDeviceThumbnailResponse (..),
    newDescribeInputDeviceThumbnailResponse,

    -- * Response Lenses
    describeInputDeviceThumbnailResponse_eTag,
    describeInputDeviceThumbnailResponse_contentLength,
    describeInputDeviceThumbnailResponse_lastModified,
    describeInputDeviceThumbnailResponse_contentType,
    describeInputDeviceThumbnailResponse_httpStatus,
    describeInputDeviceThumbnailResponse_body,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Placeholder documentation for DescribeInputDeviceThumbnailRequest
--
-- /See:/ 'newDescribeInputDeviceThumbnail' smart constructor.
data DescribeInputDeviceThumbnail = DescribeInputDeviceThumbnail'
  { -- | The unique ID of this input device. For example, hd-123456789abcdef.
    DescribeInputDeviceThumbnail -> Text
inputDeviceId :: Prelude.Text,
    -- | The HTTP Accept header. Indicates the requested type for the thumbnail.
    DescribeInputDeviceThumbnail -> AcceptHeader
accept :: AcceptHeader
  }
  deriving (DescribeInputDeviceThumbnail
-> DescribeInputDeviceThumbnail -> Bool
(DescribeInputDeviceThumbnail
 -> DescribeInputDeviceThumbnail -> Bool)
-> (DescribeInputDeviceThumbnail
    -> DescribeInputDeviceThumbnail -> Bool)
-> Eq DescribeInputDeviceThumbnail
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeInputDeviceThumbnail
-> DescribeInputDeviceThumbnail -> Bool
$c/= :: DescribeInputDeviceThumbnail
-> DescribeInputDeviceThumbnail -> Bool
== :: DescribeInputDeviceThumbnail
-> DescribeInputDeviceThumbnail -> Bool
$c== :: DescribeInputDeviceThumbnail
-> DescribeInputDeviceThumbnail -> Bool
Prelude.Eq, ReadPrec [DescribeInputDeviceThumbnail]
ReadPrec DescribeInputDeviceThumbnail
Int -> ReadS DescribeInputDeviceThumbnail
ReadS [DescribeInputDeviceThumbnail]
(Int -> ReadS DescribeInputDeviceThumbnail)
-> ReadS [DescribeInputDeviceThumbnail]
-> ReadPrec DescribeInputDeviceThumbnail
-> ReadPrec [DescribeInputDeviceThumbnail]
-> Read DescribeInputDeviceThumbnail
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeInputDeviceThumbnail]
$creadListPrec :: ReadPrec [DescribeInputDeviceThumbnail]
readPrec :: ReadPrec DescribeInputDeviceThumbnail
$creadPrec :: ReadPrec DescribeInputDeviceThumbnail
readList :: ReadS [DescribeInputDeviceThumbnail]
$creadList :: ReadS [DescribeInputDeviceThumbnail]
readsPrec :: Int -> ReadS DescribeInputDeviceThumbnail
$creadsPrec :: Int -> ReadS DescribeInputDeviceThumbnail
Prelude.Read, Int -> DescribeInputDeviceThumbnail -> ShowS
[DescribeInputDeviceThumbnail] -> ShowS
DescribeInputDeviceThumbnail -> String
(Int -> DescribeInputDeviceThumbnail -> ShowS)
-> (DescribeInputDeviceThumbnail -> String)
-> ([DescribeInputDeviceThumbnail] -> ShowS)
-> Show DescribeInputDeviceThumbnail
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeInputDeviceThumbnail] -> ShowS
$cshowList :: [DescribeInputDeviceThumbnail] -> ShowS
show :: DescribeInputDeviceThumbnail -> String
$cshow :: DescribeInputDeviceThumbnail -> String
showsPrec :: Int -> DescribeInputDeviceThumbnail -> ShowS
$cshowsPrec :: Int -> DescribeInputDeviceThumbnail -> ShowS
Prelude.Show, (forall x.
 DescribeInputDeviceThumbnail -> Rep DescribeInputDeviceThumbnail x)
-> (forall x.
    Rep DescribeInputDeviceThumbnail x -> DescribeInputDeviceThumbnail)
-> Generic DescribeInputDeviceThumbnail
forall x.
Rep DescribeInputDeviceThumbnail x -> DescribeInputDeviceThumbnail
forall x.
DescribeInputDeviceThumbnail -> Rep DescribeInputDeviceThumbnail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeInputDeviceThumbnail x -> DescribeInputDeviceThumbnail
$cfrom :: forall x.
DescribeInputDeviceThumbnail -> Rep DescribeInputDeviceThumbnail x
Prelude.Generic)

-- |
-- Create a value of 'DescribeInputDeviceThumbnail' 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:
--
-- 'inputDeviceId', 'describeInputDeviceThumbnail_inputDeviceId' - The unique ID of this input device. For example, hd-123456789abcdef.
--
-- 'accept', 'describeInputDeviceThumbnail_accept' - The HTTP Accept header. Indicates the requested type for the thumbnail.
newDescribeInputDeviceThumbnail ::
  -- | 'inputDeviceId'
  Prelude.Text ->
  -- | 'accept'
  AcceptHeader ->
  DescribeInputDeviceThumbnail
newDescribeInputDeviceThumbnail :: Text -> AcceptHeader -> DescribeInputDeviceThumbnail
newDescribeInputDeviceThumbnail
  Text
pInputDeviceId_
  AcceptHeader
pAccept_ =
    DescribeInputDeviceThumbnail' :: Text -> AcceptHeader -> DescribeInputDeviceThumbnail
DescribeInputDeviceThumbnail'
      { $sel:inputDeviceId:DescribeInputDeviceThumbnail' :: Text
inputDeviceId =
          Text
pInputDeviceId_,
        $sel:accept:DescribeInputDeviceThumbnail' :: AcceptHeader
accept = AcceptHeader
pAccept_
      }

-- | The unique ID of this input device. For example, hd-123456789abcdef.
describeInputDeviceThumbnail_inputDeviceId :: Lens.Lens' DescribeInputDeviceThumbnail Prelude.Text
describeInputDeviceThumbnail_inputDeviceId :: (Text -> f Text)
-> DescribeInputDeviceThumbnail -> f DescribeInputDeviceThumbnail
describeInputDeviceThumbnail_inputDeviceId = (DescribeInputDeviceThumbnail -> Text)
-> (DescribeInputDeviceThumbnail
    -> Text -> DescribeInputDeviceThumbnail)
-> Lens
     DescribeInputDeviceThumbnail DescribeInputDeviceThumbnail Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceThumbnail' {Text
inputDeviceId :: Text
$sel:inputDeviceId:DescribeInputDeviceThumbnail' :: DescribeInputDeviceThumbnail -> Text
inputDeviceId} -> Text
inputDeviceId) (\s :: DescribeInputDeviceThumbnail
s@DescribeInputDeviceThumbnail' {} Text
a -> DescribeInputDeviceThumbnail
s {$sel:inputDeviceId:DescribeInputDeviceThumbnail' :: Text
inputDeviceId = Text
a} :: DescribeInputDeviceThumbnail)

-- | The HTTP Accept header. Indicates the requested type for the thumbnail.
describeInputDeviceThumbnail_accept :: Lens.Lens' DescribeInputDeviceThumbnail AcceptHeader
describeInputDeviceThumbnail_accept :: (AcceptHeader -> f AcceptHeader)
-> DescribeInputDeviceThumbnail -> f DescribeInputDeviceThumbnail
describeInputDeviceThumbnail_accept = (DescribeInputDeviceThumbnail -> AcceptHeader)
-> (DescribeInputDeviceThumbnail
    -> AcceptHeader -> DescribeInputDeviceThumbnail)
-> Lens
     DescribeInputDeviceThumbnail
     DescribeInputDeviceThumbnail
     AcceptHeader
     AcceptHeader
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceThumbnail' {AcceptHeader
accept :: AcceptHeader
$sel:accept:DescribeInputDeviceThumbnail' :: DescribeInputDeviceThumbnail -> AcceptHeader
accept} -> AcceptHeader
accept) (\s :: DescribeInputDeviceThumbnail
s@DescribeInputDeviceThumbnail' {} AcceptHeader
a -> DescribeInputDeviceThumbnail
s {$sel:accept:DescribeInputDeviceThumbnail' :: AcceptHeader
accept = AcceptHeader
a} :: DescribeInputDeviceThumbnail)

instance Core.AWSRequest DescribeInputDeviceThumbnail where
  type
    AWSResponse DescribeInputDeviceThumbnail =
      DescribeInputDeviceThumbnailResponse
  request :: DescribeInputDeviceThumbnail
-> Request DescribeInputDeviceThumbnail
request = Service
-> DescribeInputDeviceThumbnail
-> Request DescribeInputDeviceThumbnail
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeInputDeviceThumbnail
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeInputDeviceThumbnail)))
response =
    (Int
 -> ResponseHeaders
 -> ResponseBody
 -> Either String (AWSResponse DescribeInputDeviceThumbnail))
-> Logger
-> Service
-> Proxy DescribeInputDeviceThumbnail
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeInputDeviceThumbnail)))
forall (m :: * -> *) a.
MonadResource m =>
(Int
 -> ResponseHeaders
 -> ResponseBody
 -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveBody
      ( \Int
s ResponseHeaders
h ResponseBody
x ->
          Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe ContentType
-> Int
-> ResponseBody
-> DescribeInputDeviceThumbnailResponse
DescribeInputDeviceThumbnailResponse'
            (Maybe Text
 -> Maybe Integer
 -> Maybe POSIX
 -> Maybe ContentType
 -> Int
 -> ResponseBody
 -> DescribeInputDeviceThumbnailResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Integer
      -> Maybe POSIX
      -> Maybe ContentType
      -> Int
      -> ResponseBody
      -> DescribeInputDeviceThumbnailResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"ETag")
            Either
  String
  (Maybe Integer
   -> Maybe POSIX
   -> Maybe ContentType
   -> Int
   -> ResponseBody
   -> DescribeInputDeviceThumbnailResponse)
-> Either String (Maybe Integer)
-> Either
     String
     (Maybe POSIX
      -> Maybe ContentType
      -> Int
      -> ResponseBody
      -> DescribeInputDeviceThumbnailResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Integer)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"Content-Length")
            Either
  String
  (Maybe POSIX
   -> Maybe ContentType
   -> Int
   -> ResponseBody
   -> DescribeInputDeviceThumbnailResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe ContentType
      -> Int -> ResponseBody -> DescribeInputDeviceThumbnailResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe POSIX)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"Last-Modified")
            Either
  String
  (Maybe ContentType
   -> Int -> ResponseBody -> DescribeInputDeviceThumbnailResponse)
-> Either String (Maybe ContentType)
-> Either
     String
     (Int -> ResponseBody -> DescribeInputDeviceThumbnailResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe ContentType)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"Content-Type")
            Either
  String
  (Int -> ResponseBody -> DescribeInputDeviceThumbnailResponse)
-> Either String Int
-> Either
     String (ResponseBody -> DescribeInputDeviceThumbnailResponse)
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 (ResponseBody -> DescribeInputDeviceThumbnailResponse)
-> Either String ResponseBody
-> Either String DescribeInputDeviceThumbnailResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseBody -> Either String ResponseBody
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure ResponseBody
x)
      )

instance
  Prelude.Hashable
    DescribeInputDeviceThumbnail

instance Prelude.NFData DescribeInputDeviceThumbnail

instance Core.ToHeaders DescribeInputDeviceThumbnail where
  toHeaders :: DescribeInputDeviceThumbnail -> ResponseHeaders
toHeaders DescribeInputDeviceThumbnail' {Text
AcceptHeader
accept :: AcceptHeader
inputDeviceId :: Text
$sel:accept:DescribeInputDeviceThumbnail' :: DescribeInputDeviceThumbnail -> AcceptHeader
$sel:inputDeviceId:DescribeInputDeviceThumbnail' :: DescribeInputDeviceThumbnail -> Text
..} =
    [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ HeaderName
"accept" HeaderName -> AcceptHeader -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# AcceptHeader
accept,
        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 DescribeInputDeviceThumbnail where
  toPath :: DescribeInputDeviceThumbnail -> ByteString
toPath DescribeInputDeviceThumbnail' {Text
AcceptHeader
accept :: AcceptHeader
inputDeviceId :: Text
$sel:accept:DescribeInputDeviceThumbnail' :: DescribeInputDeviceThumbnail -> AcceptHeader
$sel:inputDeviceId:DescribeInputDeviceThumbnail' :: DescribeInputDeviceThumbnail -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/prod/inputDevices/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
inputDeviceId,
        ByteString
"/thumbnailData"
      ]

instance Core.ToQuery DescribeInputDeviceThumbnail where
  toQuery :: DescribeInputDeviceThumbnail -> QueryString
toQuery = QueryString -> DescribeInputDeviceThumbnail -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | Placeholder documentation for DescribeInputDeviceThumbnailResponse
--
-- /See:/ 'newDescribeInputDeviceThumbnailResponse' smart constructor.
data DescribeInputDeviceThumbnailResponse = DescribeInputDeviceThumbnailResponse'
  { -- | The unique, cacheable version of this thumbnail.
    DescribeInputDeviceThumbnailResponse -> Maybe Text
eTag :: Prelude.Maybe Prelude.Text,
    -- | The length of the content.
    DescribeInputDeviceThumbnailResponse -> Maybe Integer
contentLength :: Prelude.Maybe Prelude.Integer,
    -- | The date and time the thumbnail was last updated at the device.
    DescribeInputDeviceThumbnailResponse -> Maybe POSIX
lastModified :: Prelude.Maybe Core.POSIX,
    -- | Specifies the media type of the thumbnail.
    DescribeInputDeviceThumbnailResponse -> Maybe ContentType
contentType :: Prelude.Maybe ContentType,
    -- | The response's http status code.
    DescribeInputDeviceThumbnailResponse -> Int
httpStatus :: Prelude.Int,
    -- | The binary data for the thumbnail that the Link device has most recently
    -- sent to MediaLive.
    DescribeInputDeviceThumbnailResponse -> ResponseBody
body :: Core.ResponseBody
  }
  deriving (Int -> DescribeInputDeviceThumbnailResponse -> ShowS
[DescribeInputDeviceThumbnailResponse] -> ShowS
DescribeInputDeviceThumbnailResponse -> String
(Int -> DescribeInputDeviceThumbnailResponse -> ShowS)
-> (DescribeInputDeviceThumbnailResponse -> String)
-> ([DescribeInputDeviceThumbnailResponse] -> ShowS)
-> Show DescribeInputDeviceThumbnailResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeInputDeviceThumbnailResponse] -> ShowS
$cshowList :: [DescribeInputDeviceThumbnailResponse] -> ShowS
show :: DescribeInputDeviceThumbnailResponse -> String
$cshow :: DescribeInputDeviceThumbnailResponse -> String
showsPrec :: Int -> DescribeInputDeviceThumbnailResponse -> ShowS
$cshowsPrec :: Int -> DescribeInputDeviceThumbnailResponse -> ShowS
Prelude.Show, (forall x.
 DescribeInputDeviceThumbnailResponse
 -> Rep DescribeInputDeviceThumbnailResponse x)
-> (forall x.
    Rep DescribeInputDeviceThumbnailResponse x
    -> DescribeInputDeviceThumbnailResponse)
-> Generic DescribeInputDeviceThumbnailResponse
forall x.
Rep DescribeInputDeviceThumbnailResponse x
-> DescribeInputDeviceThumbnailResponse
forall x.
DescribeInputDeviceThumbnailResponse
-> Rep DescribeInputDeviceThumbnailResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeInputDeviceThumbnailResponse x
-> DescribeInputDeviceThumbnailResponse
$cfrom :: forall x.
DescribeInputDeviceThumbnailResponse
-> Rep DescribeInputDeviceThumbnailResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeInputDeviceThumbnailResponse' 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:
--
-- 'eTag', 'describeInputDeviceThumbnailResponse_eTag' - The unique, cacheable version of this thumbnail.
--
-- 'contentLength', 'describeInputDeviceThumbnailResponse_contentLength' - The length of the content.
--
-- 'lastModified', 'describeInputDeviceThumbnailResponse_lastModified' - The date and time the thumbnail was last updated at the device.
--
-- 'contentType', 'describeInputDeviceThumbnailResponse_contentType' - Specifies the media type of the thumbnail.
--
-- 'httpStatus', 'describeInputDeviceThumbnailResponse_httpStatus' - The response's http status code.
--
-- 'body', 'describeInputDeviceThumbnailResponse_body' - The binary data for the thumbnail that the Link device has most recently
-- sent to MediaLive.
newDescribeInputDeviceThumbnailResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'body'
  Core.ResponseBody ->
  DescribeInputDeviceThumbnailResponse
newDescribeInputDeviceThumbnailResponse :: Int -> ResponseBody -> DescribeInputDeviceThumbnailResponse
newDescribeInputDeviceThumbnailResponse
  Int
pHttpStatus_
  ResponseBody
pBody_ =
    DescribeInputDeviceThumbnailResponse' :: Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe ContentType
-> Int
-> ResponseBody
-> DescribeInputDeviceThumbnailResponse
DescribeInputDeviceThumbnailResponse'
      { $sel:eTag:DescribeInputDeviceThumbnailResponse' :: Maybe Text
eTag =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:contentLength:DescribeInputDeviceThumbnailResponse' :: Maybe Integer
contentLength = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
        $sel:lastModified:DescribeInputDeviceThumbnailResponse' :: Maybe POSIX
lastModified = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:contentType:DescribeInputDeviceThumbnailResponse' :: Maybe ContentType
contentType = Maybe ContentType
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeInputDeviceThumbnailResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:body:DescribeInputDeviceThumbnailResponse' :: ResponseBody
body = ResponseBody
pBody_
      }

-- | The unique, cacheable version of this thumbnail.
describeInputDeviceThumbnailResponse_eTag :: Lens.Lens' DescribeInputDeviceThumbnailResponse (Prelude.Maybe Prelude.Text)
describeInputDeviceThumbnailResponse_eTag :: (Maybe Text -> f (Maybe Text))
-> DescribeInputDeviceThumbnailResponse
-> f DescribeInputDeviceThumbnailResponse
describeInputDeviceThumbnailResponse_eTag = (DescribeInputDeviceThumbnailResponse -> Maybe Text)
-> (DescribeInputDeviceThumbnailResponse
    -> Maybe Text -> DescribeInputDeviceThumbnailResponse)
-> Lens
     DescribeInputDeviceThumbnailResponse
     DescribeInputDeviceThumbnailResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceThumbnailResponse' {Maybe Text
eTag :: Maybe Text
$sel:eTag:DescribeInputDeviceThumbnailResponse' :: DescribeInputDeviceThumbnailResponse -> Maybe Text
eTag} -> Maybe Text
eTag) (\s :: DescribeInputDeviceThumbnailResponse
s@DescribeInputDeviceThumbnailResponse' {} Maybe Text
a -> DescribeInputDeviceThumbnailResponse
s {$sel:eTag:DescribeInputDeviceThumbnailResponse' :: Maybe Text
eTag = Maybe Text
a} :: DescribeInputDeviceThumbnailResponse)

-- | The length of the content.
describeInputDeviceThumbnailResponse_contentLength :: Lens.Lens' DescribeInputDeviceThumbnailResponse (Prelude.Maybe Prelude.Integer)
describeInputDeviceThumbnailResponse_contentLength :: (Maybe Integer -> f (Maybe Integer))
-> DescribeInputDeviceThumbnailResponse
-> f DescribeInputDeviceThumbnailResponse
describeInputDeviceThumbnailResponse_contentLength = (DescribeInputDeviceThumbnailResponse -> Maybe Integer)
-> (DescribeInputDeviceThumbnailResponse
    -> Maybe Integer -> DescribeInputDeviceThumbnailResponse)
-> Lens
     DescribeInputDeviceThumbnailResponse
     DescribeInputDeviceThumbnailResponse
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceThumbnailResponse' {Maybe Integer
contentLength :: Maybe Integer
$sel:contentLength:DescribeInputDeviceThumbnailResponse' :: DescribeInputDeviceThumbnailResponse -> Maybe Integer
contentLength} -> Maybe Integer
contentLength) (\s :: DescribeInputDeviceThumbnailResponse
s@DescribeInputDeviceThumbnailResponse' {} Maybe Integer
a -> DescribeInputDeviceThumbnailResponse
s {$sel:contentLength:DescribeInputDeviceThumbnailResponse' :: Maybe Integer
contentLength = Maybe Integer
a} :: DescribeInputDeviceThumbnailResponse)

-- | The date and time the thumbnail was last updated at the device.
describeInputDeviceThumbnailResponse_lastModified :: Lens.Lens' DescribeInputDeviceThumbnailResponse (Prelude.Maybe Prelude.UTCTime)
describeInputDeviceThumbnailResponse_lastModified :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeInputDeviceThumbnailResponse
-> f DescribeInputDeviceThumbnailResponse
describeInputDeviceThumbnailResponse_lastModified = (DescribeInputDeviceThumbnailResponse -> Maybe POSIX)
-> (DescribeInputDeviceThumbnailResponse
    -> Maybe POSIX -> DescribeInputDeviceThumbnailResponse)
-> Lens
     DescribeInputDeviceThumbnailResponse
     DescribeInputDeviceThumbnailResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceThumbnailResponse' {Maybe POSIX
lastModified :: Maybe POSIX
$sel:lastModified:DescribeInputDeviceThumbnailResponse' :: DescribeInputDeviceThumbnailResponse -> Maybe POSIX
lastModified} -> Maybe POSIX
lastModified) (\s :: DescribeInputDeviceThumbnailResponse
s@DescribeInputDeviceThumbnailResponse' {} Maybe POSIX
a -> DescribeInputDeviceThumbnailResponse
s {$sel:lastModified:DescribeInputDeviceThumbnailResponse' :: Maybe POSIX
lastModified = Maybe POSIX
a} :: DescribeInputDeviceThumbnailResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeInputDeviceThumbnailResponse
 -> f DescribeInputDeviceThumbnailResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeInputDeviceThumbnailResponse
-> f DescribeInputDeviceThumbnailResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Specifies the media type of the thumbnail.
describeInputDeviceThumbnailResponse_contentType :: Lens.Lens' DescribeInputDeviceThumbnailResponse (Prelude.Maybe ContentType)
describeInputDeviceThumbnailResponse_contentType :: (Maybe ContentType -> f (Maybe ContentType))
-> DescribeInputDeviceThumbnailResponse
-> f DescribeInputDeviceThumbnailResponse
describeInputDeviceThumbnailResponse_contentType = (DescribeInputDeviceThumbnailResponse -> Maybe ContentType)
-> (DescribeInputDeviceThumbnailResponse
    -> Maybe ContentType -> DescribeInputDeviceThumbnailResponse)
-> Lens
     DescribeInputDeviceThumbnailResponse
     DescribeInputDeviceThumbnailResponse
     (Maybe ContentType)
     (Maybe ContentType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceThumbnailResponse' {Maybe ContentType
contentType :: Maybe ContentType
$sel:contentType:DescribeInputDeviceThumbnailResponse' :: DescribeInputDeviceThumbnailResponse -> Maybe ContentType
contentType} -> Maybe ContentType
contentType) (\s :: DescribeInputDeviceThumbnailResponse
s@DescribeInputDeviceThumbnailResponse' {} Maybe ContentType
a -> DescribeInputDeviceThumbnailResponse
s {$sel:contentType:DescribeInputDeviceThumbnailResponse' :: Maybe ContentType
contentType = Maybe ContentType
a} :: DescribeInputDeviceThumbnailResponse)

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

-- | The binary data for the thumbnail that the Link device has most recently
-- sent to MediaLive.
describeInputDeviceThumbnailResponse_body :: Lens.Lens' DescribeInputDeviceThumbnailResponse Core.ResponseBody
describeInputDeviceThumbnailResponse_body :: (ResponseBody -> f ResponseBody)
-> DescribeInputDeviceThumbnailResponse
-> f DescribeInputDeviceThumbnailResponse
describeInputDeviceThumbnailResponse_body = (DescribeInputDeviceThumbnailResponse -> ResponseBody)
-> (DescribeInputDeviceThumbnailResponse
    -> ResponseBody -> DescribeInputDeviceThumbnailResponse)
-> Lens
     DescribeInputDeviceThumbnailResponse
     DescribeInputDeviceThumbnailResponse
     ResponseBody
     ResponseBody
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeInputDeviceThumbnailResponse' {ResponseBody
body :: ResponseBody
$sel:body:DescribeInputDeviceThumbnailResponse' :: DescribeInputDeviceThumbnailResponse -> ResponseBody
body} -> ResponseBody
body) (\s :: DescribeInputDeviceThumbnailResponse
s@DescribeInputDeviceThumbnailResponse' {} ResponseBody
a -> DescribeInputDeviceThumbnailResponse
s {$sel:body:DescribeInputDeviceThumbnailResponse' :: ResponseBody
body = ResponseBody
a} :: DescribeInputDeviceThumbnailResponse)