{-# 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.EC2.Types.DynamicRoutingValue
-- 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.EC2.Types.DynamicRoutingValue
  ( DynamicRoutingValue
      ( ..,
        DynamicRoutingValue_Disable,
        DynamicRoutingValue_Enable
      ),
  )
where

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

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

pattern DynamicRoutingValue_Disable :: DynamicRoutingValue
pattern $bDynamicRoutingValue_Disable :: DynamicRoutingValue
$mDynamicRoutingValue_Disable :: forall {r}.
DynamicRoutingValue -> ((# #) -> r) -> ((# #) -> r) -> r
DynamicRoutingValue_Disable = DynamicRoutingValue' "disable"

pattern DynamicRoutingValue_Enable :: DynamicRoutingValue
pattern $bDynamicRoutingValue_Enable :: DynamicRoutingValue
$mDynamicRoutingValue_Enable :: forall {r}.
DynamicRoutingValue -> ((# #) -> r) -> ((# #) -> r) -> r
DynamicRoutingValue_Enable = DynamicRoutingValue' "enable"

{-# COMPLETE
  DynamicRoutingValue_Disable,
  DynamicRoutingValue_Enable,
  DynamicRoutingValue'
  #-}