{-# 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.Connect.Types.HoursOfOperationDays
-- 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.Connect.Types.HoursOfOperationDays
  ( HoursOfOperationDays
      ( ..,
        HoursOfOperationDays_FRIDAY,
        HoursOfOperationDays_MONDAY,
        HoursOfOperationDays_SATURDAY,
        HoursOfOperationDays_SUNDAY,
        HoursOfOperationDays_THURSDAY,
        HoursOfOperationDays_TUESDAY,
        HoursOfOperationDays_WEDNESDAY
      ),
  )
where

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

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

pattern HoursOfOperationDays_FRIDAY :: HoursOfOperationDays
pattern $bHoursOfOperationDays_FRIDAY :: HoursOfOperationDays
$mHoursOfOperationDays_FRIDAY :: forall r. HoursOfOperationDays -> (Void# -> r) -> (Void# -> r) -> r
HoursOfOperationDays_FRIDAY = HoursOfOperationDays' "FRIDAY"

pattern HoursOfOperationDays_MONDAY :: HoursOfOperationDays
pattern $bHoursOfOperationDays_MONDAY :: HoursOfOperationDays
$mHoursOfOperationDays_MONDAY :: forall r. HoursOfOperationDays -> (Void# -> r) -> (Void# -> r) -> r
HoursOfOperationDays_MONDAY = HoursOfOperationDays' "MONDAY"

pattern HoursOfOperationDays_SATURDAY :: HoursOfOperationDays
pattern $bHoursOfOperationDays_SATURDAY :: HoursOfOperationDays
$mHoursOfOperationDays_SATURDAY :: forall r. HoursOfOperationDays -> (Void# -> r) -> (Void# -> r) -> r
HoursOfOperationDays_SATURDAY = HoursOfOperationDays' "SATURDAY"

pattern HoursOfOperationDays_SUNDAY :: HoursOfOperationDays
pattern $bHoursOfOperationDays_SUNDAY :: HoursOfOperationDays
$mHoursOfOperationDays_SUNDAY :: forall r. HoursOfOperationDays -> (Void# -> r) -> (Void# -> r) -> r
HoursOfOperationDays_SUNDAY = HoursOfOperationDays' "SUNDAY"

pattern HoursOfOperationDays_THURSDAY :: HoursOfOperationDays
pattern $bHoursOfOperationDays_THURSDAY :: HoursOfOperationDays
$mHoursOfOperationDays_THURSDAY :: forall r. HoursOfOperationDays -> (Void# -> r) -> (Void# -> r) -> r
HoursOfOperationDays_THURSDAY = HoursOfOperationDays' "THURSDAY"

pattern HoursOfOperationDays_TUESDAY :: HoursOfOperationDays
pattern $bHoursOfOperationDays_TUESDAY :: HoursOfOperationDays
$mHoursOfOperationDays_TUESDAY :: forall r. HoursOfOperationDays -> (Void# -> r) -> (Void# -> r) -> r
HoursOfOperationDays_TUESDAY = HoursOfOperationDays' "TUESDAY"

pattern HoursOfOperationDays_WEDNESDAY :: HoursOfOperationDays
pattern $bHoursOfOperationDays_WEDNESDAY :: HoursOfOperationDays
$mHoursOfOperationDays_WEDNESDAY :: forall r. HoursOfOperationDays -> (Void# -> r) -> (Void# -> r) -> r
HoursOfOperationDays_WEDNESDAY = HoursOfOperationDays' "WEDNESDAY"

{-# COMPLETE
  HoursOfOperationDays_FRIDAY,
  HoursOfOperationDays_MONDAY,
  HoursOfOperationDays_SATURDAY,
  HoursOfOperationDays_SUNDAY,
  HoursOfOperationDays_THURSDAY,
  HoursOfOperationDays_TUESDAY,
  HoursOfOperationDays_WEDNESDAY,
  HoursOfOperationDays'
  #-}