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