{-# 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.NfsVersion
-- 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.NfsVersion
  ( NfsVersion
      ( ..,
        NfsVersion_AUTOMATIC,
        NfsVersion_NFS3,
        NfsVersion_NFS4_0,
        NfsVersion_NFS4_1
      ),
  )
where

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

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

pattern NfsVersion_AUTOMATIC :: NfsVersion
pattern $bNfsVersion_AUTOMATIC :: NfsVersion
$mNfsVersion_AUTOMATIC :: forall r. NfsVersion -> (Void# -> r) -> (Void# -> r) -> r
NfsVersion_AUTOMATIC = NfsVersion' "AUTOMATIC"

pattern NfsVersion_NFS3 :: NfsVersion
pattern $bNfsVersion_NFS3 :: NfsVersion
$mNfsVersion_NFS3 :: forall r. NfsVersion -> (Void# -> r) -> (Void# -> r) -> r
NfsVersion_NFS3 = NfsVersion' "NFS3"

pattern NfsVersion_NFS4_0 :: NfsVersion
pattern $bNfsVersion_NFS4_0 :: NfsVersion
$mNfsVersion_NFS4_0 :: forall r. NfsVersion -> (Void# -> r) -> (Void# -> r) -> r
NfsVersion_NFS4_0 = NfsVersion' "NFS4_0"

pattern NfsVersion_NFS4_1 :: NfsVersion
pattern $bNfsVersion_NFS4_1 :: NfsVersion
$mNfsVersion_NFS4_1 :: forall r. NfsVersion -> (Void# -> r) -> (Void# -> r) -> r
NfsVersion_NFS4_1 = NfsVersion' "NFS4_1"

{-# COMPLETE
  NfsVersion_AUTOMATIC,
  NfsVersion_NFS3,
  NfsVersion_NFS4_0,
  NfsVersion_NFS4_1,
  NfsVersion'
  #-}