{-# 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.DataSync.Types.Mtime
-- 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.DataSync.Types.Mtime
  ( Mtime
      ( ..,
        Mtime_NONE,
        Mtime_PRESERVE
      ),
  )
where

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

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

pattern Mtime_NONE :: Mtime
pattern $bMtime_NONE :: Mtime
$mMtime_NONE :: forall r. Mtime -> (Void# -> r) -> (Void# -> r) -> r
Mtime_NONE = Mtime' "NONE"

pattern Mtime_PRESERVE :: Mtime
pattern $bMtime_PRESERVE :: Mtime
$mMtime_PRESERVE :: forall r. Mtime -> (Void# -> r) -> (Void# -> r) -> r
Mtime_PRESERVE = Mtime' "PRESERVE"

{-# COMPLETE
  Mtime_NONE,
  Mtime_PRESERVE,
  Mtime'
  #-}