{-# 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.AlexaBusiness.Types.BusinessReportInterval
-- 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.AlexaBusiness.Types.BusinessReportInterval
  ( BusinessReportInterval
      ( ..,
        BusinessReportInterval_ONE_DAY,
        BusinessReportInterval_ONE_WEEK,
        BusinessReportInterval_THIRTY_DAYS
      ),
  )
where

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

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

pattern BusinessReportInterval_ONE_DAY :: BusinessReportInterval
pattern $bBusinessReportInterval_ONE_DAY :: BusinessReportInterval
$mBusinessReportInterval_ONE_DAY :: forall r.
BusinessReportInterval -> (Void# -> r) -> (Void# -> r) -> r
BusinessReportInterval_ONE_DAY = BusinessReportInterval' "ONE_DAY"

pattern BusinessReportInterval_ONE_WEEK :: BusinessReportInterval
pattern $bBusinessReportInterval_ONE_WEEK :: BusinessReportInterval
$mBusinessReportInterval_ONE_WEEK :: forall r.
BusinessReportInterval -> (Void# -> r) -> (Void# -> r) -> r
BusinessReportInterval_ONE_WEEK = BusinessReportInterval' "ONE_WEEK"

pattern BusinessReportInterval_THIRTY_DAYS :: BusinessReportInterval
pattern $bBusinessReportInterval_THIRTY_DAYS :: BusinessReportInterval
$mBusinessReportInterval_THIRTY_DAYS :: forall r.
BusinessReportInterval -> (Void# -> r) -> (Void# -> r) -> r
BusinessReportInterval_THIRTY_DAYS = BusinessReportInterval' "THIRTY_DAYS"

{-# COMPLETE
  BusinessReportInterval_ONE_DAY,
  BusinessReportInterval_ONE_WEEK,
  BusinessReportInterval_THIRTY_DAYS,
  BusinessReportInterval'
  #-}