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