{-# 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.SequenceInformation 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 SequenceInformation = SequenceInformation'
{
SequenceInformation -> Maybe Text
alignment :: Prelude.Maybe Prelude.Text,
SequenceInformation -> Maybe Text
generatedFrom :: Prelude.Maybe Prelude.Text,
SequenceInformation -> Maybe Integer
totalBaseCount :: Prelude.Maybe Prelude.Integer,
SequenceInformation -> Maybe Integer
totalReadCount :: Prelude.Maybe Prelude.Integer
}
deriving (SequenceInformation -> SequenceInformation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SequenceInformation -> SequenceInformation -> Bool
$c/= :: SequenceInformation -> SequenceInformation -> Bool
== :: SequenceInformation -> SequenceInformation -> Bool
$c== :: SequenceInformation -> SequenceInformation -> Bool
Prelude.Eq, ReadPrec [SequenceInformation]
ReadPrec SequenceInformation
Int -> ReadS SequenceInformation
ReadS [SequenceInformation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SequenceInformation]
$creadListPrec :: ReadPrec [SequenceInformation]
readPrec :: ReadPrec SequenceInformation
$creadPrec :: ReadPrec SequenceInformation
readList :: ReadS [SequenceInformation]
$creadList :: ReadS [SequenceInformation]
readsPrec :: Int -> ReadS SequenceInformation
$creadsPrec :: Int -> ReadS SequenceInformation
Prelude.Read, Int -> SequenceInformation -> ShowS
[SequenceInformation] -> ShowS
SequenceInformation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SequenceInformation] -> ShowS
$cshowList :: [SequenceInformation] -> ShowS
show :: SequenceInformation -> String
$cshow :: SequenceInformation -> String
showsPrec :: Int -> SequenceInformation -> ShowS
$cshowsPrec :: Int -> SequenceInformation -> ShowS
Prelude.Show, forall x. Rep SequenceInformation x -> SequenceInformation
forall x. SequenceInformation -> Rep SequenceInformation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SequenceInformation x -> SequenceInformation
$cfrom :: forall x. SequenceInformation -> Rep SequenceInformation x
Prelude.Generic)
newSequenceInformation ::
SequenceInformation
newSequenceInformation :: SequenceInformation
newSequenceInformation =
SequenceInformation'
{ $sel:alignment:SequenceInformation' :: Maybe Text
alignment = forall a. Maybe a
Prelude.Nothing,
$sel:generatedFrom:SequenceInformation' :: Maybe Text
generatedFrom = forall a. Maybe a
Prelude.Nothing,
$sel:totalBaseCount:SequenceInformation' :: Maybe Integer
totalBaseCount = forall a. Maybe a
Prelude.Nothing,
$sel:totalReadCount:SequenceInformation' :: Maybe Integer
totalReadCount = forall a. Maybe a
Prelude.Nothing
}
sequenceInformation_alignment :: Lens.Lens' SequenceInformation (Prelude.Maybe Prelude.Text)
sequenceInformation_alignment :: Lens' SequenceInformation (Maybe Text)
sequenceInformation_alignment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SequenceInformation' {Maybe Text
alignment :: Maybe Text
$sel:alignment:SequenceInformation' :: SequenceInformation -> Maybe Text
alignment} -> Maybe Text
alignment) (\s :: SequenceInformation
s@SequenceInformation' {} Maybe Text
a -> SequenceInformation
s {$sel:alignment:SequenceInformation' :: Maybe Text
alignment = Maybe Text
a} :: SequenceInformation)
sequenceInformation_generatedFrom :: Lens.Lens' SequenceInformation (Prelude.Maybe Prelude.Text)
sequenceInformation_generatedFrom :: Lens' SequenceInformation (Maybe Text)
sequenceInformation_generatedFrom = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SequenceInformation' {Maybe Text
generatedFrom :: Maybe Text
$sel:generatedFrom:SequenceInformation' :: SequenceInformation -> Maybe Text
generatedFrom} -> Maybe Text
generatedFrom) (\s :: SequenceInformation
s@SequenceInformation' {} Maybe Text
a -> SequenceInformation
s {$sel:generatedFrom:SequenceInformation' :: Maybe Text
generatedFrom = Maybe Text
a} :: SequenceInformation)
sequenceInformation_totalBaseCount :: Lens.Lens' SequenceInformation (Prelude.Maybe Prelude.Integer)
sequenceInformation_totalBaseCount :: Lens' SequenceInformation (Maybe Integer)
sequenceInformation_totalBaseCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SequenceInformation' {Maybe Integer
totalBaseCount :: Maybe Integer
$sel:totalBaseCount:SequenceInformation' :: SequenceInformation -> Maybe Integer
totalBaseCount} -> Maybe Integer
totalBaseCount) (\s :: SequenceInformation
s@SequenceInformation' {} Maybe Integer
a -> SequenceInformation
s {$sel:totalBaseCount:SequenceInformation' :: Maybe Integer
totalBaseCount = Maybe Integer
a} :: SequenceInformation)
sequenceInformation_totalReadCount :: Lens.Lens' SequenceInformation (Prelude.Maybe Prelude.Integer)
sequenceInformation_totalReadCount :: Lens' SequenceInformation (Maybe Integer)
sequenceInformation_totalReadCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SequenceInformation' {Maybe Integer
totalReadCount :: Maybe Integer
$sel:totalReadCount:SequenceInformation' :: SequenceInformation -> Maybe Integer
totalReadCount} -> Maybe Integer
totalReadCount) (\s :: SequenceInformation
s@SequenceInformation' {} Maybe Integer
a -> SequenceInformation
s {$sel:totalReadCount:SequenceInformation' :: Maybe Integer
totalReadCount = Maybe Integer
a} :: SequenceInformation)
instance Data.FromJSON SequenceInformation where
parseJSON :: Value -> Parser SequenceInformation
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"SequenceInformation"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> SequenceInformation
SequenceInformation'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"alignment")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"generatedFrom")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"totalBaseCount")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"totalReadCount")
)
instance Prelude.Hashable SequenceInformation where
hashWithSalt :: Int -> SequenceInformation -> Int
hashWithSalt Int
_salt SequenceInformation' {Maybe Integer
Maybe Text
totalReadCount :: Maybe Integer
totalBaseCount :: Maybe Integer
generatedFrom :: Maybe Text
alignment :: Maybe Text
$sel:totalReadCount:SequenceInformation' :: SequenceInformation -> Maybe Integer
$sel:totalBaseCount:SequenceInformation' :: SequenceInformation -> Maybe Integer
$sel:generatedFrom:SequenceInformation' :: SequenceInformation -> Maybe Text
$sel:alignment:SequenceInformation' :: SequenceInformation -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
alignment
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
generatedFrom
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
totalBaseCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
totalReadCount
instance Prelude.NFData SequenceInformation where
rnf :: SequenceInformation -> ()
rnf SequenceInformation' {Maybe Integer
Maybe Text
totalReadCount :: Maybe Integer
totalBaseCount :: Maybe Integer
generatedFrom :: Maybe Text
alignment :: Maybe Text
$sel:totalReadCount:SequenceInformation' :: SequenceInformation -> Maybe Integer
$sel:totalBaseCount:SequenceInformation' :: SequenceInformation -> Maybe Integer
$sel:generatedFrom:SequenceInformation' :: SequenceInformation -> Maybe Text
$sel:alignment:SequenceInformation' :: SequenceInformation -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
alignment
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
generatedFrom
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
totalBaseCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
totalReadCount