{-# 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.Omics.Types.ExportReadSet 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
data ExportReadSet = ExportReadSet'
{
ExportReadSet -> Text
readSetId :: Prelude.Text
}
deriving (ExportReadSet -> ExportReadSet -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportReadSet -> ExportReadSet -> Bool
$c/= :: ExportReadSet -> ExportReadSet -> Bool
== :: ExportReadSet -> ExportReadSet -> Bool
$c== :: ExportReadSet -> ExportReadSet -> Bool
Prelude.Eq, ReadPrec [ExportReadSet]
ReadPrec ExportReadSet
Int -> ReadS ExportReadSet
ReadS [ExportReadSet]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportReadSet]
$creadListPrec :: ReadPrec [ExportReadSet]
readPrec :: ReadPrec ExportReadSet
$creadPrec :: ReadPrec ExportReadSet
readList :: ReadS [ExportReadSet]
$creadList :: ReadS [ExportReadSet]
readsPrec :: Int -> ReadS ExportReadSet
$creadsPrec :: Int -> ReadS ExportReadSet
Prelude.Read, Int -> ExportReadSet -> ShowS
[ExportReadSet] -> ShowS
ExportReadSet -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportReadSet] -> ShowS
$cshowList :: [ExportReadSet] -> ShowS
show :: ExportReadSet -> String
$cshow :: ExportReadSet -> String
showsPrec :: Int -> ExportReadSet -> ShowS
$cshowsPrec :: Int -> ExportReadSet -> ShowS
Prelude.Show, forall x. Rep ExportReadSet x -> ExportReadSet
forall x. ExportReadSet -> Rep ExportReadSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExportReadSet x -> ExportReadSet
$cfrom :: forall x. ExportReadSet -> Rep ExportReadSet x
Prelude.Generic)
newExportReadSet ::
Prelude.Text ->
ExportReadSet
newExportReadSet :: Text -> ExportReadSet
newExportReadSet Text
pReadSetId_ =
ExportReadSet' {$sel:readSetId:ExportReadSet' :: Text
readSetId = Text
pReadSetId_}
exportReadSet_readSetId :: Lens.Lens' ExportReadSet Prelude.Text
exportReadSet_readSetId :: Lens' ExportReadSet Text
exportReadSet_readSetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportReadSet' {Text
readSetId :: Text
$sel:readSetId:ExportReadSet' :: ExportReadSet -> Text
readSetId} -> Text
readSetId) (\s :: ExportReadSet
s@ExportReadSet' {} Text
a -> ExportReadSet
s {$sel:readSetId:ExportReadSet' :: Text
readSetId = Text
a} :: ExportReadSet)
instance Prelude.Hashable ExportReadSet where
hashWithSalt :: Int -> ExportReadSet -> Int
hashWithSalt Int
_salt ExportReadSet' {Text
readSetId :: Text
$sel:readSetId:ExportReadSet' :: ExportReadSet -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
readSetId
instance Prelude.NFData ExportReadSet where
rnf :: ExportReadSet -> ()
rnf ExportReadSet' {Text
readSetId :: Text
$sel:readSetId:ExportReadSet' :: ExportReadSet -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
readSetId
instance Data.ToJSON ExportReadSet where
toJSON :: ExportReadSet -> Value
toJSON ExportReadSet' {Text
readSetId :: Text
$sel:readSetId:ExportReadSet' :: ExportReadSet -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"readSetId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
readSetId)]
)