{-# 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.Rekognition.Types.Attribute
-- 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.Rekognition.Types.Attribute
  ( Attribute
      ( ..,
        Attribute_ALL,
        Attribute_DEFAULT
      ),
  )
where

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

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

pattern Attribute_ALL :: Attribute
pattern $bAttribute_ALL :: Attribute
$mAttribute_ALL :: forall r. Attribute -> (Void# -> r) -> (Void# -> r) -> r
Attribute_ALL = Attribute' "ALL"

pattern Attribute_DEFAULT :: Attribute
pattern $bAttribute_DEFAULT :: Attribute
$mAttribute_DEFAULT :: forall r. Attribute -> (Void# -> r) -> (Void# -> r) -> r
Attribute_DEFAULT = Attribute' "DEFAULT"

{-# COMPLETE
  Attribute_ALL,
  Attribute_DEFAULT,
  Attribute'
  #-}