{-# 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.WorkSpaces.Types.Protocol
-- 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.WorkSpaces.Types.Protocol
  ( Protocol
      ( ..,
        Protocol_PCOIP,
        Protocol_WSP
      ),
  )
where

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

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

pattern Protocol_PCOIP :: Protocol
pattern $bProtocol_PCOIP :: Protocol
$mProtocol_PCOIP :: forall {r}. Protocol -> ((# #) -> r) -> ((# #) -> r) -> r
Protocol_PCOIP = Protocol' "PCOIP"

pattern Protocol_WSP :: Protocol
pattern $bProtocol_WSP :: Protocol
$mProtocol_WSP :: forall {r}. Protocol -> ((# #) -> r) -> ((# #) -> r) -> r
Protocol_WSP = Protocol' "WSP"

{-# COMPLETE
  Protocol_PCOIP,
  Protocol_WSP,
  Protocol'
  #-}