{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Omics.Types.AnnotationType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Omics.Types.AnnotationType
  ( AnnotationType
      ( ..,
        AnnotationType_CHR_POS,
        AnnotationType_CHR_POS_REF_ALT,
        AnnotationType_CHR_START_END_ONE_BASE,
        AnnotationType_CHR_START_END_REF_ALT_ONE_BASE,
        AnnotationType_CHR_START_END_REF_ALT_ZERO_BASE,
        AnnotationType_CHR_START_END_ZERO_BASE,
        AnnotationType_GENERIC
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype AnnotationType = AnnotationType'
  { AnnotationType -> Text
fromAnnotationType ::
      Data.Text
  }
  deriving stock
    ( Int -> AnnotationType -> ShowS
[AnnotationType] -> ShowS
AnnotationType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AnnotationType] -> ShowS
$cshowList :: [AnnotationType] -> ShowS
show :: AnnotationType -> String
$cshow :: AnnotationType -> String
showsPrec :: Int -> AnnotationType -> ShowS
$cshowsPrec :: Int -> AnnotationType -> ShowS
Prelude.Show,
      ReadPrec [AnnotationType]
ReadPrec AnnotationType
Int -> ReadS AnnotationType
ReadS [AnnotationType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AnnotationType]
$creadListPrec :: ReadPrec [AnnotationType]
readPrec :: ReadPrec AnnotationType
$creadPrec :: ReadPrec AnnotationType
readList :: ReadS [AnnotationType]
$creadList :: ReadS [AnnotationType]
readsPrec :: Int -> ReadS AnnotationType
$creadsPrec :: Int -> ReadS AnnotationType
Prelude.Read,
      AnnotationType -> AnnotationType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AnnotationType -> AnnotationType -> Bool
$c/= :: AnnotationType -> AnnotationType -> Bool
== :: AnnotationType -> AnnotationType -> Bool
$c== :: AnnotationType -> AnnotationType -> Bool
Prelude.Eq,
      Eq AnnotationType
AnnotationType -> AnnotationType -> Bool
AnnotationType -> AnnotationType -> Ordering
AnnotationType -> AnnotationType -> AnnotationType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: AnnotationType -> AnnotationType -> AnnotationType
$cmin :: AnnotationType -> AnnotationType -> AnnotationType
max :: AnnotationType -> AnnotationType -> AnnotationType
$cmax :: AnnotationType -> AnnotationType -> AnnotationType
>= :: AnnotationType -> AnnotationType -> Bool
$c>= :: AnnotationType -> AnnotationType -> Bool
> :: AnnotationType -> AnnotationType -> Bool
$c> :: AnnotationType -> AnnotationType -> Bool
<= :: AnnotationType -> AnnotationType -> Bool
$c<= :: AnnotationType -> AnnotationType -> Bool
< :: AnnotationType -> AnnotationType -> Bool
$c< :: AnnotationType -> AnnotationType -> Bool
compare :: AnnotationType -> AnnotationType -> Ordering
$ccompare :: AnnotationType -> AnnotationType -> Ordering
Prelude.Ord,
      forall x. Rep AnnotationType x -> AnnotationType
forall x. AnnotationType -> Rep AnnotationType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AnnotationType x -> AnnotationType
$cfrom :: forall x. AnnotationType -> Rep AnnotationType x
Prelude.Generic
    )
  deriving newtype
    ( Eq AnnotationType
Int -> AnnotationType -> Int
AnnotationType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AnnotationType -> Int
$chash :: AnnotationType -> Int
hashWithSalt :: Int -> AnnotationType -> Int
$chashWithSalt :: Int -> AnnotationType -> Int
Prelude.Hashable,
      AnnotationType -> ()
forall a. (a -> ()) -> NFData a
rnf :: AnnotationType -> ()
$crnf :: AnnotationType -> ()
Prelude.NFData,
      Text -> Either String AnnotationType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AnnotationType
$cfromText :: Text -> Either String AnnotationType
Data.FromText,
      AnnotationType -> Text
forall a. (a -> Text) -> ToText a
toText :: AnnotationType -> Text
$ctoText :: AnnotationType -> Text
Data.ToText,
      AnnotationType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AnnotationType -> ByteString
$ctoBS :: AnnotationType -> ByteString
Data.ToByteString,
      AnnotationType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AnnotationType -> ByteStringBuilder
$cbuild :: AnnotationType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AnnotationType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AnnotationType -> [Header]
$ctoHeader :: HeaderName -> AnnotationType -> [Header]
Data.ToHeader,
      AnnotationType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AnnotationType -> QueryString
$ctoQuery :: AnnotationType -> QueryString
Data.ToQuery,
      Value -> Parser [AnnotationType]
Value -> Parser AnnotationType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AnnotationType]
$cparseJSONList :: Value -> Parser [AnnotationType]
parseJSON :: Value -> Parser AnnotationType
$cparseJSON :: Value -> Parser AnnotationType
Data.FromJSON,
      FromJSONKeyFunction [AnnotationType]
FromJSONKeyFunction AnnotationType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AnnotationType]
$cfromJSONKeyList :: FromJSONKeyFunction [AnnotationType]
fromJSONKey :: FromJSONKeyFunction AnnotationType
$cfromJSONKey :: FromJSONKeyFunction AnnotationType
Data.FromJSONKey,
      [AnnotationType] -> Encoding
[AnnotationType] -> Value
AnnotationType -> Encoding
AnnotationType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AnnotationType] -> Encoding
$ctoEncodingList :: [AnnotationType] -> Encoding
toJSONList :: [AnnotationType] -> Value
$ctoJSONList :: [AnnotationType] -> Value
toEncoding :: AnnotationType -> Encoding
$ctoEncoding :: AnnotationType -> Encoding
toJSON :: AnnotationType -> Value
$ctoJSON :: AnnotationType -> Value
Data.ToJSON,
      ToJSONKeyFunction [AnnotationType]
ToJSONKeyFunction AnnotationType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AnnotationType]
$ctoJSONKeyList :: ToJSONKeyFunction [AnnotationType]
toJSONKey :: ToJSONKeyFunction AnnotationType
$ctoJSONKey :: ToJSONKeyFunction AnnotationType
Data.ToJSONKey,
      [Node] -> Either String AnnotationType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AnnotationType
$cparseXML :: [Node] -> Either String AnnotationType
Data.FromXML,
      AnnotationType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AnnotationType -> XML
$ctoXML :: AnnotationType -> XML
Data.ToXML
    )

pattern AnnotationType_CHR_POS :: AnnotationType
pattern $bAnnotationType_CHR_POS :: AnnotationType
$mAnnotationType_CHR_POS :: forall {r}. AnnotationType -> ((# #) -> r) -> ((# #) -> r) -> r
AnnotationType_CHR_POS = AnnotationType' "CHR_POS"

pattern AnnotationType_CHR_POS_REF_ALT :: AnnotationType
pattern $bAnnotationType_CHR_POS_REF_ALT :: AnnotationType
$mAnnotationType_CHR_POS_REF_ALT :: forall {r}. AnnotationType -> ((# #) -> r) -> ((# #) -> r) -> r
AnnotationType_CHR_POS_REF_ALT = AnnotationType' "CHR_POS_REF_ALT"

pattern AnnotationType_CHR_START_END_ONE_BASE :: AnnotationType
pattern $bAnnotationType_CHR_START_END_ONE_BASE :: AnnotationType
$mAnnotationType_CHR_START_END_ONE_BASE :: forall {r}. AnnotationType -> ((# #) -> r) -> ((# #) -> r) -> r
AnnotationType_CHR_START_END_ONE_BASE = AnnotationType' "CHR_START_END_ONE_BASE"

pattern AnnotationType_CHR_START_END_REF_ALT_ONE_BASE :: AnnotationType
pattern $bAnnotationType_CHR_START_END_REF_ALT_ONE_BASE :: AnnotationType
$mAnnotationType_CHR_START_END_REF_ALT_ONE_BASE :: forall {r}. AnnotationType -> ((# #) -> r) -> ((# #) -> r) -> r
AnnotationType_CHR_START_END_REF_ALT_ONE_BASE = AnnotationType' "CHR_START_END_REF_ALT_ONE_BASE"

pattern AnnotationType_CHR_START_END_REF_ALT_ZERO_BASE :: AnnotationType
pattern $bAnnotationType_CHR_START_END_REF_ALT_ZERO_BASE :: AnnotationType
$mAnnotationType_CHR_START_END_REF_ALT_ZERO_BASE :: forall {r}. AnnotationType -> ((# #) -> r) -> ((# #) -> r) -> r
AnnotationType_CHR_START_END_REF_ALT_ZERO_BASE = AnnotationType' "CHR_START_END_REF_ALT_ZERO_BASE"

pattern AnnotationType_CHR_START_END_ZERO_BASE :: AnnotationType
pattern $bAnnotationType_CHR_START_END_ZERO_BASE :: AnnotationType
$mAnnotationType_CHR_START_END_ZERO_BASE :: forall {r}. AnnotationType -> ((# #) -> r) -> ((# #) -> r) -> r
AnnotationType_CHR_START_END_ZERO_BASE = AnnotationType' "CHR_START_END_ZERO_BASE"

pattern AnnotationType_GENERIC :: AnnotationType
pattern $bAnnotationType_GENERIC :: AnnotationType
$mAnnotationType_GENERIC :: forall {r}. AnnotationType -> ((# #) -> r) -> ((# #) -> r) -> r
AnnotationType_GENERIC = AnnotationType' "GENERIC"

{-# COMPLETE
  AnnotationType_CHR_POS,
  AnnotationType_CHR_POS_REF_ALT,
  AnnotationType_CHR_START_END_ONE_BASE,
  AnnotationType_CHR_START_END_REF_ALT_ONE_BASE,
  AnnotationType_CHR_START_END_REF_ALT_ZERO_BASE,
  AnnotationType_CHR_START_END_ZERO_BASE,
  AnnotationType_GENERIC,
  AnnotationType'
  #-}