{-# 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.Athena.Types.ColumnNullable
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Athena.Types.ColumnNullable
  ( ColumnNullable
      ( ..,
        ColumnNullable_NOT_NULL,
        ColumnNullable_NULLABLE,
        ColumnNullable_UNKNOWN
      ),
  )
where

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

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

pattern ColumnNullable_NOT_NULL :: ColumnNullable
pattern $bColumnNullable_NOT_NULL :: ColumnNullable
$mColumnNullable_NOT_NULL :: forall r. ColumnNullable -> (Void# -> r) -> (Void# -> r) -> r
ColumnNullable_NOT_NULL = ColumnNullable' "NOT_NULL"

pattern ColumnNullable_NULLABLE :: ColumnNullable
pattern $bColumnNullable_NULLABLE :: ColumnNullable
$mColumnNullable_NULLABLE :: forall r. ColumnNullable -> (Void# -> r) -> (Void# -> r) -> r
ColumnNullable_NULLABLE = ColumnNullable' "NULLABLE"

pattern ColumnNullable_UNKNOWN :: ColumnNullable
pattern $bColumnNullable_UNKNOWN :: ColumnNullable
$mColumnNullable_UNKNOWN :: forall r. ColumnNullable -> (Void# -> r) -> (Void# -> r) -> r
ColumnNullable_UNKNOWN = ColumnNullable' "UNKNOWN"

{-# COMPLETE
  ColumnNullable_NOT_NULL,
  ColumnNullable_NULLABLE,
  ColumnNullable_UNKNOWN,
  ColumnNullable'
  #-}