{-# 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.SchemaValueType
-- 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.SchemaValueType
  ( SchemaValueType
      ( ..,
        SchemaValueType_BOOLEAN,
        SchemaValueType_DOUBLE,
        SchemaValueType_FLOAT,
        SchemaValueType_INT,
        SchemaValueType_LONG,
        SchemaValueType_STRING
      ),
  )
where

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

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

pattern SchemaValueType_BOOLEAN :: SchemaValueType
pattern $bSchemaValueType_BOOLEAN :: SchemaValueType
$mSchemaValueType_BOOLEAN :: forall {r}. SchemaValueType -> ((# #) -> r) -> ((# #) -> r) -> r
SchemaValueType_BOOLEAN = SchemaValueType' "BOOLEAN"

pattern SchemaValueType_DOUBLE :: SchemaValueType
pattern $bSchemaValueType_DOUBLE :: SchemaValueType
$mSchemaValueType_DOUBLE :: forall {r}. SchemaValueType -> ((# #) -> r) -> ((# #) -> r) -> r
SchemaValueType_DOUBLE = SchemaValueType' "DOUBLE"

pattern SchemaValueType_FLOAT :: SchemaValueType
pattern $bSchemaValueType_FLOAT :: SchemaValueType
$mSchemaValueType_FLOAT :: forall {r}. SchemaValueType -> ((# #) -> r) -> ((# #) -> r) -> r
SchemaValueType_FLOAT = SchemaValueType' "FLOAT"

pattern SchemaValueType_INT :: SchemaValueType
pattern $bSchemaValueType_INT :: SchemaValueType
$mSchemaValueType_INT :: forall {r}. SchemaValueType -> ((# #) -> r) -> ((# #) -> r) -> r
SchemaValueType_INT = SchemaValueType' "INT"

pattern SchemaValueType_LONG :: SchemaValueType
pattern $bSchemaValueType_LONG :: SchemaValueType
$mSchemaValueType_LONG :: forall {r}. SchemaValueType -> ((# #) -> r) -> ((# #) -> r) -> r
SchemaValueType_LONG = SchemaValueType' "LONG"

pattern SchemaValueType_STRING :: SchemaValueType
pattern $bSchemaValueType_STRING :: SchemaValueType
$mSchemaValueType_STRING :: forall {r}. SchemaValueType -> ((# #) -> r) -> ((# #) -> r) -> r
SchemaValueType_STRING = SchemaValueType' "STRING"

{-# COMPLETE
  SchemaValueType_BOOLEAN,
  SchemaValueType_DOUBLE,
  SchemaValueType_FLOAT,
  SchemaValueType_INT,
  SchemaValueType_LONG,
  SchemaValueType_STRING,
  SchemaValueType'
  #-}