{-# 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.DMS.Types.DatePartitionSequenceValue
-- 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.DMS.Types.DatePartitionSequenceValue
  ( DatePartitionSequenceValue
      ( ..,
        DatePartitionSequenceValue_DDMMYYYY,
        DatePartitionSequenceValue_MMYYYYDD,
        DatePartitionSequenceValue_YYYYMM,
        DatePartitionSequenceValue_YYYYMMDD,
        DatePartitionSequenceValue_YYYYMMDDHH
      ),
  )
where

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

newtype DatePartitionSequenceValue = DatePartitionSequenceValue'
  { DatePartitionSequenceValue -> Text
fromDatePartitionSequenceValue ::
      Data.Text
  }
  deriving stock
    ( Int -> DatePartitionSequenceValue -> ShowS
[DatePartitionSequenceValue] -> ShowS
DatePartitionSequenceValue -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq DatePartitionSequenceValue
Int -> DatePartitionSequenceValue -> Int
DatePartitionSequenceValue -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: DatePartitionSequenceValue -> ()
$crnf :: DatePartitionSequenceValue -> ()
Prelude.NFData,
      Text -> Either String DatePartitionSequenceValue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DatePartitionSequenceValue
$cfromText :: Text -> Either String DatePartitionSequenceValue
Data.FromText,
      DatePartitionSequenceValue -> Text
forall a. (a -> Text) -> ToText a
toText :: DatePartitionSequenceValue -> Text
$ctoText :: DatePartitionSequenceValue -> Text
Data.ToText,
      DatePartitionSequenceValue -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DatePartitionSequenceValue -> ByteString
$ctoBS :: DatePartitionSequenceValue -> ByteString
Data.ToByteString,
      DatePartitionSequenceValue -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DatePartitionSequenceValue -> ByteStringBuilder
$cbuild :: DatePartitionSequenceValue -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DatePartitionSequenceValue -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DatePartitionSequenceValue -> [Header]
$ctoHeader :: HeaderName -> DatePartitionSequenceValue -> [Header]
Data.ToHeader,
      DatePartitionSequenceValue -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DatePartitionSequenceValue -> QueryString
$ctoQuery :: DatePartitionSequenceValue -> QueryString
Data.ToQuery,
      Value -> Parser [DatePartitionSequenceValue]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [DatePartitionSequenceValue]
FromJSONKeyFunction DatePartitionSequenceValue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DatePartitionSequenceValue]
$cfromJSONKeyList :: FromJSONKeyFunction [DatePartitionSequenceValue]
fromJSONKey :: FromJSONKeyFunction DatePartitionSequenceValue
$cfromJSONKey :: FromJSONKeyFunction DatePartitionSequenceValue
Data.FromJSONKey,
      [DatePartitionSequenceValue] -> Encoding
[DatePartitionSequenceValue] -> Value
DatePartitionSequenceValue -> Encoding
DatePartitionSequenceValue -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [DatePartitionSequenceValue]
ToJSONKeyFunction DatePartitionSequenceValue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DatePartitionSequenceValue]
$ctoJSONKeyList :: ToJSONKeyFunction [DatePartitionSequenceValue]
toJSONKey :: ToJSONKeyFunction DatePartitionSequenceValue
$ctoJSONKey :: ToJSONKeyFunction DatePartitionSequenceValue
Data.ToJSONKey,
      [Node] -> Either String DatePartitionSequenceValue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DatePartitionSequenceValue
$cparseXML :: [Node] -> Either String DatePartitionSequenceValue
Data.FromXML,
      DatePartitionSequenceValue -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DatePartitionSequenceValue -> XML
$ctoXML :: DatePartitionSequenceValue -> XML
Data.ToXML
    )

pattern DatePartitionSequenceValue_DDMMYYYY :: DatePartitionSequenceValue
pattern $bDatePartitionSequenceValue_DDMMYYYY :: DatePartitionSequenceValue
$mDatePartitionSequenceValue_DDMMYYYY :: forall {r}.
DatePartitionSequenceValue -> ((# #) -> r) -> ((# #) -> r) -> r
DatePartitionSequenceValue_DDMMYYYY = DatePartitionSequenceValue' "DDMMYYYY"

pattern DatePartitionSequenceValue_MMYYYYDD :: DatePartitionSequenceValue
pattern $bDatePartitionSequenceValue_MMYYYYDD :: DatePartitionSequenceValue
$mDatePartitionSequenceValue_MMYYYYDD :: forall {r}.
DatePartitionSequenceValue -> ((# #) -> r) -> ((# #) -> r) -> r
DatePartitionSequenceValue_MMYYYYDD = DatePartitionSequenceValue' "MMYYYYDD"

pattern DatePartitionSequenceValue_YYYYMM :: DatePartitionSequenceValue
pattern $bDatePartitionSequenceValue_YYYYMM :: DatePartitionSequenceValue
$mDatePartitionSequenceValue_YYYYMM :: forall {r}.
DatePartitionSequenceValue -> ((# #) -> r) -> ((# #) -> r) -> r
DatePartitionSequenceValue_YYYYMM = DatePartitionSequenceValue' "YYYYMM"

pattern DatePartitionSequenceValue_YYYYMMDD :: DatePartitionSequenceValue
pattern $bDatePartitionSequenceValue_YYYYMMDD :: DatePartitionSequenceValue
$mDatePartitionSequenceValue_YYYYMMDD :: forall {r}.
DatePartitionSequenceValue -> ((# #) -> r) -> ((# #) -> r) -> r
DatePartitionSequenceValue_YYYYMMDD = DatePartitionSequenceValue' "YYYYMMDD"

pattern DatePartitionSequenceValue_YYYYMMDDHH :: DatePartitionSequenceValue
pattern $bDatePartitionSequenceValue_YYYYMMDDHH :: DatePartitionSequenceValue
$mDatePartitionSequenceValue_YYYYMMDDHH :: forall {r}.
DatePartitionSequenceValue -> ((# #) -> r) -> ((# #) -> r) -> r
DatePartitionSequenceValue_YYYYMMDDHH = DatePartitionSequenceValue' "YYYYMMDDHH"

{-# COMPLETE
  DatePartitionSequenceValue_DDMMYYYY,
  DatePartitionSequenceValue_MMYYYYDD,
  DatePartitionSequenceValue_YYYYMM,
  DatePartitionSequenceValue_YYYYMMDD,
  DatePartitionSequenceValue_YYYYMMDDHH,
  DatePartitionSequenceValue'
  #-}