{-# 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.Scheduler.Types.FlexibleTimeWindowMode
-- 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.Scheduler.Types.FlexibleTimeWindowMode
  ( FlexibleTimeWindowMode
      ( ..,
        FlexibleTimeWindowMode_FLEXIBLE,
        FlexibleTimeWindowMode_OFF
      ),
  )
where

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

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

pattern FlexibleTimeWindowMode_FLEXIBLE :: FlexibleTimeWindowMode
pattern $bFlexibleTimeWindowMode_FLEXIBLE :: FlexibleTimeWindowMode
$mFlexibleTimeWindowMode_FLEXIBLE :: forall {r}.
FlexibleTimeWindowMode -> ((# #) -> r) -> ((# #) -> r) -> r
FlexibleTimeWindowMode_FLEXIBLE = FlexibleTimeWindowMode' "FLEXIBLE"

pattern FlexibleTimeWindowMode_OFF :: FlexibleTimeWindowMode
pattern $bFlexibleTimeWindowMode_OFF :: FlexibleTimeWindowMode
$mFlexibleTimeWindowMode_OFF :: forall {r}.
FlexibleTimeWindowMode -> ((# #) -> r) -> ((# #) -> r) -> r
FlexibleTimeWindowMode_OFF = FlexibleTimeWindowMode' "OFF"

{-# COMPLETE
  FlexibleTimeWindowMode_FLEXIBLE,
  FlexibleTimeWindowMode_OFF,
  FlexibleTimeWindowMode'
  #-}