{-# 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.CostExplorer.Types.MonitorDimension
-- 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.CostExplorer.Types.MonitorDimension
  ( MonitorDimension
      ( ..,
        MonitorDimension_SERVICE
      ),
  )
where

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

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

pattern MonitorDimension_SERVICE :: MonitorDimension
pattern $bMonitorDimension_SERVICE :: MonitorDimension
$mMonitorDimension_SERVICE :: forall r. MonitorDimension -> (Void# -> r) -> (Void# -> r) -> r
MonitorDimension_SERVICE = MonitorDimension' "SERVICE"

{-# COMPLETE
  MonitorDimension_SERVICE,
  MonitorDimension'
  #-}