{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DLM.Types.IntervalUnitValues
( IntervalUnitValues
( ..,
IntervalUnitValues_HOURS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype IntervalUnitValues = IntervalUnitValues'
{ IntervalUnitValues -> Text
fromIntervalUnitValues ::
Core.Text
}
deriving stock
( Int -> IntervalUnitValues -> ShowS
[IntervalUnitValues] -> ShowS
IntervalUnitValues -> String
(Int -> IntervalUnitValues -> ShowS)
-> (IntervalUnitValues -> String)
-> ([IntervalUnitValues] -> ShowS)
-> Show IntervalUnitValues
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IntervalUnitValues] -> ShowS
$cshowList :: [IntervalUnitValues] -> ShowS
show :: IntervalUnitValues -> String
$cshow :: IntervalUnitValues -> String
showsPrec :: Int -> IntervalUnitValues -> ShowS
$cshowsPrec :: Int -> IntervalUnitValues -> ShowS
Prelude.Show,
ReadPrec [IntervalUnitValues]
ReadPrec IntervalUnitValues
Int -> ReadS IntervalUnitValues
ReadS [IntervalUnitValues]
(Int -> ReadS IntervalUnitValues)
-> ReadS [IntervalUnitValues]
-> ReadPrec IntervalUnitValues
-> ReadPrec [IntervalUnitValues]
-> Read IntervalUnitValues
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IntervalUnitValues]
$creadListPrec :: ReadPrec [IntervalUnitValues]
readPrec :: ReadPrec IntervalUnitValues
$creadPrec :: ReadPrec IntervalUnitValues
readList :: ReadS [IntervalUnitValues]
$creadList :: ReadS [IntervalUnitValues]
readsPrec :: Int -> ReadS IntervalUnitValues
$creadsPrec :: Int -> ReadS IntervalUnitValues
Prelude.Read,
IntervalUnitValues -> IntervalUnitValues -> Bool
(IntervalUnitValues -> IntervalUnitValues -> Bool)
-> (IntervalUnitValues -> IntervalUnitValues -> Bool)
-> Eq IntervalUnitValues
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IntervalUnitValues -> IntervalUnitValues -> Bool
$c/= :: IntervalUnitValues -> IntervalUnitValues -> Bool
== :: IntervalUnitValues -> IntervalUnitValues -> Bool
$c== :: IntervalUnitValues -> IntervalUnitValues -> Bool
Prelude.Eq,
Eq IntervalUnitValues
Eq IntervalUnitValues
-> (IntervalUnitValues -> IntervalUnitValues -> Ordering)
-> (IntervalUnitValues -> IntervalUnitValues -> Bool)
-> (IntervalUnitValues -> IntervalUnitValues -> Bool)
-> (IntervalUnitValues -> IntervalUnitValues -> Bool)
-> (IntervalUnitValues -> IntervalUnitValues -> Bool)
-> (IntervalUnitValues -> IntervalUnitValues -> IntervalUnitValues)
-> (IntervalUnitValues -> IntervalUnitValues -> IntervalUnitValues)
-> Ord IntervalUnitValues
IntervalUnitValues -> IntervalUnitValues -> Bool
IntervalUnitValues -> IntervalUnitValues -> Ordering
IntervalUnitValues -> IntervalUnitValues -> IntervalUnitValues
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 :: IntervalUnitValues -> IntervalUnitValues -> IntervalUnitValues
$cmin :: IntervalUnitValues -> IntervalUnitValues -> IntervalUnitValues
max :: IntervalUnitValues -> IntervalUnitValues -> IntervalUnitValues
$cmax :: IntervalUnitValues -> IntervalUnitValues -> IntervalUnitValues
>= :: IntervalUnitValues -> IntervalUnitValues -> Bool
$c>= :: IntervalUnitValues -> IntervalUnitValues -> Bool
> :: IntervalUnitValues -> IntervalUnitValues -> Bool
$c> :: IntervalUnitValues -> IntervalUnitValues -> Bool
<= :: IntervalUnitValues -> IntervalUnitValues -> Bool
$c<= :: IntervalUnitValues -> IntervalUnitValues -> Bool
< :: IntervalUnitValues -> IntervalUnitValues -> Bool
$c< :: IntervalUnitValues -> IntervalUnitValues -> Bool
compare :: IntervalUnitValues -> IntervalUnitValues -> Ordering
$ccompare :: IntervalUnitValues -> IntervalUnitValues -> Ordering
$cp1Ord :: Eq IntervalUnitValues
Prelude.Ord,
(forall x. IntervalUnitValues -> Rep IntervalUnitValues x)
-> (forall x. Rep IntervalUnitValues x -> IntervalUnitValues)
-> Generic IntervalUnitValues
forall x. Rep IntervalUnitValues x -> IntervalUnitValues
forall x. IntervalUnitValues -> Rep IntervalUnitValues x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep IntervalUnitValues x -> IntervalUnitValues
$cfrom :: forall x. IntervalUnitValues -> Rep IntervalUnitValues x
Prelude.Generic
)
deriving newtype
( Int -> IntervalUnitValues -> Int
IntervalUnitValues -> Int
(Int -> IntervalUnitValues -> Int)
-> (IntervalUnitValues -> Int) -> Hashable IntervalUnitValues
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: IntervalUnitValues -> Int
$chash :: IntervalUnitValues -> Int
hashWithSalt :: Int -> IntervalUnitValues -> Int
$chashWithSalt :: Int -> IntervalUnitValues -> Int
Prelude.Hashable,
IntervalUnitValues -> ()
(IntervalUnitValues -> ()) -> NFData IntervalUnitValues
forall a. (a -> ()) -> NFData a
rnf :: IntervalUnitValues -> ()
$crnf :: IntervalUnitValues -> ()
Prelude.NFData,
Text -> Either String IntervalUnitValues
(Text -> Either String IntervalUnitValues)
-> FromText IntervalUnitValues
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String IntervalUnitValues
$cfromText :: Text -> Either String IntervalUnitValues
Core.FromText,
IntervalUnitValues -> Text
(IntervalUnitValues -> Text) -> ToText IntervalUnitValues
forall a. (a -> Text) -> ToText a
toText :: IntervalUnitValues -> Text
$ctoText :: IntervalUnitValues -> Text
Core.ToText,
IntervalUnitValues -> ByteString
(IntervalUnitValues -> ByteString)
-> ToByteString IntervalUnitValues
forall a. (a -> ByteString) -> ToByteString a
toBS :: IntervalUnitValues -> ByteString
$ctoBS :: IntervalUnitValues -> ByteString
Core.ToByteString,
IntervalUnitValues -> ByteStringBuilder
(IntervalUnitValues -> ByteStringBuilder)
-> ToLog IntervalUnitValues
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: IntervalUnitValues -> ByteStringBuilder
$cbuild :: IntervalUnitValues -> ByteStringBuilder
Core.ToLog,
HeaderName -> IntervalUnitValues -> [Header]
(HeaderName -> IntervalUnitValues -> [Header])
-> ToHeader IntervalUnitValues
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> IntervalUnitValues -> [Header]
$ctoHeader :: HeaderName -> IntervalUnitValues -> [Header]
Core.ToHeader,
IntervalUnitValues -> QueryString
(IntervalUnitValues -> QueryString) -> ToQuery IntervalUnitValues
forall a. (a -> QueryString) -> ToQuery a
toQuery :: IntervalUnitValues -> QueryString
$ctoQuery :: IntervalUnitValues -> QueryString
Core.ToQuery,
Value -> Parser [IntervalUnitValues]
Value -> Parser IntervalUnitValues
(Value -> Parser IntervalUnitValues)
-> (Value -> Parser [IntervalUnitValues])
-> FromJSON IntervalUnitValues
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [IntervalUnitValues]
$cparseJSONList :: Value -> Parser [IntervalUnitValues]
parseJSON :: Value -> Parser IntervalUnitValues
$cparseJSON :: Value -> Parser IntervalUnitValues
Core.FromJSON,
FromJSONKeyFunction [IntervalUnitValues]
FromJSONKeyFunction IntervalUnitValues
FromJSONKeyFunction IntervalUnitValues
-> FromJSONKeyFunction [IntervalUnitValues]
-> FromJSONKey IntervalUnitValues
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [IntervalUnitValues]
$cfromJSONKeyList :: FromJSONKeyFunction [IntervalUnitValues]
fromJSONKey :: FromJSONKeyFunction IntervalUnitValues
$cfromJSONKey :: FromJSONKeyFunction IntervalUnitValues
Core.FromJSONKey,
[IntervalUnitValues] -> Encoding
[IntervalUnitValues] -> Value
IntervalUnitValues -> Encoding
IntervalUnitValues -> Value
(IntervalUnitValues -> Value)
-> (IntervalUnitValues -> Encoding)
-> ([IntervalUnitValues] -> Value)
-> ([IntervalUnitValues] -> Encoding)
-> ToJSON IntervalUnitValues
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [IntervalUnitValues] -> Encoding
$ctoEncodingList :: [IntervalUnitValues] -> Encoding
toJSONList :: [IntervalUnitValues] -> Value
$ctoJSONList :: [IntervalUnitValues] -> Value
toEncoding :: IntervalUnitValues -> Encoding
$ctoEncoding :: IntervalUnitValues -> Encoding
toJSON :: IntervalUnitValues -> Value
$ctoJSON :: IntervalUnitValues -> Value
Core.ToJSON,
ToJSONKeyFunction [IntervalUnitValues]
ToJSONKeyFunction IntervalUnitValues
ToJSONKeyFunction IntervalUnitValues
-> ToJSONKeyFunction [IntervalUnitValues]
-> ToJSONKey IntervalUnitValues
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [IntervalUnitValues]
$ctoJSONKeyList :: ToJSONKeyFunction [IntervalUnitValues]
toJSONKey :: ToJSONKeyFunction IntervalUnitValues
$ctoJSONKey :: ToJSONKeyFunction IntervalUnitValues
Core.ToJSONKey,
[Node] -> Either String IntervalUnitValues
([Node] -> Either String IntervalUnitValues)
-> FromXML IntervalUnitValues
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String IntervalUnitValues
$cparseXML :: [Node] -> Either String IntervalUnitValues
Core.FromXML,
IntervalUnitValues -> XML
(IntervalUnitValues -> XML) -> ToXML IntervalUnitValues
forall a. (a -> XML) -> ToXML a
toXML :: IntervalUnitValues -> XML
$ctoXML :: IntervalUnitValues -> XML
Core.ToXML
)
pattern IntervalUnitValues_HOURS :: IntervalUnitValues
pattern $bIntervalUnitValues_HOURS :: IntervalUnitValues
$mIntervalUnitValues_HOURS :: forall r. IntervalUnitValues -> (Void# -> r) -> (Void# -> r) -> r
IntervalUnitValues_HOURS = IntervalUnitValues' "HOURS"
{-# COMPLETE
IntervalUnitValues_HOURS,
IntervalUnitValues'
#-}