{-# 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.RBin.Types.RuleStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.RBin.Types.RuleStatus
  ( RuleStatus
      ( ..,
        RuleStatus_Available,
        RuleStatus_Pending
      ),
  )
where

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

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

pattern RuleStatus_Available :: RuleStatus
pattern $bRuleStatus_Available :: RuleStatus
$mRuleStatus_Available :: forall {r}. RuleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RuleStatus_Available = RuleStatus' "available"

pattern RuleStatus_Pending :: RuleStatus
pattern $bRuleStatus_Pending :: RuleStatus
$mRuleStatus_Pending :: forall {r}. RuleStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RuleStatus_Pending = RuleStatus' "pending"

{-# COMPLETE
  RuleStatus_Available,
  RuleStatus_Pending,
  RuleStatus'
  #-}