{-# 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.IoT.Types.AggregationTypeName
-- 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.IoT.Types.AggregationTypeName
  ( AggregationTypeName
      ( ..,
        AggregationTypeName_Cardinality,
        AggregationTypeName_Percentiles,
        AggregationTypeName_Statistics
      ),
  )
where

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

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

pattern AggregationTypeName_Cardinality :: AggregationTypeName
pattern $bAggregationTypeName_Cardinality :: AggregationTypeName
$mAggregationTypeName_Cardinality :: forall r. AggregationTypeName -> (Void# -> r) -> (Void# -> r) -> r
AggregationTypeName_Cardinality = AggregationTypeName' "Cardinality"

pattern AggregationTypeName_Percentiles :: AggregationTypeName
pattern $bAggregationTypeName_Percentiles :: AggregationTypeName
$mAggregationTypeName_Percentiles :: forall r. AggregationTypeName -> (Void# -> r) -> (Void# -> r) -> r
AggregationTypeName_Percentiles = AggregationTypeName' "Percentiles"

pattern AggregationTypeName_Statistics :: AggregationTypeName
pattern $bAggregationTypeName_Statistics :: AggregationTypeName
$mAggregationTypeName_Statistics :: forall r. AggregationTypeName -> (Void# -> r) -> (Void# -> r) -> r
AggregationTypeName_Statistics = AggregationTypeName' "Statistics"

{-# COMPLETE
  AggregationTypeName_Cardinality,
  AggregationTypeName_Percentiles,
  AggregationTypeName_Statistics,
  AggregationTypeName'
  #-}