{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AlexaBusiness.Types.SipType
( SipType
( ..,
SipType_WORK
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SipType = SipType' {SipType -> Text
fromSipType :: Core.Text}
deriving stock
( Int -> SipType -> ShowS
[SipType] -> ShowS
SipType -> String
(Int -> SipType -> ShowS)
-> (SipType -> String) -> ([SipType] -> ShowS) -> Show SipType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SipType] -> ShowS
$cshowList :: [SipType] -> ShowS
show :: SipType -> String
$cshow :: SipType -> String
showsPrec :: Int -> SipType -> ShowS
$cshowsPrec :: Int -> SipType -> ShowS
Prelude.Show,
ReadPrec [SipType]
ReadPrec SipType
Int -> ReadS SipType
ReadS [SipType]
(Int -> ReadS SipType)
-> ReadS [SipType]
-> ReadPrec SipType
-> ReadPrec [SipType]
-> Read SipType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SipType]
$creadListPrec :: ReadPrec [SipType]
readPrec :: ReadPrec SipType
$creadPrec :: ReadPrec SipType
readList :: ReadS [SipType]
$creadList :: ReadS [SipType]
readsPrec :: Int -> ReadS SipType
$creadsPrec :: Int -> ReadS SipType
Prelude.Read,
SipType -> SipType -> Bool
(SipType -> SipType -> Bool)
-> (SipType -> SipType -> Bool) -> Eq SipType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SipType -> SipType -> Bool
$c/= :: SipType -> SipType -> Bool
== :: SipType -> SipType -> Bool
$c== :: SipType -> SipType -> Bool
Prelude.Eq,
Eq SipType
Eq SipType
-> (SipType -> SipType -> Ordering)
-> (SipType -> SipType -> Bool)
-> (SipType -> SipType -> Bool)
-> (SipType -> SipType -> Bool)
-> (SipType -> SipType -> Bool)
-> (SipType -> SipType -> SipType)
-> (SipType -> SipType -> SipType)
-> Ord SipType
SipType -> SipType -> Bool
SipType -> SipType -> Ordering
SipType -> SipType -> SipType
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 :: SipType -> SipType -> SipType
$cmin :: SipType -> SipType -> SipType
max :: SipType -> SipType -> SipType
$cmax :: SipType -> SipType -> SipType
>= :: SipType -> SipType -> Bool
$c>= :: SipType -> SipType -> Bool
> :: SipType -> SipType -> Bool
$c> :: SipType -> SipType -> Bool
<= :: SipType -> SipType -> Bool
$c<= :: SipType -> SipType -> Bool
< :: SipType -> SipType -> Bool
$c< :: SipType -> SipType -> Bool
compare :: SipType -> SipType -> Ordering
$ccompare :: SipType -> SipType -> Ordering
$cp1Ord :: Eq SipType
Prelude.Ord,
(forall x. SipType -> Rep SipType x)
-> (forall x. Rep SipType x -> SipType) -> Generic SipType
forall x. Rep SipType x -> SipType
forall x. SipType -> Rep SipType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SipType x -> SipType
$cfrom :: forall x. SipType -> Rep SipType x
Prelude.Generic
)
deriving newtype
( Int -> SipType -> Int
SipType -> Int
(Int -> SipType -> Int) -> (SipType -> Int) -> Hashable SipType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SipType -> Int
$chash :: SipType -> Int
hashWithSalt :: Int -> SipType -> Int
$chashWithSalt :: Int -> SipType -> Int
Prelude.Hashable,
SipType -> ()
(SipType -> ()) -> NFData SipType
forall a. (a -> ()) -> NFData a
rnf :: SipType -> ()
$crnf :: SipType -> ()
Prelude.NFData,
Text -> Either String SipType
(Text -> Either String SipType) -> FromText SipType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SipType
$cfromText :: Text -> Either String SipType
Core.FromText,
SipType -> Text
(SipType -> Text) -> ToText SipType
forall a. (a -> Text) -> ToText a
toText :: SipType -> Text
$ctoText :: SipType -> Text
Core.ToText,
SipType -> ByteString
(SipType -> ByteString) -> ToByteString SipType
forall a. (a -> ByteString) -> ToByteString a
toBS :: SipType -> ByteString
$ctoBS :: SipType -> ByteString
Core.ToByteString,
SipType -> ByteStringBuilder
(SipType -> ByteStringBuilder) -> ToLog SipType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SipType -> ByteStringBuilder
$cbuild :: SipType -> ByteStringBuilder
Core.ToLog,
HeaderName -> SipType -> [Header]
(HeaderName -> SipType -> [Header]) -> ToHeader SipType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SipType -> [Header]
$ctoHeader :: HeaderName -> SipType -> [Header]
Core.ToHeader,
SipType -> QueryString
(SipType -> QueryString) -> ToQuery SipType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SipType -> QueryString
$ctoQuery :: SipType -> QueryString
Core.ToQuery,
Value -> Parser [SipType]
Value -> Parser SipType
(Value -> Parser SipType)
-> (Value -> Parser [SipType]) -> FromJSON SipType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SipType]
$cparseJSONList :: Value -> Parser [SipType]
parseJSON :: Value -> Parser SipType
$cparseJSON :: Value -> Parser SipType
Core.FromJSON,
FromJSONKeyFunction [SipType]
FromJSONKeyFunction SipType
FromJSONKeyFunction SipType
-> FromJSONKeyFunction [SipType] -> FromJSONKey SipType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SipType]
$cfromJSONKeyList :: FromJSONKeyFunction [SipType]
fromJSONKey :: FromJSONKeyFunction SipType
$cfromJSONKey :: FromJSONKeyFunction SipType
Core.FromJSONKey,
[SipType] -> Encoding
[SipType] -> Value
SipType -> Encoding
SipType -> Value
(SipType -> Value)
-> (SipType -> Encoding)
-> ([SipType] -> Value)
-> ([SipType] -> Encoding)
-> ToJSON SipType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SipType] -> Encoding
$ctoEncodingList :: [SipType] -> Encoding
toJSONList :: [SipType] -> Value
$ctoJSONList :: [SipType] -> Value
toEncoding :: SipType -> Encoding
$ctoEncoding :: SipType -> Encoding
toJSON :: SipType -> Value
$ctoJSON :: SipType -> Value
Core.ToJSON,
ToJSONKeyFunction [SipType]
ToJSONKeyFunction SipType
ToJSONKeyFunction SipType
-> ToJSONKeyFunction [SipType] -> ToJSONKey SipType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SipType]
$ctoJSONKeyList :: ToJSONKeyFunction [SipType]
toJSONKey :: ToJSONKeyFunction SipType
$ctoJSONKey :: ToJSONKeyFunction SipType
Core.ToJSONKey,
[Node] -> Either String SipType
([Node] -> Either String SipType) -> FromXML SipType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SipType
$cparseXML :: [Node] -> Either String SipType
Core.FromXML,
SipType -> XML
(SipType -> XML) -> ToXML SipType
forall a. (a -> XML) -> ToXML a
toXML :: SipType -> XML
$ctoXML :: SipType -> XML
Core.ToXML
)
pattern SipType_WORK :: SipType
pattern $bSipType_WORK :: SipType
$mSipType_WORK :: forall r. SipType -> (Void# -> r) -> (Void# -> r) -> r
SipType_WORK = SipType' "WORK"
{-# COMPLETE
SipType_WORK,
SipType'
#-}