{-# 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.SESV2.Types.MetricDimensionName
-- 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.SESV2.Types.MetricDimensionName
  ( MetricDimensionName
      ( ..,
        MetricDimensionName_CONFIGURATION_SET,
        MetricDimensionName_EMAIL_IDENTITY,
        MetricDimensionName_ISP
      ),
  )
where

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

-- | The @BatchGetMetricDataQuery@ dimension name. This can be one of the
-- following:
--
-- -   @EMAIL_IDENTITY@ – The email identity used when sending messages.
--
-- -   @CONFIGURATION_SET@ – The configuration set used when sending
--     messages (if one was used).
--
-- -   @ISP@ – The recipient ISP (e.g. @Gmail@, @Yahoo@, etc.).
newtype MetricDimensionName = MetricDimensionName'
  { MetricDimensionName -> Text
fromMetricDimensionName ::
      Data.Text
  }
  deriving stock
    ( Int -> MetricDimensionName -> ShowS
[MetricDimensionName] -> ShowS
MetricDimensionName -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MetricDimensionName] -> ShowS
$cshowList :: [MetricDimensionName] -> ShowS
show :: MetricDimensionName -> String
$cshow :: MetricDimensionName -> String
showsPrec :: Int -> MetricDimensionName -> ShowS
$cshowsPrec :: Int -> MetricDimensionName -> ShowS
Prelude.Show,
      ReadPrec [MetricDimensionName]
ReadPrec MetricDimensionName
Int -> ReadS MetricDimensionName
ReadS [MetricDimensionName]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MetricDimensionName]
$creadListPrec :: ReadPrec [MetricDimensionName]
readPrec :: ReadPrec MetricDimensionName
$creadPrec :: ReadPrec MetricDimensionName
readList :: ReadS [MetricDimensionName]
$creadList :: ReadS [MetricDimensionName]
readsPrec :: Int -> ReadS MetricDimensionName
$creadsPrec :: Int -> ReadS MetricDimensionName
Prelude.Read,
      MetricDimensionName -> MetricDimensionName -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MetricDimensionName -> MetricDimensionName -> Bool
$c/= :: MetricDimensionName -> MetricDimensionName -> Bool
== :: MetricDimensionName -> MetricDimensionName -> Bool
$c== :: MetricDimensionName -> MetricDimensionName -> Bool
Prelude.Eq,
      Eq MetricDimensionName
MetricDimensionName -> MetricDimensionName -> Bool
MetricDimensionName -> MetricDimensionName -> Ordering
MetricDimensionName -> MetricDimensionName -> MetricDimensionName
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 :: MetricDimensionName -> MetricDimensionName -> MetricDimensionName
$cmin :: MetricDimensionName -> MetricDimensionName -> MetricDimensionName
max :: MetricDimensionName -> MetricDimensionName -> MetricDimensionName
$cmax :: MetricDimensionName -> MetricDimensionName -> MetricDimensionName
>= :: MetricDimensionName -> MetricDimensionName -> Bool
$c>= :: MetricDimensionName -> MetricDimensionName -> Bool
> :: MetricDimensionName -> MetricDimensionName -> Bool
$c> :: MetricDimensionName -> MetricDimensionName -> Bool
<= :: MetricDimensionName -> MetricDimensionName -> Bool
$c<= :: MetricDimensionName -> MetricDimensionName -> Bool
< :: MetricDimensionName -> MetricDimensionName -> Bool
$c< :: MetricDimensionName -> MetricDimensionName -> Bool
compare :: MetricDimensionName -> MetricDimensionName -> Ordering
$ccompare :: MetricDimensionName -> MetricDimensionName -> Ordering
Prelude.Ord,
      forall x. Rep MetricDimensionName x -> MetricDimensionName
forall x. MetricDimensionName -> Rep MetricDimensionName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MetricDimensionName x -> MetricDimensionName
$cfrom :: forall x. MetricDimensionName -> Rep MetricDimensionName x
Prelude.Generic
    )
  deriving newtype
    ( Eq MetricDimensionName
Int -> MetricDimensionName -> Int
MetricDimensionName -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MetricDimensionName -> Int
$chash :: MetricDimensionName -> Int
hashWithSalt :: Int -> MetricDimensionName -> Int
$chashWithSalt :: Int -> MetricDimensionName -> Int
Prelude.Hashable,
      MetricDimensionName -> ()
forall a. (a -> ()) -> NFData a
rnf :: MetricDimensionName -> ()
$crnf :: MetricDimensionName -> ()
Prelude.NFData,
      Text -> Either String MetricDimensionName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MetricDimensionName
$cfromText :: Text -> Either String MetricDimensionName
Data.FromText,
      MetricDimensionName -> Text
forall a. (a -> Text) -> ToText a
toText :: MetricDimensionName -> Text
$ctoText :: MetricDimensionName -> Text
Data.ToText,
      MetricDimensionName -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MetricDimensionName -> ByteString
$ctoBS :: MetricDimensionName -> ByteString
Data.ToByteString,
      MetricDimensionName -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MetricDimensionName -> ByteStringBuilder
$cbuild :: MetricDimensionName -> ByteStringBuilder
Data.ToLog,
      HeaderName -> MetricDimensionName -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MetricDimensionName -> [Header]
$ctoHeader :: HeaderName -> MetricDimensionName -> [Header]
Data.ToHeader,
      MetricDimensionName -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MetricDimensionName -> QueryString
$ctoQuery :: MetricDimensionName -> QueryString
Data.ToQuery,
      Value -> Parser [MetricDimensionName]
Value -> Parser MetricDimensionName
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MetricDimensionName]
$cparseJSONList :: Value -> Parser [MetricDimensionName]
parseJSON :: Value -> Parser MetricDimensionName
$cparseJSON :: Value -> Parser MetricDimensionName
Data.FromJSON,
      FromJSONKeyFunction [MetricDimensionName]
FromJSONKeyFunction MetricDimensionName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MetricDimensionName]
$cfromJSONKeyList :: FromJSONKeyFunction [MetricDimensionName]
fromJSONKey :: FromJSONKeyFunction MetricDimensionName
$cfromJSONKey :: FromJSONKeyFunction MetricDimensionName
Data.FromJSONKey,
      [MetricDimensionName] -> Encoding
[MetricDimensionName] -> Value
MetricDimensionName -> Encoding
MetricDimensionName -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MetricDimensionName] -> Encoding
$ctoEncodingList :: [MetricDimensionName] -> Encoding
toJSONList :: [MetricDimensionName] -> Value
$ctoJSONList :: [MetricDimensionName] -> Value
toEncoding :: MetricDimensionName -> Encoding
$ctoEncoding :: MetricDimensionName -> Encoding
toJSON :: MetricDimensionName -> Value
$ctoJSON :: MetricDimensionName -> Value
Data.ToJSON,
      ToJSONKeyFunction [MetricDimensionName]
ToJSONKeyFunction MetricDimensionName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MetricDimensionName]
$ctoJSONKeyList :: ToJSONKeyFunction [MetricDimensionName]
toJSONKey :: ToJSONKeyFunction MetricDimensionName
$ctoJSONKey :: ToJSONKeyFunction MetricDimensionName
Data.ToJSONKey,
      [Node] -> Either String MetricDimensionName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MetricDimensionName
$cparseXML :: [Node] -> Either String MetricDimensionName
Data.FromXML,
      MetricDimensionName -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MetricDimensionName -> XML
$ctoXML :: MetricDimensionName -> XML
Data.ToXML
    )

pattern MetricDimensionName_CONFIGURATION_SET :: MetricDimensionName
pattern $bMetricDimensionName_CONFIGURATION_SET :: MetricDimensionName
$mMetricDimensionName_CONFIGURATION_SET :: forall {r}.
MetricDimensionName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricDimensionName_CONFIGURATION_SET = MetricDimensionName' "CONFIGURATION_SET"

pattern MetricDimensionName_EMAIL_IDENTITY :: MetricDimensionName
pattern $bMetricDimensionName_EMAIL_IDENTITY :: MetricDimensionName
$mMetricDimensionName_EMAIL_IDENTITY :: forall {r}.
MetricDimensionName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricDimensionName_EMAIL_IDENTITY = MetricDimensionName' "EMAIL_IDENTITY"

pattern MetricDimensionName_ISP :: MetricDimensionName
pattern $bMetricDimensionName_ISP :: MetricDimensionName
$mMetricDimensionName_ISP :: forall {r}.
MetricDimensionName -> ((# #) -> r) -> ((# #) -> r) -> r
MetricDimensionName_ISP = MetricDimensionName' "ISP"

{-# COMPLETE
  MetricDimensionName_CONFIGURATION_SET,
  MetricDimensionName_EMAIL_IDENTITY,
  MetricDimensionName_ISP,
  MetricDimensionName'
  #-}