{-# 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.Lightsail.Types.RelationalDatabaseMetricName
-- 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.Lightsail.Types.RelationalDatabaseMetricName
  ( RelationalDatabaseMetricName
      ( ..,
        RelationalDatabaseMetricName_CPUUtilization,
        RelationalDatabaseMetricName_DatabaseConnections,
        RelationalDatabaseMetricName_DiskQueueDepth,
        RelationalDatabaseMetricName_FreeStorageSpace,
        RelationalDatabaseMetricName_NetworkReceiveThroughput,
        RelationalDatabaseMetricName_NetworkTransmitThroughput
      ),
  )
where

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

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

pattern RelationalDatabaseMetricName_CPUUtilization :: RelationalDatabaseMetricName
pattern $bRelationalDatabaseMetricName_CPUUtilization :: RelationalDatabaseMetricName
$mRelationalDatabaseMetricName_CPUUtilization :: forall r.
RelationalDatabaseMetricName -> (Void# -> r) -> (Void# -> r) -> r
RelationalDatabaseMetricName_CPUUtilization = RelationalDatabaseMetricName' "CPUUtilization"

pattern RelationalDatabaseMetricName_DatabaseConnections :: RelationalDatabaseMetricName
pattern $bRelationalDatabaseMetricName_DatabaseConnections :: RelationalDatabaseMetricName
$mRelationalDatabaseMetricName_DatabaseConnections :: forall r.
RelationalDatabaseMetricName -> (Void# -> r) -> (Void# -> r) -> r
RelationalDatabaseMetricName_DatabaseConnections = RelationalDatabaseMetricName' "DatabaseConnections"

pattern RelationalDatabaseMetricName_DiskQueueDepth :: RelationalDatabaseMetricName
pattern $bRelationalDatabaseMetricName_DiskQueueDepth :: RelationalDatabaseMetricName
$mRelationalDatabaseMetricName_DiskQueueDepth :: forall r.
RelationalDatabaseMetricName -> (Void# -> r) -> (Void# -> r) -> r
RelationalDatabaseMetricName_DiskQueueDepth = RelationalDatabaseMetricName' "DiskQueueDepth"

pattern RelationalDatabaseMetricName_FreeStorageSpace :: RelationalDatabaseMetricName
pattern $bRelationalDatabaseMetricName_FreeStorageSpace :: RelationalDatabaseMetricName
$mRelationalDatabaseMetricName_FreeStorageSpace :: forall r.
RelationalDatabaseMetricName -> (Void# -> r) -> (Void# -> r) -> r
RelationalDatabaseMetricName_FreeStorageSpace = RelationalDatabaseMetricName' "FreeStorageSpace"

pattern RelationalDatabaseMetricName_NetworkReceiveThroughput :: RelationalDatabaseMetricName
pattern $bRelationalDatabaseMetricName_NetworkReceiveThroughput :: RelationalDatabaseMetricName
$mRelationalDatabaseMetricName_NetworkReceiveThroughput :: forall r.
RelationalDatabaseMetricName -> (Void# -> r) -> (Void# -> r) -> r
RelationalDatabaseMetricName_NetworkReceiveThroughput = RelationalDatabaseMetricName' "NetworkReceiveThroughput"

pattern RelationalDatabaseMetricName_NetworkTransmitThroughput :: RelationalDatabaseMetricName
pattern $bRelationalDatabaseMetricName_NetworkTransmitThroughput :: RelationalDatabaseMetricName
$mRelationalDatabaseMetricName_NetworkTransmitThroughput :: forall r.
RelationalDatabaseMetricName -> (Void# -> r) -> (Void# -> r) -> r
RelationalDatabaseMetricName_NetworkTransmitThroughput = RelationalDatabaseMetricName' "NetworkTransmitThroughput"

{-# COMPLETE
  RelationalDatabaseMetricName_CPUUtilization,
  RelationalDatabaseMetricName_DatabaseConnections,
  RelationalDatabaseMetricName_DiskQueueDepth,
  RelationalDatabaseMetricName_FreeStorageSpace,
  RelationalDatabaseMetricName_NetworkReceiveThroughput,
  RelationalDatabaseMetricName_NetworkTransmitThroughput,
  RelationalDatabaseMetricName'
  #-}