{-# 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.ApplicationInsights.Types.Tier
-- 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.ApplicationInsights.Types.Tier
  ( Tier
      ( ..,
        Tier_CUSTOM,
        Tier_DEFAULT,
        Tier_DOT_NET_CORE,
        Tier_DOT_NET_WEB,
        Tier_DOT_NET_WEB_TIER,
        Tier_DOT_NET_WORKER,
        Tier_JAVA_JMX,
        Tier_MYSQL,
        Tier_ORACLE,
        Tier_POSTGRESQL,
        Tier_SQL_SERVER,
        Tier_SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP
      ),
  )
where

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

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

pattern Tier_CUSTOM :: Tier
pattern $bTier_CUSTOM :: Tier
$mTier_CUSTOM :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_CUSTOM = Tier' "CUSTOM"

pattern Tier_DEFAULT :: Tier
pattern $bTier_DEFAULT :: Tier
$mTier_DEFAULT :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_DEFAULT = Tier' "DEFAULT"

pattern Tier_DOT_NET_CORE :: Tier
pattern $bTier_DOT_NET_CORE :: Tier
$mTier_DOT_NET_CORE :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_DOT_NET_CORE = Tier' "DOT_NET_CORE"

pattern Tier_DOT_NET_WEB :: Tier
pattern $bTier_DOT_NET_WEB :: Tier
$mTier_DOT_NET_WEB :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_DOT_NET_WEB = Tier' "DOT_NET_WEB"

pattern Tier_DOT_NET_WEB_TIER :: Tier
pattern $bTier_DOT_NET_WEB_TIER :: Tier
$mTier_DOT_NET_WEB_TIER :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_DOT_NET_WEB_TIER = Tier' "DOT_NET_WEB_TIER"

pattern Tier_DOT_NET_WORKER :: Tier
pattern $bTier_DOT_NET_WORKER :: Tier
$mTier_DOT_NET_WORKER :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_DOT_NET_WORKER = Tier' "DOT_NET_WORKER"

pattern Tier_JAVA_JMX :: Tier
pattern $bTier_JAVA_JMX :: Tier
$mTier_JAVA_JMX :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_JAVA_JMX = Tier' "JAVA_JMX"

pattern Tier_MYSQL :: Tier
pattern $bTier_MYSQL :: Tier
$mTier_MYSQL :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_MYSQL = Tier' "MYSQL"

pattern Tier_ORACLE :: Tier
pattern $bTier_ORACLE :: Tier
$mTier_ORACLE :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_ORACLE = Tier' "ORACLE"

pattern Tier_POSTGRESQL :: Tier
pattern $bTier_POSTGRESQL :: Tier
$mTier_POSTGRESQL :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_POSTGRESQL = Tier' "POSTGRESQL"

pattern Tier_SQL_SERVER :: Tier
pattern $bTier_SQL_SERVER :: Tier
$mTier_SQL_SERVER :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_SQL_SERVER = Tier' "SQL_SERVER"

pattern Tier_SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP :: Tier
pattern $bTier_SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP :: Tier
$mTier_SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP :: forall r. Tier -> (Void# -> r) -> (Void# -> r) -> r
Tier_SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP = Tier' "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP"

{-# COMPLETE
  Tier_CUSTOM,
  Tier_DEFAULT,
  Tier_DOT_NET_CORE,
  Tier_DOT_NET_WEB,
  Tier_DOT_NET_WEB_TIER,
  Tier_DOT_NET_WORKER,
  Tier_JAVA_JMX,
  Tier_MYSQL,
  Tier_ORACLE,
  Tier_POSTGRESQL,
  Tier_SQL_SERVER,
  Tier_SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP,
  Tier'
  #-}