{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Panorama.DescribeDeviceJob
(
DescribeDeviceJob (..),
newDescribeDeviceJob,
describeDeviceJob_jobId,
DescribeDeviceJobResponse (..),
newDescribeDeviceJobResponse,
describeDeviceJobResponse_status,
describeDeviceJobResponse_jobId,
describeDeviceJobResponse_createdTime,
describeDeviceJobResponse_deviceArn,
describeDeviceJobResponse_imageVersion,
describeDeviceJobResponse_deviceName,
describeDeviceJobResponse_deviceId,
describeDeviceJobResponse_deviceType,
describeDeviceJobResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Panorama.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeDeviceJob = DescribeDeviceJob'
{
DescribeDeviceJob -> Text
jobId :: Prelude.Text
}
deriving (DescribeDeviceJob -> DescribeDeviceJob -> Bool
(DescribeDeviceJob -> DescribeDeviceJob -> Bool)
-> (DescribeDeviceJob -> DescribeDeviceJob -> Bool)
-> Eq DescribeDeviceJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDeviceJob -> DescribeDeviceJob -> Bool
$c/= :: DescribeDeviceJob -> DescribeDeviceJob -> Bool
== :: DescribeDeviceJob -> DescribeDeviceJob -> Bool
$c== :: DescribeDeviceJob -> DescribeDeviceJob -> Bool
Prelude.Eq, ReadPrec [DescribeDeviceJob]
ReadPrec DescribeDeviceJob
Int -> ReadS DescribeDeviceJob
ReadS [DescribeDeviceJob]
(Int -> ReadS DescribeDeviceJob)
-> ReadS [DescribeDeviceJob]
-> ReadPrec DescribeDeviceJob
-> ReadPrec [DescribeDeviceJob]
-> Read DescribeDeviceJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDeviceJob]
$creadListPrec :: ReadPrec [DescribeDeviceJob]
readPrec :: ReadPrec DescribeDeviceJob
$creadPrec :: ReadPrec DescribeDeviceJob
readList :: ReadS [DescribeDeviceJob]
$creadList :: ReadS [DescribeDeviceJob]
readsPrec :: Int -> ReadS DescribeDeviceJob
$creadsPrec :: Int -> ReadS DescribeDeviceJob
Prelude.Read, Int -> DescribeDeviceJob -> ShowS
[DescribeDeviceJob] -> ShowS
DescribeDeviceJob -> String
(Int -> DescribeDeviceJob -> ShowS)
-> (DescribeDeviceJob -> String)
-> ([DescribeDeviceJob] -> ShowS)
-> Show DescribeDeviceJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDeviceJob] -> ShowS
$cshowList :: [DescribeDeviceJob] -> ShowS
show :: DescribeDeviceJob -> String
$cshow :: DescribeDeviceJob -> String
showsPrec :: Int -> DescribeDeviceJob -> ShowS
$cshowsPrec :: Int -> DescribeDeviceJob -> ShowS
Prelude.Show, (forall x. DescribeDeviceJob -> Rep DescribeDeviceJob x)
-> (forall x. Rep DescribeDeviceJob x -> DescribeDeviceJob)
-> Generic DescribeDeviceJob
forall x. Rep DescribeDeviceJob x -> DescribeDeviceJob
forall x. DescribeDeviceJob -> Rep DescribeDeviceJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDeviceJob x -> DescribeDeviceJob
$cfrom :: forall x. DescribeDeviceJob -> Rep DescribeDeviceJob x
Prelude.Generic)
newDescribeDeviceJob ::
Prelude.Text ->
DescribeDeviceJob
newDescribeDeviceJob :: Text -> DescribeDeviceJob
newDescribeDeviceJob Text
pJobId_ =
DescribeDeviceJob' :: Text -> DescribeDeviceJob
DescribeDeviceJob' {$sel:jobId:DescribeDeviceJob' :: Text
jobId = Text
pJobId_}
describeDeviceJob_jobId :: Lens.Lens' DescribeDeviceJob Prelude.Text
describeDeviceJob_jobId :: (Text -> f Text) -> DescribeDeviceJob -> f DescribeDeviceJob
describeDeviceJob_jobId = (DescribeDeviceJob -> Text)
-> (DescribeDeviceJob -> Text -> DescribeDeviceJob)
-> Lens DescribeDeviceJob DescribeDeviceJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJob' {Text
jobId :: Text
$sel:jobId:DescribeDeviceJob' :: DescribeDeviceJob -> Text
jobId} -> Text
jobId) (\s :: DescribeDeviceJob
s@DescribeDeviceJob' {} Text
a -> DescribeDeviceJob
s {$sel:jobId:DescribeDeviceJob' :: Text
jobId = Text
a} :: DescribeDeviceJob)
instance Core.AWSRequest DescribeDeviceJob where
type
AWSResponse DescribeDeviceJob =
DescribeDeviceJobResponse
request :: DescribeDeviceJob -> Request DescribeDeviceJob
request = Service -> DescribeDeviceJob -> Request DescribeDeviceJob
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDeviceJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDeviceJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeDeviceJob))
-> Logger
-> Service
-> Proxy DescribeDeviceJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDeviceJob)))
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 UpdateProgress
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse
DescribeDeviceJobResponse'
(Maybe UpdateProgress
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
-> Either String (Maybe UpdateProgress)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe UpdateProgress)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"JobId")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DeviceArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ImageVersion")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe DeviceType -> Int -> DescribeDeviceJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DeviceName")
Either
String
(Maybe Text
-> Maybe DeviceType -> Int -> DescribeDeviceJobResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe DeviceType -> Int -> DescribeDeviceJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DeviceId")
Either
String (Maybe DeviceType -> Int -> DescribeDeviceJobResponse)
-> Either String (Maybe DeviceType)
-> Either String (Int -> DescribeDeviceJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DeviceType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DeviceType")
Either String (Int -> DescribeDeviceJobResponse)
-> Either String Int -> Either String DescribeDeviceJobResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeDeviceJob
instance Prelude.NFData DescribeDeviceJob
instance Core.ToHeaders DescribeDeviceJob where
toHeaders :: DescribeDeviceJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeDeviceJob -> 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 DescribeDeviceJob where
toPath :: DescribeDeviceJob -> ByteString
toPath DescribeDeviceJob' {Text
jobId :: Text
$sel:jobId:DescribeDeviceJob' :: DescribeDeviceJob -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/jobs/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
jobId]
instance Core.ToQuery DescribeDeviceJob where
toQuery :: DescribeDeviceJob -> QueryString
toQuery = QueryString -> DescribeDeviceJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeDeviceJobResponse = DescribeDeviceJobResponse'
{
DescribeDeviceJobResponse -> Maybe UpdateProgress
status :: Prelude.Maybe UpdateProgress,
DescribeDeviceJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
DescribeDeviceJobResponse -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
DescribeDeviceJobResponse -> Maybe Text
deviceArn :: Prelude.Maybe Prelude.Text,
DescribeDeviceJobResponse -> Maybe Text
imageVersion :: Prelude.Maybe Prelude.Text,
DescribeDeviceJobResponse -> Maybe Text
deviceName :: Prelude.Maybe Prelude.Text,
DescribeDeviceJobResponse -> Maybe Text
deviceId :: Prelude.Maybe Prelude.Text,
DescribeDeviceJobResponse -> Maybe DeviceType
deviceType :: Prelude.Maybe DeviceType,
DescribeDeviceJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDeviceJobResponse -> DescribeDeviceJobResponse -> Bool
(DescribeDeviceJobResponse -> DescribeDeviceJobResponse -> Bool)
-> (DescribeDeviceJobResponse -> DescribeDeviceJobResponse -> Bool)
-> Eq DescribeDeviceJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDeviceJobResponse -> DescribeDeviceJobResponse -> Bool
$c/= :: DescribeDeviceJobResponse -> DescribeDeviceJobResponse -> Bool
== :: DescribeDeviceJobResponse -> DescribeDeviceJobResponse -> Bool
$c== :: DescribeDeviceJobResponse -> DescribeDeviceJobResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDeviceJobResponse]
ReadPrec DescribeDeviceJobResponse
Int -> ReadS DescribeDeviceJobResponse
ReadS [DescribeDeviceJobResponse]
(Int -> ReadS DescribeDeviceJobResponse)
-> ReadS [DescribeDeviceJobResponse]
-> ReadPrec DescribeDeviceJobResponse
-> ReadPrec [DescribeDeviceJobResponse]
-> Read DescribeDeviceJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDeviceJobResponse]
$creadListPrec :: ReadPrec [DescribeDeviceJobResponse]
readPrec :: ReadPrec DescribeDeviceJobResponse
$creadPrec :: ReadPrec DescribeDeviceJobResponse
readList :: ReadS [DescribeDeviceJobResponse]
$creadList :: ReadS [DescribeDeviceJobResponse]
readsPrec :: Int -> ReadS DescribeDeviceJobResponse
$creadsPrec :: Int -> ReadS DescribeDeviceJobResponse
Prelude.Read, Int -> DescribeDeviceJobResponse -> ShowS
[DescribeDeviceJobResponse] -> ShowS
DescribeDeviceJobResponse -> String
(Int -> DescribeDeviceJobResponse -> ShowS)
-> (DescribeDeviceJobResponse -> String)
-> ([DescribeDeviceJobResponse] -> ShowS)
-> Show DescribeDeviceJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDeviceJobResponse] -> ShowS
$cshowList :: [DescribeDeviceJobResponse] -> ShowS
show :: DescribeDeviceJobResponse -> String
$cshow :: DescribeDeviceJobResponse -> String
showsPrec :: Int -> DescribeDeviceJobResponse -> ShowS
$cshowsPrec :: Int -> DescribeDeviceJobResponse -> ShowS
Prelude.Show, (forall x.
DescribeDeviceJobResponse -> Rep DescribeDeviceJobResponse x)
-> (forall x.
Rep DescribeDeviceJobResponse x -> DescribeDeviceJobResponse)
-> Generic DescribeDeviceJobResponse
forall x.
Rep DescribeDeviceJobResponse x -> DescribeDeviceJobResponse
forall x.
DescribeDeviceJobResponse -> Rep DescribeDeviceJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDeviceJobResponse x -> DescribeDeviceJobResponse
$cfrom :: forall x.
DescribeDeviceJobResponse -> Rep DescribeDeviceJobResponse x
Prelude.Generic)
newDescribeDeviceJobResponse ::
Prelude.Int ->
DescribeDeviceJobResponse
newDescribeDeviceJobResponse :: Int -> DescribeDeviceJobResponse
newDescribeDeviceJobResponse Int
pHttpStatus_ =
DescribeDeviceJobResponse' :: Maybe UpdateProgress
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DeviceType
-> Int
-> DescribeDeviceJobResponse
DescribeDeviceJobResponse'
{ $sel:status:DescribeDeviceJobResponse' :: Maybe UpdateProgress
status =
Maybe UpdateProgress
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:DescribeDeviceJobResponse' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdTime:DescribeDeviceJobResponse' :: Maybe POSIX
createdTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:deviceArn:DescribeDeviceJobResponse' :: Maybe Text
deviceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:imageVersion:DescribeDeviceJobResponse' :: Maybe Text
imageVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceName:DescribeDeviceJobResponse' :: Maybe Text
deviceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceId:DescribeDeviceJobResponse' :: Maybe Text
deviceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deviceType:DescribeDeviceJobResponse' :: Maybe DeviceType
deviceType = Maybe DeviceType
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDeviceJobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDeviceJobResponse_status :: Lens.Lens' DescribeDeviceJobResponse (Prelude.Maybe UpdateProgress)
describeDeviceJobResponse_status :: (Maybe UpdateProgress -> f (Maybe UpdateProgress))
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse
describeDeviceJobResponse_status = (DescribeDeviceJobResponse -> Maybe UpdateProgress)
-> (DescribeDeviceJobResponse
-> Maybe UpdateProgress -> DescribeDeviceJobResponse)
-> Lens
DescribeDeviceJobResponse
DescribeDeviceJobResponse
(Maybe UpdateProgress)
(Maybe UpdateProgress)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJobResponse' {Maybe UpdateProgress
status :: Maybe UpdateProgress
$sel:status:DescribeDeviceJobResponse' :: DescribeDeviceJobResponse -> Maybe UpdateProgress
status} -> Maybe UpdateProgress
status) (\s :: DescribeDeviceJobResponse
s@DescribeDeviceJobResponse' {} Maybe UpdateProgress
a -> DescribeDeviceJobResponse
s {$sel:status:DescribeDeviceJobResponse' :: Maybe UpdateProgress
status = Maybe UpdateProgress
a} :: DescribeDeviceJobResponse)
describeDeviceJobResponse_jobId :: Lens.Lens' DescribeDeviceJobResponse (Prelude.Maybe Prelude.Text)
describeDeviceJobResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse
describeDeviceJobResponse_jobId = (DescribeDeviceJobResponse -> Maybe Text)
-> (DescribeDeviceJobResponse
-> Maybe Text -> DescribeDeviceJobResponse)
-> Lens
DescribeDeviceJobResponse
DescribeDeviceJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:DescribeDeviceJobResponse' :: DescribeDeviceJobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: DescribeDeviceJobResponse
s@DescribeDeviceJobResponse' {} Maybe Text
a -> DescribeDeviceJobResponse
s {$sel:jobId:DescribeDeviceJobResponse' :: Maybe Text
jobId = Maybe Text
a} :: DescribeDeviceJobResponse)
describeDeviceJobResponse_createdTime :: Lens.Lens' DescribeDeviceJobResponse (Prelude.Maybe Prelude.UTCTime)
describeDeviceJobResponse_createdTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse
describeDeviceJobResponse_createdTime = (DescribeDeviceJobResponse -> Maybe POSIX)
-> (DescribeDeviceJobResponse
-> Maybe POSIX -> DescribeDeviceJobResponse)
-> Lens
DescribeDeviceJobResponse
DescribeDeviceJobResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJobResponse' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:DescribeDeviceJobResponse' :: DescribeDeviceJobResponse -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: DescribeDeviceJobResponse
s@DescribeDeviceJobResponse' {} Maybe POSIX
a -> DescribeDeviceJobResponse
s {$sel:createdTime:DescribeDeviceJobResponse' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: DescribeDeviceJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDeviceJobResponse
-> f DescribeDeviceJobResponse
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
describeDeviceJobResponse_deviceArn :: Lens.Lens' DescribeDeviceJobResponse (Prelude.Maybe Prelude.Text)
describeDeviceJobResponse_deviceArn :: (Maybe Text -> f (Maybe Text))
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse
describeDeviceJobResponse_deviceArn = (DescribeDeviceJobResponse -> Maybe Text)
-> (DescribeDeviceJobResponse
-> Maybe Text -> DescribeDeviceJobResponse)
-> Lens
DescribeDeviceJobResponse
DescribeDeviceJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJobResponse' {Maybe Text
deviceArn :: Maybe Text
$sel:deviceArn:DescribeDeviceJobResponse' :: DescribeDeviceJobResponse -> Maybe Text
deviceArn} -> Maybe Text
deviceArn) (\s :: DescribeDeviceJobResponse
s@DescribeDeviceJobResponse' {} Maybe Text
a -> DescribeDeviceJobResponse
s {$sel:deviceArn:DescribeDeviceJobResponse' :: Maybe Text
deviceArn = Maybe Text
a} :: DescribeDeviceJobResponse)
describeDeviceJobResponse_imageVersion :: Lens.Lens' DescribeDeviceJobResponse (Prelude.Maybe Prelude.Text)
describeDeviceJobResponse_imageVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse
describeDeviceJobResponse_imageVersion = (DescribeDeviceJobResponse -> Maybe Text)
-> (DescribeDeviceJobResponse
-> Maybe Text -> DescribeDeviceJobResponse)
-> Lens
DescribeDeviceJobResponse
DescribeDeviceJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJobResponse' {Maybe Text
imageVersion :: Maybe Text
$sel:imageVersion:DescribeDeviceJobResponse' :: DescribeDeviceJobResponse -> Maybe Text
imageVersion} -> Maybe Text
imageVersion) (\s :: DescribeDeviceJobResponse
s@DescribeDeviceJobResponse' {} Maybe Text
a -> DescribeDeviceJobResponse
s {$sel:imageVersion:DescribeDeviceJobResponse' :: Maybe Text
imageVersion = Maybe Text
a} :: DescribeDeviceJobResponse)
describeDeviceJobResponse_deviceName :: Lens.Lens' DescribeDeviceJobResponse (Prelude.Maybe Prelude.Text)
describeDeviceJobResponse_deviceName :: (Maybe Text -> f (Maybe Text))
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse
describeDeviceJobResponse_deviceName = (DescribeDeviceJobResponse -> Maybe Text)
-> (DescribeDeviceJobResponse
-> Maybe Text -> DescribeDeviceJobResponse)
-> Lens
DescribeDeviceJobResponse
DescribeDeviceJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJobResponse' {Maybe Text
deviceName :: Maybe Text
$sel:deviceName:DescribeDeviceJobResponse' :: DescribeDeviceJobResponse -> Maybe Text
deviceName} -> Maybe Text
deviceName) (\s :: DescribeDeviceJobResponse
s@DescribeDeviceJobResponse' {} Maybe Text
a -> DescribeDeviceJobResponse
s {$sel:deviceName:DescribeDeviceJobResponse' :: Maybe Text
deviceName = Maybe Text
a} :: DescribeDeviceJobResponse)
describeDeviceJobResponse_deviceId :: Lens.Lens' DescribeDeviceJobResponse (Prelude.Maybe Prelude.Text)
describeDeviceJobResponse_deviceId :: (Maybe Text -> f (Maybe Text))
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse
describeDeviceJobResponse_deviceId = (DescribeDeviceJobResponse -> Maybe Text)
-> (DescribeDeviceJobResponse
-> Maybe Text -> DescribeDeviceJobResponse)
-> Lens
DescribeDeviceJobResponse
DescribeDeviceJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJobResponse' {Maybe Text
deviceId :: Maybe Text
$sel:deviceId:DescribeDeviceJobResponse' :: DescribeDeviceJobResponse -> Maybe Text
deviceId} -> Maybe Text
deviceId) (\s :: DescribeDeviceJobResponse
s@DescribeDeviceJobResponse' {} Maybe Text
a -> DescribeDeviceJobResponse
s {$sel:deviceId:DescribeDeviceJobResponse' :: Maybe Text
deviceId = Maybe Text
a} :: DescribeDeviceJobResponse)
describeDeviceJobResponse_deviceType :: Lens.Lens' DescribeDeviceJobResponse (Prelude.Maybe DeviceType)
describeDeviceJobResponse_deviceType :: (Maybe DeviceType -> f (Maybe DeviceType))
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse
describeDeviceJobResponse_deviceType = (DescribeDeviceJobResponse -> Maybe DeviceType)
-> (DescribeDeviceJobResponse
-> Maybe DeviceType -> DescribeDeviceJobResponse)
-> Lens
DescribeDeviceJobResponse
DescribeDeviceJobResponse
(Maybe DeviceType)
(Maybe DeviceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJobResponse' {Maybe DeviceType
deviceType :: Maybe DeviceType
$sel:deviceType:DescribeDeviceJobResponse' :: DescribeDeviceJobResponse -> Maybe DeviceType
deviceType} -> Maybe DeviceType
deviceType) (\s :: DescribeDeviceJobResponse
s@DescribeDeviceJobResponse' {} Maybe DeviceType
a -> DescribeDeviceJobResponse
s {$sel:deviceType:DescribeDeviceJobResponse' :: Maybe DeviceType
deviceType = Maybe DeviceType
a} :: DescribeDeviceJobResponse)
describeDeviceJobResponse_httpStatus :: Lens.Lens' DescribeDeviceJobResponse Prelude.Int
describeDeviceJobResponse_httpStatus :: (Int -> f Int)
-> DescribeDeviceJobResponse -> f DescribeDeviceJobResponse
describeDeviceJobResponse_httpStatus = (DescribeDeviceJobResponse -> Int)
-> (DescribeDeviceJobResponse -> Int -> DescribeDeviceJobResponse)
-> Lens DescribeDeviceJobResponse DescribeDeviceJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeviceJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDeviceJobResponse' :: DescribeDeviceJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDeviceJobResponse
s@DescribeDeviceJobResponse' {} Int
a -> DescribeDeviceJobResponse
s {$sel:httpStatus:DescribeDeviceJobResponse' :: Int
httpStatus = Int
a} :: DescribeDeviceJobResponse)
instance Prelude.NFData DescribeDeviceJobResponse