{-# 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.FormatToHeaderKey
-- 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.FormatToHeaderKey
  ( FormatToHeaderKey
      ( ..,
        FormatToHeaderKey_ALT,
        FormatToHeaderKey_CHR,
        FormatToHeaderKey_END,
        FormatToHeaderKey_POS,
        FormatToHeaderKey_REF,
        FormatToHeaderKey_START
      ),
  )
where

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

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

pattern FormatToHeaderKey_ALT :: FormatToHeaderKey
pattern $bFormatToHeaderKey_ALT :: FormatToHeaderKey
$mFormatToHeaderKey_ALT :: forall {r}. FormatToHeaderKey -> ((# #) -> r) -> ((# #) -> r) -> r
FormatToHeaderKey_ALT = FormatToHeaderKey' "ALT"

pattern FormatToHeaderKey_CHR :: FormatToHeaderKey
pattern $bFormatToHeaderKey_CHR :: FormatToHeaderKey
$mFormatToHeaderKey_CHR :: forall {r}. FormatToHeaderKey -> ((# #) -> r) -> ((# #) -> r) -> r
FormatToHeaderKey_CHR = FormatToHeaderKey' "CHR"

pattern FormatToHeaderKey_END :: FormatToHeaderKey
pattern $bFormatToHeaderKey_END :: FormatToHeaderKey
$mFormatToHeaderKey_END :: forall {r}. FormatToHeaderKey -> ((# #) -> r) -> ((# #) -> r) -> r
FormatToHeaderKey_END = FormatToHeaderKey' "END"

pattern FormatToHeaderKey_POS :: FormatToHeaderKey
pattern $bFormatToHeaderKey_POS :: FormatToHeaderKey
$mFormatToHeaderKey_POS :: forall {r}. FormatToHeaderKey -> ((# #) -> r) -> ((# #) -> r) -> r
FormatToHeaderKey_POS = FormatToHeaderKey' "POS"

pattern FormatToHeaderKey_REF :: FormatToHeaderKey
pattern $bFormatToHeaderKey_REF :: FormatToHeaderKey
$mFormatToHeaderKey_REF :: forall {r}. FormatToHeaderKey -> ((# #) -> r) -> ((# #) -> r) -> r
FormatToHeaderKey_REF = FormatToHeaderKey' "REF"

pattern FormatToHeaderKey_START :: FormatToHeaderKey
pattern $bFormatToHeaderKey_START :: FormatToHeaderKey
$mFormatToHeaderKey_START :: forall {r}. FormatToHeaderKey -> ((# #) -> r) -> ((# #) -> r) -> r
FormatToHeaderKey_START = FormatToHeaderKey' "START"

{-# COMPLETE
  FormatToHeaderKey_ALT,
  FormatToHeaderKey_CHR,
  FormatToHeaderKey_END,
  FormatToHeaderKey_POS,
  FormatToHeaderKey_REF,
  FormatToHeaderKey_START,
  FormatToHeaderKey'
  #-}