{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Rekognition.Types.Video where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Rekognition.Types.S3Object
data Video = Video'
{
Video -> Maybe S3Object
s3Object :: Prelude.Maybe S3Object
}
deriving (Video -> Video -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Video -> Video -> Bool
$c/= :: Video -> Video -> Bool
== :: Video -> Video -> Bool
$c== :: Video -> Video -> Bool
Prelude.Eq, ReadPrec [Video]
ReadPrec Video
Int -> ReadS Video
ReadS [Video]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Video]
$creadListPrec :: ReadPrec [Video]
readPrec :: ReadPrec Video
$creadPrec :: ReadPrec Video
readList :: ReadS [Video]
$creadList :: ReadS [Video]
readsPrec :: Int -> ReadS Video
$creadsPrec :: Int -> ReadS Video
Prelude.Read, Int -> Video -> ShowS
[Video] -> ShowS
Video -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Video] -> ShowS
$cshowList :: [Video] -> ShowS
show :: Video -> String
$cshow :: Video -> String
showsPrec :: Int -> Video -> ShowS
$cshowsPrec :: Int -> Video -> ShowS
Prelude.Show, forall x. Rep Video x -> Video
forall x. Video -> Rep Video x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Video x -> Video
$cfrom :: forall x. Video -> Rep Video x
Prelude.Generic)
newVideo ::
Video
newVideo :: Video
newVideo = Video' {$sel:s3Object:Video' :: Maybe S3Object
s3Object = forall a. Maybe a
Prelude.Nothing}
video_s3Object :: Lens.Lens' Video (Prelude.Maybe S3Object)
video_s3Object :: Lens' Video (Maybe S3Object)
video_s3Object = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Video' {Maybe S3Object
s3Object :: Maybe S3Object
$sel:s3Object:Video' :: Video -> Maybe S3Object
s3Object} -> Maybe S3Object
s3Object) (\s :: Video
s@Video' {} Maybe S3Object
a -> Video
s {$sel:s3Object:Video' :: Maybe S3Object
s3Object = Maybe S3Object
a} :: Video)
instance Prelude.Hashable Video where
hashWithSalt :: Int -> Video -> Int
hashWithSalt Int
_salt Video' {Maybe S3Object
s3Object :: Maybe S3Object
$sel:s3Object:Video' :: Video -> Maybe S3Object
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe S3Object
s3Object
instance Prelude.NFData Video where
rnf :: Video -> ()
rnf Video' {Maybe S3Object
s3Object :: Maybe S3Object
$sel:s3Object:Video' :: Video -> Maybe S3Object
..} = forall a. NFData a => a -> ()
Prelude.rnf Maybe S3Object
s3Object
instance Data.ToJSON Video where
toJSON :: Video -> Value
toJSON Video' {Maybe S3Object
s3Object :: Maybe S3Object
$sel:s3Object:Video' :: Video -> Maybe S3Object
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Key
"S3Object" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3Object
s3Object]
)