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