{-# 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.Chime.Types.VoiceConnectorAwsRegion
-- 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.Chime.Types.VoiceConnectorAwsRegion
  ( VoiceConnectorAwsRegion
      ( ..,
        VoiceConnectorAwsRegion_Us_east_1,
        VoiceConnectorAwsRegion_Us_west_2
      ),
  )
where

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

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

pattern VoiceConnectorAwsRegion_Us_east_1 :: VoiceConnectorAwsRegion
pattern $bVoiceConnectorAwsRegion_Us_east_1 :: VoiceConnectorAwsRegion
$mVoiceConnectorAwsRegion_Us_east_1 :: forall r.
VoiceConnectorAwsRegion -> (Void# -> r) -> (Void# -> r) -> r
VoiceConnectorAwsRegion_Us_east_1 = VoiceConnectorAwsRegion' "us-east-1"

pattern VoiceConnectorAwsRegion_Us_west_2 :: VoiceConnectorAwsRegion
pattern $bVoiceConnectorAwsRegion_Us_west_2 :: VoiceConnectorAwsRegion
$mVoiceConnectorAwsRegion_Us_west_2 :: forall r.
VoiceConnectorAwsRegion -> (Void# -> r) -> (Void# -> r) -> r
VoiceConnectorAwsRegion_Us_west_2 = VoiceConnectorAwsRegion' "us-west-2"

{-# COMPLETE
  VoiceConnectorAwsRegion_Us_east_1,
  VoiceConnectorAwsRegion_Us_west_2,
  VoiceConnectorAwsRegion'
  #-}