{-# 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.DatePartitionDelimiterValue
-- 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.DMS.Types.DatePartitionDelimiterValue
  ( DatePartitionDelimiterValue
      ( ..,
        DatePartitionDelimiterValue_DASH,
        DatePartitionDelimiterValue_NONE,
        DatePartitionDelimiterValue_SLASH,
        DatePartitionDelimiterValue_UNDERSCORE
      ),
  )
where

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

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

pattern DatePartitionDelimiterValue_DASH :: DatePartitionDelimiterValue
pattern $bDatePartitionDelimiterValue_DASH :: DatePartitionDelimiterValue
$mDatePartitionDelimiterValue_DASH :: forall r.
DatePartitionDelimiterValue -> (Void# -> r) -> (Void# -> r) -> r
DatePartitionDelimiterValue_DASH = DatePartitionDelimiterValue' "DASH"

pattern DatePartitionDelimiterValue_NONE :: DatePartitionDelimiterValue
pattern $bDatePartitionDelimiterValue_NONE :: DatePartitionDelimiterValue
$mDatePartitionDelimiterValue_NONE :: forall r.
DatePartitionDelimiterValue -> (Void# -> r) -> (Void# -> r) -> r
DatePartitionDelimiterValue_NONE = DatePartitionDelimiterValue' "NONE"

pattern DatePartitionDelimiterValue_SLASH :: DatePartitionDelimiterValue
pattern $bDatePartitionDelimiterValue_SLASH :: DatePartitionDelimiterValue
$mDatePartitionDelimiterValue_SLASH :: forall r.
DatePartitionDelimiterValue -> (Void# -> r) -> (Void# -> r) -> r
DatePartitionDelimiterValue_SLASH = DatePartitionDelimiterValue' "SLASH"

pattern DatePartitionDelimiterValue_UNDERSCORE :: DatePartitionDelimiterValue
pattern $bDatePartitionDelimiterValue_UNDERSCORE :: DatePartitionDelimiterValue
$mDatePartitionDelimiterValue_UNDERSCORE :: forall r.
DatePartitionDelimiterValue -> (Void# -> r) -> (Void# -> r) -> r
DatePartitionDelimiterValue_UNDERSCORE = DatePartitionDelimiterValue' "UNDERSCORE"

{-# COMPLETE
  DatePartitionDelimiterValue_DASH,
  DatePartitionDelimiterValue_NONE,
  DatePartitionDelimiterValue_SLASH,
  DatePartitionDelimiterValue_UNDERSCORE,
  DatePartitionDelimiterValue'
  #-}