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

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

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

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

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

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