{-# 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.ElastiCache.Types.SlaMet
-- 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.ElastiCache.Types.SlaMet
  ( SlaMet
      ( ..,
        SlaMet_N_a,
        SlaMet_No,
        SlaMet_Yes
      ),
  )
where

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

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

pattern SlaMet_N_a :: SlaMet
pattern $bSlaMet_N_a :: SlaMet
$mSlaMet_N_a :: forall r. SlaMet -> (Void# -> r) -> (Void# -> r) -> r
SlaMet_N_a = SlaMet' "n/a"

pattern SlaMet_No :: SlaMet
pattern $bSlaMet_No :: SlaMet
$mSlaMet_No :: forall r. SlaMet -> (Void# -> r) -> (Void# -> r) -> r
SlaMet_No = SlaMet' "no"

pattern SlaMet_Yes :: SlaMet
pattern $bSlaMet_Yes :: SlaMet
$mSlaMet_Yes :: forall r. SlaMet -> (Void# -> r) -> (Void# -> r) -> r
SlaMet_Yes = SlaMet' "yes"

{-# COMPLETE
  SlaMet_N_a,
  SlaMet_No,
  SlaMet_Yes,
  SlaMet'
  #-}