{-# 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.Atime
-- 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.DataSync.Types.Atime
  ( Atime
      ( ..,
        Atime_BEST_EFFORT,
        Atime_NONE
      ),
  )
where

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

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

pattern Atime_BEST_EFFORT :: Atime
pattern $bAtime_BEST_EFFORT :: Atime
$mAtime_BEST_EFFORT :: forall {r}. Atime -> ((# #) -> r) -> ((# #) -> r) -> r
Atime_BEST_EFFORT = Atime' "BEST_EFFORT"

pattern Atime_NONE :: Atime
pattern $bAtime_NONE :: Atime
$mAtime_NONE :: forall {r}. Atime -> ((# #) -> r) -> ((# #) -> r) -> r
Atime_NONE = Atime' "NONE"

{-# COMPLETE
  Atime_BEST_EFFORT,
  Atime_NONE,
  Atime'
  #-}