{-# 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.LabelDetectionAggregateBy
-- 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.LabelDetectionAggregateBy
  ( LabelDetectionAggregateBy
      ( ..,
        LabelDetectionAggregateBy_SEGMENTS,
        LabelDetectionAggregateBy_TIMESTAMPS
      ),
  )
where

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

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

pattern LabelDetectionAggregateBy_SEGMENTS :: LabelDetectionAggregateBy
pattern $bLabelDetectionAggregateBy_SEGMENTS :: LabelDetectionAggregateBy
$mLabelDetectionAggregateBy_SEGMENTS :: forall {r}.
LabelDetectionAggregateBy -> ((# #) -> r) -> ((# #) -> r) -> r
LabelDetectionAggregateBy_SEGMENTS = LabelDetectionAggregateBy' "SEGMENTS"

pattern LabelDetectionAggregateBy_TIMESTAMPS :: LabelDetectionAggregateBy
pattern $bLabelDetectionAggregateBy_TIMESTAMPS :: LabelDetectionAggregateBy
$mLabelDetectionAggregateBy_TIMESTAMPS :: forall {r}.
LabelDetectionAggregateBy -> ((# #) -> r) -> ((# #) -> r) -> r
LabelDetectionAggregateBy_TIMESTAMPS = LabelDetectionAggregateBy' "TIMESTAMPS"

{-# COMPLETE
  LabelDetectionAggregateBy_SEGMENTS,
  LabelDetectionAggregateBy_TIMESTAMPS,
  LabelDetectionAggregateBy'
  #-}