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