{-# 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.SageMaker.Types.FileSystemType
-- 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.SageMaker.Types.FileSystemType
  ( FileSystemType
      ( ..,
        FileSystemType_EFS,
        FileSystemType_FSxLustre
      ),
  )
where

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

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

pattern FileSystemType_EFS :: FileSystemType
pattern $bFileSystemType_EFS :: FileSystemType
$mFileSystemType_EFS :: forall r. FileSystemType -> (Void# -> r) -> (Void# -> r) -> r
FileSystemType_EFS = FileSystemType' "EFS"

pattern FileSystemType_FSxLustre :: FileSystemType
pattern $bFileSystemType_FSxLustre :: FileSystemType
$mFileSystemType_FSxLustre :: forall r. FileSystemType -> (Void# -> r) -> (Void# -> r) -> r
FileSystemType_FSxLustre = FileSystemType' "FSxLustre"

{-# COMPLETE
  FileSystemType_EFS,
  FileSystemType_FSxLustre,
  FileSystemType'
  #-}