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