{-# 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.NetworkFirewall.Types.FirewallStatusValue
-- 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.NetworkFirewall.Types.FirewallStatusValue
  ( FirewallStatusValue
      ( ..,
        FirewallStatusValue_DELETING,
        FirewallStatusValue_PROVISIONING,
        FirewallStatusValue_READY
      ),
  )
where

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

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

pattern FirewallStatusValue_DELETING :: FirewallStatusValue
pattern $bFirewallStatusValue_DELETING :: FirewallStatusValue
$mFirewallStatusValue_DELETING :: forall r. FirewallStatusValue -> (Void# -> r) -> (Void# -> r) -> r
FirewallStatusValue_DELETING = FirewallStatusValue' "DELETING"

pattern FirewallStatusValue_PROVISIONING :: FirewallStatusValue
pattern $bFirewallStatusValue_PROVISIONING :: FirewallStatusValue
$mFirewallStatusValue_PROVISIONING :: forall r. FirewallStatusValue -> (Void# -> r) -> (Void# -> r) -> r
FirewallStatusValue_PROVISIONING = FirewallStatusValue' "PROVISIONING"

pattern FirewallStatusValue_READY :: FirewallStatusValue
pattern $bFirewallStatusValue_READY :: FirewallStatusValue
$mFirewallStatusValue_READY :: forall r. FirewallStatusValue -> (Void# -> r) -> (Void# -> r) -> r
FirewallStatusValue_READY = FirewallStatusValue' "READY"

{-# COMPLETE
  FirewallStatusValue_DELETING,
  FirewallStatusValue_PROVISIONING,
  FirewallStatusValue_READY,
  FirewallStatusValue'
  #-}