{-# 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.Backup.Types.ConditionType
-- 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.Backup.Types.ConditionType
  ( ConditionType
      ( ..,
        ConditionType_STRINGEQUALS
      ),
  )
where

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

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

pattern ConditionType_STRINGEQUALS :: ConditionType
pattern $bConditionType_STRINGEQUALS :: ConditionType
$mConditionType_STRINGEQUALS :: forall r. ConditionType -> (Void# -> r) -> (Void# -> r) -> r
ConditionType_STRINGEQUALS = ConditionType' "STRINGEQUALS"

{-# COMPLETE
  ConditionType_STRINGEQUALS,
  ConditionType'
  #-}