{-# 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.WorkMail.Types.AvailabilityProviderType
-- 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.WorkMail.Types.AvailabilityProviderType
  ( AvailabilityProviderType
      ( ..,
        AvailabilityProviderType_EWS,
        AvailabilityProviderType_LAMBDA
      ),
  )
where

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

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

pattern AvailabilityProviderType_EWS :: AvailabilityProviderType
pattern $bAvailabilityProviderType_EWS :: AvailabilityProviderType
$mAvailabilityProviderType_EWS :: forall {r}.
AvailabilityProviderType -> ((# #) -> r) -> ((# #) -> r) -> r
AvailabilityProviderType_EWS = AvailabilityProviderType' "EWS"

pattern AvailabilityProviderType_LAMBDA :: AvailabilityProviderType
pattern $bAvailabilityProviderType_LAMBDA :: AvailabilityProviderType
$mAvailabilityProviderType_LAMBDA :: forall {r}.
AvailabilityProviderType -> ((# #) -> r) -> ((# #) -> r) -> r
AvailabilityProviderType_LAMBDA = AvailabilityProviderType' "LAMBDA"

{-# COMPLETE
  AvailabilityProviderType_EWS,
  AvailabilityProviderType_LAMBDA,
  AvailabilityProviderType'
  #-}