{-# 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.Textract.Types.SelectionStatus
-- 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.Textract.Types.SelectionStatus
  ( SelectionStatus
      ( ..,
        SelectionStatus_NOT_SELECTED,
        SelectionStatus_SELECTED
      ),
  )
where

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

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

pattern SelectionStatus_NOT_SELECTED :: SelectionStatus
pattern $bSelectionStatus_NOT_SELECTED :: SelectionStatus
$mSelectionStatus_NOT_SELECTED :: forall r. SelectionStatus -> (Void# -> r) -> (Void# -> r) -> r
SelectionStatus_NOT_SELECTED = SelectionStatus' "NOT_SELECTED"

pattern SelectionStatus_SELECTED :: SelectionStatus
pattern $bSelectionStatus_SELECTED :: SelectionStatus
$mSelectionStatus_SELECTED :: forall r. SelectionStatus -> (Void# -> r) -> (Void# -> r) -> r
SelectionStatus_SELECTED = SelectionStatus' "SELECTED"

{-# COMPLETE
  SelectionStatus_NOT_SELECTED,
  SelectionStatus_SELECTED,
  SelectionStatus'
  #-}