{-# 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.ProtocolValue
-- 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.ProtocolValue
  ( ProtocolValue
      ( ..,
        ProtocolValue_Gre
      ),
  )
where

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

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

pattern ProtocolValue_Gre :: ProtocolValue
pattern $bProtocolValue_Gre :: ProtocolValue
$mProtocolValue_Gre :: forall {r}. ProtocolValue -> ((# #) -> r) -> ((# #) -> r) -> r
ProtocolValue_Gre = ProtocolValue' "gre"

{-# COMPLETE
  ProtocolValue_Gre,
  ProtocolValue'
  #-}