{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SageMaker.Types.FileSystemAccessMode
( FileSystemAccessMode
( ..,
FileSystemAccessMode_Ro,
FileSystemAccessMode_Rw
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype FileSystemAccessMode = FileSystemAccessMode'
{ FileSystemAccessMode -> Text
fromFileSystemAccessMode ::
Core.Text
}
deriving stock
( Int -> FileSystemAccessMode -> ShowS
[FileSystemAccessMode] -> ShowS
FileSystemAccessMode -> String
(Int -> FileSystemAccessMode -> ShowS)
-> (FileSystemAccessMode -> String)
-> ([FileSystemAccessMode] -> ShowS)
-> Show FileSystemAccessMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FileSystemAccessMode] -> ShowS
$cshowList :: [FileSystemAccessMode] -> ShowS
show :: FileSystemAccessMode -> String
$cshow :: FileSystemAccessMode -> String
showsPrec :: Int -> FileSystemAccessMode -> ShowS
$cshowsPrec :: Int -> FileSystemAccessMode -> ShowS
Prelude.Show,
ReadPrec [FileSystemAccessMode]
ReadPrec FileSystemAccessMode
Int -> ReadS FileSystemAccessMode
ReadS [FileSystemAccessMode]
(Int -> ReadS FileSystemAccessMode)
-> ReadS [FileSystemAccessMode]
-> ReadPrec FileSystemAccessMode
-> ReadPrec [FileSystemAccessMode]
-> Read FileSystemAccessMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FileSystemAccessMode]
$creadListPrec :: ReadPrec [FileSystemAccessMode]
readPrec :: ReadPrec FileSystemAccessMode
$creadPrec :: ReadPrec FileSystemAccessMode
readList :: ReadS [FileSystemAccessMode]
$creadList :: ReadS [FileSystemAccessMode]
readsPrec :: Int -> ReadS FileSystemAccessMode
$creadsPrec :: Int -> ReadS FileSystemAccessMode
Prelude.Read,
FileSystemAccessMode -> FileSystemAccessMode -> Bool
(FileSystemAccessMode -> FileSystemAccessMode -> Bool)
-> (FileSystemAccessMode -> FileSystemAccessMode -> Bool)
-> Eq FileSystemAccessMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
$c/= :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
== :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
$c== :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
Prelude.Eq,
Eq FileSystemAccessMode
Eq FileSystemAccessMode
-> (FileSystemAccessMode -> FileSystemAccessMode -> Ordering)
-> (FileSystemAccessMode -> FileSystemAccessMode -> Bool)
-> (FileSystemAccessMode -> FileSystemAccessMode -> Bool)
-> (FileSystemAccessMode -> FileSystemAccessMode -> Bool)
-> (FileSystemAccessMode -> FileSystemAccessMode -> Bool)
-> (FileSystemAccessMode
-> FileSystemAccessMode -> FileSystemAccessMode)
-> (FileSystemAccessMode
-> FileSystemAccessMode -> FileSystemAccessMode)
-> Ord FileSystemAccessMode
FileSystemAccessMode -> FileSystemAccessMode -> Bool
FileSystemAccessMode -> FileSystemAccessMode -> Ordering
FileSystemAccessMode
-> FileSystemAccessMode -> FileSystemAccessMode
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 :: FileSystemAccessMode
-> FileSystemAccessMode -> FileSystemAccessMode
$cmin :: FileSystemAccessMode
-> FileSystemAccessMode -> FileSystemAccessMode
max :: FileSystemAccessMode
-> FileSystemAccessMode -> FileSystemAccessMode
$cmax :: FileSystemAccessMode
-> FileSystemAccessMode -> FileSystemAccessMode
>= :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
$c>= :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
> :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
$c> :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
<= :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
$c<= :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
< :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
$c< :: FileSystemAccessMode -> FileSystemAccessMode -> Bool
compare :: FileSystemAccessMode -> FileSystemAccessMode -> Ordering
$ccompare :: FileSystemAccessMode -> FileSystemAccessMode -> Ordering
$cp1Ord :: Eq FileSystemAccessMode
Prelude.Ord,
(forall x. FileSystemAccessMode -> Rep FileSystemAccessMode x)
-> (forall x. Rep FileSystemAccessMode x -> FileSystemAccessMode)
-> Generic FileSystemAccessMode
forall x. Rep FileSystemAccessMode x -> FileSystemAccessMode
forall x. FileSystemAccessMode -> Rep FileSystemAccessMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FileSystemAccessMode x -> FileSystemAccessMode
$cfrom :: forall x. FileSystemAccessMode -> Rep FileSystemAccessMode x
Prelude.Generic
)
deriving newtype
( Int -> FileSystemAccessMode -> Int
FileSystemAccessMode -> Int
(Int -> FileSystemAccessMode -> Int)
-> (FileSystemAccessMode -> Int) -> Hashable FileSystemAccessMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FileSystemAccessMode -> Int
$chash :: FileSystemAccessMode -> Int
hashWithSalt :: Int -> FileSystemAccessMode -> Int
$chashWithSalt :: Int -> FileSystemAccessMode -> Int
Prelude.Hashable,
FileSystemAccessMode -> ()
(FileSystemAccessMode -> ()) -> NFData FileSystemAccessMode
forall a. (a -> ()) -> NFData a
rnf :: FileSystemAccessMode -> ()
$crnf :: FileSystemAccessMode -> ()
Prelude.NFData,
Text -> Either String FileSystemAccessMode
(Text -> Either String FileSystemAccessMode)
-> FromText FileSystemAccessMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FileSystemAccessMode
$cfromText :: Text -> Either String FileSystemAccessMode
Core.FromText,
FileSystemAccessMode -> Text
(FileSystemAccessMode -> Text) -> ToText FileSystemAccessMode
forall a. (a -> Text) -> ToText a
toText :: FileSystemAccessMode -> Text
$ctoText :: FileSystemAccessMode -> Text
Core.ToText,
FileSystemAccessMode -> ByteString
(FileSystemAccessMode -> ByteString)
-> ToByteString FileSystemAccessMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: FileSystemAccessMode -> ByteString
$ctoBS :: FileSystemAccessMode -> ByteString
Core.ToByteString,
FileSystemAccessMode -> ByteStringBuilder
(FileSystemAccessMode -> ByteStringBuilder)
-> ToLog FileSystemAccessMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FileSystemAccessMode -> ByteStringBuilder
$cbuild :: FileSystemAccessMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> FileSystemAccessMode -> [Header]
(HeaderName -> FileSystemAccessMode -> [Header])
-> ToHeader FileSystemAccessMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FileSystemAccessMode -> [Header]
$ctoHeader :: HeaderName -> FileSystemAccessMode -> [Header]
Core.ToHeader,
FileSystemAccessMode -> QueryString
(FileSystemAccessMode -> QueryString)
-> ToQuery FileSystemAccessMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FileSystemAccessMode -> QueryString
$ctoQuery :: FileSystemAccessMode -> QueryString
Core.ToQuery,
Value -> Parser [FileSystemAccessMode]
Value -> Parser FileSystemAccessMode
(Value -> Parser FileSystemAccessMode)
-> (Value -> Parser [FileSystemAccessMode])
-> FromJSON FileSystemAccessMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FileSystemAccessMode]
$cparseJSONList :: Value -> Parser [FileSystemAccessMode]
parseJSON :: Value -> Parser FileSystemAccessMode
$cparseJSON :: Value -> Parser FileSystemAccessMode
Core.FromJSON,
FromJSONKeyFunction [FileSystemAccessMode]
FromJSONKeyFunction FileSystemAccessMode
FromJSONKeyFunction FileSystemAccessMode
-> FromJSONKeyFunction [FileSystemAccessMode]
-> FromJSONKey FileSystemAccessMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FileSystemAccessMode]
$cfromJSONKeyList :: FromJSONKeyFunction [FileSystemAccessMode]
fromJSONKey :: FromJSONKeyFunction FileSystemAccessMode
$cfromJSONKey :: FromJSONKeyFunction FileSystemAccessMode
Core.FromJSONKey,
[FileSystemAccessMode] -> Encoding
[FileSystemAccessMode] -> Value
FileSystemAccessMode -> Encoding
FileSystemAccessMode -> Value
(FileSystemAccessMode -> Value)
-> (FileSystemAccessMode -> Encoding)
-> ([FileSystemAccessMode] -> Value)
-> ([FileSystemAccessMode] -> Encoding)
-> ToJSON FileSystemAccessMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FileSystemAccessMode] -> Encoding
$ctoEncodingList :: [FileSystemAccessMode] -> Encoding
toJSONList :: [FileSystemAccessMode] -> Value
$ctoJSONList :: [FileSystemAccessMode] -> Value
toEncoding :: FileSystemAccessMode -> Encoding
$ctoEncoding :: FileSystemAccessMode -> Encoding
toJSON :: FileSystemAccessMode -> Value
$ctoJSON :: FileSystemAccessMode -> Value
Core.ToJSON,
ToJSONKeyFunction [FileSystemAccessMode]
ToJSONKeyFunction FileSystemAccessMode
ToJSONKeyFunction FileSystemAccessMode
-> ToJSONKeyFunction [FileSystemAccessMode]
-> ToJSONKey FileSystemAccessMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FileSystemAccessMode]
$ctoJSONKeyList :: ToJSONKeyFunction [FileSystemAccessMode]
toJSONKey :: ToJSONKeyFunction FileSystemAccessMode
$ctoJSONKey :: ToJSONKeyFunction FileSystemAccessMode
Core.ToJSONKey,
[Node] -> Either String FileSystemAccessMode
([Node] -> Either String FileSystemAccessMode)
-> FromXML FileSystemAccessMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FileSystemAccessMode
$cparseXML :: [Node] -> Either String FileSystemAccessMode
Core.FromXML,
FileSystemAccessMode -> XML
(FileSystemAccessMode -> XML) -> ToXML FileSystemAccessMode
forall a. (a -> XML) -> ToXML a
toXML :: FileSystemAccessMode -> XML
$ctoXML :: FileSystemAccessMode -> XML
Core.ToXML
)
pattern FileSystemAccessMode_Ro :: FileSystemAccessMode
pattern $bFileSystemAccessMode_Ro :: FileSystemAccessMode
$mFileSystemAccessMode_Ro :: forall r. FileSystemAccessMode -> (Void# -> r) -> (Void# -> r) -> r
FileSystemAccessMode_Ro = FileSystemAccessMode' "ro"
pattern FileSystemAccessMode_Rw :: FileSystemAccessMode
pattern $bFileSystemAccessMode_Rw :: FileSystemAccessMode
$mFileSystemAccessMode_Rw :: forall r. FileSystemAccessMode -> (Void# -> r) -> (Void# -> r) -> r
FileSystemAccessMode_Rw = FileSystemAccessMode' "rw"
{-# COMPLETE
FileSystemAccessMode_Ro,
FileSystemAccessMode_Rw,
FileSystemAccessMode'
#-}