{-# 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.LexV2Models.Types.TimeDimension
-- 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.LexV2Models.Types.TimeDimension
  ( TimeDimension
      ( ..,
        TimeDimension_Days,
        TimeDimension_Hours,
        TimeDimension_Weeks
      ),
  )
where

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

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

pattern TimeDimension_Days :: TimeDimension
pattern $bTimeDimension_Days :: TimeDimension
$mTimeDimension_Days :: forall {r}. TimeDimension -> ((# #) -> r) -> ((# #) -> r) -> r
TimeDimension_Days = TimeDimension' "Days"

pattern TimeDimension_Hours :: TimeDimension
pattern $bTimeDimension_Hours :: TimeDimension
$mTimeDimension_Hours :: forall {r}. TimeDimension -> ((# #) -> r) -> ((# #) -> r) -> r
TimeDimension_Hours = TimeDimension' "Hours"

pattern TimeDimension_Weeks :: TimeDimension
pattern $bTimeDimension_Weeks :: TimeDimension
$mTimeDimension_Weeks :: forall {r}. TimeDimension -> ((# #) -> r) -> ((# #) -> r) -> r
TimeDimension_Weeks = TimeDimension' "Weeks"

{-# COMPLETE
  TimeDimension_Days,
  TimeDimension_Hours,
  TimeDimension_Weeks,
  TimeDimension'
  #-}