{-# 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.LabelDetectionFeatureName
-- 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.Rekognition.Types.LabelDetectionFeatureName
  ( LabelDetectionFeatureName
      ( ..,
        LabelDetectionFeatureName_GENERAL_LABELS
      ),
  )
where

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

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

pattern LabelDetectionFeatureName_GENERAL_LABELS :: LabelDetectionFeatureName
pattern $bLabelDetectionFeatureName_GENERAL_LABELS :: LabelDetectionFeatureName
$mLabelDetectionFeatureName_GENERAL_LABELS :: forall {r}.
LabelDetectionFeatureName -> ((# #) -> r) -> ((# #) -> r) -> r
LabelDetectionFeatureName_GENERAL_LABELS = LabelDetectionFeatureName' "GENERAL_LABELS"

{-# COMPLETE
  LabelDetectionFeatureName_GENERAL_LABELS,
  LabelDetectionFeatureName'
  #-}