{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.MaintenanceDay
( MaintenanceDay
( ..,
MaintenanceDay_FRIDAY,
MaintenanceDay_MONDAY,
MaintenanceDay_SATURDAY,
MaintenanceDay_SUNDAY,
MaintenanceDay_THURSDAY,
MaintenanceDay_TUESDAY,
MaintenanceDay_WEDNESDAY
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype MaintenanceDay = MaintenanceDay'
{ MaintenanceDay -> Text
fromMaintenanceDay ::
Data.Text
}
deriving stock
( Int -> MaintenanceDay -> ShowS
[MaintenanceDay] -> ShowS
MaintenanceDay -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MaintenanceDay] -> ShowS
$cshowList :: [MaintenanceDay] -> ShowS
show :: MaintenanceDay -> String
$cshow :: MaintenanceDay -> String
showsPrec :: Int -> MaintenanceDay -> ShowS
$cshowsPrec :: Int -> MaintenanceDay -> ShowS
Prelude.Show,
ReadPrec [MaintenanceDay]
ReadPrec MaintenanceDay
Int -> ReadS MaintenanceDay
ReadS [MaintenanceDay]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MaintenanceDay]
$creadListPrec :: ReadPrec [MaintenanceDay]
readPrec :: ReadPrec MaintenanceDay
$creadPrec :: ReadPrec MaintenanceDay
readList :: ReadS [MaintenanceDay]
$creadList :: ReadS [MaintenanceDay]
readsPrec :: Int -> ReadS MaintenanceDay
$creadsPrec :: Int -> ReadS MaintenanceDay
Prelude.Read,
MaintenanceDay -> MaintenanceDay -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MaintenanceDay -> MaintenanceDay -> Bool
$c/= :: MaintenanceDay -> MaintenanceDay -> Bool
== :: MaintenanceDay -> MaintenanceDay -> Bool
$c== :: MaintenanceDay -> MaintenanceDay -> Bool
Prelude.Eq,
Eq MaintenanceDay
MaintenanceDay -> MaintenanceDay -> Bool
MaintenanceDay -> MaintenanceDay -> Ordering
MaintenanceDay -> MaintenanceDay -> MaintenanceDay
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 :: MaintenanceDay -> MaintenanceDay -> MaintenanceDay
$cmin :: MaintenanceDay -> MaintenanceDay -> MaintenanceDay
max :: MaintenanceDay -> MaintenanceDay -> MaintenanceDay
$cmax :: MaintenanceDay -> MaintenanceDay -> MaintenanceDay
>= :: MaintenanceDay -> MaintenanceDay -> Bool
$c>= :: MaintenanceDay -> MaintenanceDay -> Bool
> :: MaintenanceDay -> MaintenanceDay -> Bool
$c> :: MaintenanceDay -> MaintenanceDay -> Bool
<= :: MaintenanceDay -> MaintenanceDay -> Bool
$c<= :: MaintenanceDay -> MaintenanceDay -> Bool
< :: MaintenanceDay -> MaintenanceDay -> Bool
$c< :: MaintenanceDay -> MaintenanceDay -> Bool
compare :: MaintenanceDay -> MaintenanceDay -> Ordering
$ccompare :: MaintenanceDay -> MaintenanceDay -> Ordering
Prelude.Ord,
forall x. Rep MaintenanceDay x -> MaintenanceDay
forall x. MaintenanceDay -> Rep MaintenanceDay x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MaintenanceDay x -> MaintenanceDay
$cfrom :: forall x. MaintenanceDay -> Rep MaintenanceDay x
Prelude.Generic
)
deriving newtype
( Eq MaintenanceDay
Int -> MaintenanceDay -> Int
MaintenanceDay -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MaintenanceDay -> Int
$chash :: MaintenanceDay -> Int
hashWithSalt :: Int -> MaintenanceDay -> Int
$chashWithSalt :: Int -> MaintenanceDay -> Int
Prelude.Hashable,
MaintenanceDay -> ()
forall a. (a -> ()) -> NFData a
rnf :: MaintenanceDay -> ()
$crnf :: MaintenanceDay -> ()
Prelude.NFData,
Text -> Either String MaintenanceDay
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MaintenanceDay
$cfromText :: Text -> Either String MaintenanceDay
Data.FromText,
MaintenanceDay -> Text
forall a. (a -> Text) -> ToText a
toText :: MaintenanceDay -> Text
$ctoText :: MaintenanceDay -> Text
Data.ToText,
MaintenanceDay -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MaintenanceDay -> ByteString
$ctoBS :: MaintenanceDay -> ByteString
Data.ToByteString,
MaintenanceDay -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MaintenanceDay -> ByteStringBuilder
$cbuild :: MaintenanceDay -> ByteStringBuilder
Data.ToLog,
HeaderName -> MaintenanceDay -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MaintenanceDay -> [Header]
$ctoHeader :: HeaderName -> MaintenanceDay -> [Header]
Data.ToHeader,
MaintenanceDay -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MaintenanceDay -> QueryString
$ctoQuery :: MaintenanceDay -> QueryString
Data.ToQuery,
Value -> Parser [MaintenanceDay]
Value -> Parser MaintenanceDay
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MaintenanceDay]
$cparseJSONList :: Value -> Parser [MaintenanceDay]
parseJSON :: Value -> Parser MaintenanceDay
$cparseJSON :: Value -> Parser MaintenanceDay
Data.FromJSON,
FromJSONKeyFunction [MaintenanceDay]
FromJSONKeyFunction MaintenanceDay
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MaintenanceDay]
$cfromJSONKeyList :: FromJSONKeyFunction [MaintenanceDay]
fromJSONKey :: FromJSONKeyFunction MaintenanceDay
$cfromJSONKey :: FromJSONKeyFunction MaintenanceDay
Data.FromJSONKey,
[MaintenanceDay] -> Encoding
[MaintenanceDay] -> Value
MaintenanceDay -> Encoding
MaintenanceDay -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MaintenanceDay] -> Encoding
$ctoEncodingList :: [MaintenanceDay] -> Encoding
toJSONList :: [MaintenanceDay] -> Value
$ctoJSONList :: [MaintenanceDay] -> Value
toEncoding :: MaintenanceDay -> Encoding
$ctoEncoding :: MaintenanceDay -> Encoding
toJSON :: MaintenanceDay -> Value
$ctoJSON :: MaintenanceDay -> Value
Data.ToJSON,
ToJSONKeyFunction [MaintenanceDay]
ToJSONKeyFunction MaintenanceDay
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MaintenanceDay]
$ctoJSONKeyList :: ToJSONKeyFunction [MaintenanceDay]
toJSONKey :: ToJSONKeyFunction MaintenanceDay
$ctoJSONKey :: ToJSONKeyFunction MaintenanceDay
Data.ToJSONKey,
[Node] -> Either String MaintenanceDay
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MaintenanceDay
$cparseXML :: [Node] -> Either String MaintenanceDay
Data.FromXML,
MaintenanceDay -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MaintenanceDay -> XML
$ctoXML :: MaintenanceDay -> XML
Data.ToXML
)
pattern MaintenanceDay_FRIDAY :: MaintenanceDay
pattern $bMaintenanceDay_FRIDAY :: MaintenanceDay
$mMaintenanceDay_FRIDAY :: forall {r}. MaintenanceDay -> ((# #) -> r) -> ((# #) -> r) -> r
MaintenanceDay_FRIDAY = MaintenanceDay' "FRIDAY"
pattern MaintenanceDay_MONDAY :: MaintenanceDay
pattern $bMaintenanceDay_MONDAY :: MaintenanceDay
$mMaintenanceDay_MONDAY :: forall {r}. MaintenanceDay -> ((# #) -> r) -> ((# #) -> r) -> r
MaintenanceDay_MONDAY = MaintenanceDay' "MONDAY"
pattern MaintenanceDay_SATURDAY :: MaintenanceDay
pattern $bMaintenanceDay_SATURDAY :: MaintenanceDay
$mMaintenanceDay_SATURDAY :: forall {r}. MaintenanceDay -> ((# #) -> r) -> ((# #) -> r) -> r
MaintenanceDay_SATURDAY = MaintenanceDay' "SATURDAY"
pattern MaintenanceDay_SUNDAY :: MaintenanceDay
pattern $bMaintenanceDay_SUNDAY :: MaintenanceDay
$mMaintenanceDay_SUNDAY :: forall {r}. MaintenanceDay -> ((# #) -> r) -> ((# #) -> r) -> r
MaintenanceDay_SUNDAY = MaintenanceDay' "SUNDAY"
pattern MaintenanceDay_THURSDAY :: MaintenanceDay
pattern $bMaintenanceDay_THURSDAY :: MaintenanceDay
$mMaintenanceDay_THURSDAY :: forall {r}. MaintenanceDay -> ((# #) -> r) -> ((# #) -> r) -> r
MaintenanceDay_THURSDAY = MaintenanceDay' "THURSDAY"
pattern MaintenanceDay_TUESDAY :: MaintenanceDay
pattern $bMaintenanceDay_TUESDAY :: MaintenanceDay
$mMaintenanceDay_TUESDAY :: forall {r}. MaintenanceDay -> ((# #) -> r) -> ((# #) -> r) -> r
MaintenanceDay_TUESDAY = MaintenanceDay' "TUESDAY"
pattern MaintenanceDay_WEDNESDAY :: MaintenanceDay
pattern $bMaintenanceDay_WEDNESDAY :: MaintenanceDay
$mMaintenanceDay_WEDNESDAY :: forall {r}. MaintenanceDay -> ((# #) -> r) -> ((# #) -> r) -> r
MaintenanceDay_WEDNESDAY = MaintenanceDay' "WEDNESDAY"
{-# COMPLETE
MaintenanceDay_FRIDAY,
MaintenanceDay_MONDAY,
MaintenanceDay_SATURDAY,
MaintenanceDay_SUNDAY,
MaintenanceDay_THURSDAY,
MaintenanceDay_TUESDAY,
MaintenanceDay_WEDNESDAY,
MaintenanceDay'
#-}