{-# 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.WorkDocs.Types.SubscriptionProtocolType
-- 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.WorkDocs.Types.SubscriptionProtocolType
  ( SubscriptionProtocolType
      ( ..,
        SubscriptionProtocolType_HTTPS
      ),
  )
where

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

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

pattern SubscriptionProtocolType_HTTPS :: SubscriptionProtocolType
pattern $bSubscriptionProtocolType_HTTPS :: SubscriptionProtocolType
$mSubscriptionProtocolType_HTTPS :: forall r.
SubscriptionProtocolType -> (Void# -> r) -> (Void# -> r) -> r
SubscriptionProtocolType_HTTPS = SubscriptionProtocolType' "HTTPS"

{-# COMPLETE
  SubscriptionProtocolType_HTTPS,
  SubscriptionProtocolType'
  #-}