{-# 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.MetricNamespace
-- 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.MetricNamespace
  ( MetricNamespace
      ( ..,
        MetricNamespace_VDM
      ),
  )
where

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

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

pattern MetricNamespace_VDM :: MetricNamespace
pattern $bMetricNamespace_VDM :: MetricNamespace
$mMetricNamespace_VDM :: forall {r}. MetricNamespace -> ((# #) -> r) -> ((# #) -> r) -> r
MetricNamespace_VDM = MetricNamespace' "VDM"

{-# COMPLETE
  MetricNamespace_VDM,
  MetricNamespace'
  #-}