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