{-# 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.NetworkManager.Types.RouteState
-- 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.NetworkManager.Types.RouteState
  ( RouteState
      ( ..,
        RouteState_ACTIVE,
        RouteState_BLACKHOLE
      ),
  )
where

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

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

pattern RouteState_ACTIVE :: RouteState
pattern $bRouteState_ACTIVE :: RouteState
$mRouteState_ACTIVE :: forall {r}. RouteState -> ((# #) -> r) -> ((# #) -> r) -> r
RouteState_ACTIVE = RouteState' "ACTIVE"

pattern RouteState_BLACKHOLE :: RouteState
pattern $bRouteState_BLACKHOLE :: RouteState
$mRouteState_BLACKHOLE :: forall {r}. RouteState -> ((# #) -> r) -> ((# #) -> r) -> r
RouteState_BLACKHOLE = RouteState' "BLACKHOLE"

{-# COMPLETE
  RouteState_ACTIVE,
  RouteState_BLACKHOLE,
  RouteState'
  #-}