{-# 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.ObjectStorageServerProtocol
( ObjectStorageServerProtocol
( ..,
ObjectStorageServerProtocol_HTTP,
ObjectStorageServerProtocol_HTTPS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ObjectStorageServerProtocol = ObjectStorageServerProtocol'
{ ObjectStorageServerProtocol -> Text
fromObjectStorageServerProtocol ::
Core.Text
}
deriving stock
( Int -> ObjectStorageServerProtocol -> ShowS
[ObjectStorageServerProtocol] -> ShowS
ObjectStorageServerProtocol -> String
(Int -> ObjectStorageServerProtocol -> ShowS)
-> (ObjectStorageServerProtocol -> String)
-> ([ObjectStorageServerProtocol] -> ShowS)
-> Show ObjectStorageServerProtocol
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ObjectStorageServerProtocol] -> ShowS
$cshowList :: [ObjectStorageServerProtocol] -> ShowS
show :: ObjectStorageServerProtocol -> String
$cshow :: ObjectStorageServerProtocol -> String
showsPrec :: Int -> ObjectStorageServerProtocol -> ShowS
$cshowsPrec :: Int -> ObjectStorageServerProtocol -> ShowS
Prelude.Show,
ReadPrec [ObjectStorageServerProtocol]
ReadPrec ObjectStorageServerProtocol
Int -> ReadS ObjectStorageServerProtocol
ReadS [ObjectStorageServerProtocol]
(Int -> ReadS ObjectStorageServerProtocol)
-> ReadS [ObjectStorageServerProtocol]
-> ReadPrec ObjectStorageServerProtocol
-> ReadPrec [ObjectStorageServerProtocol]
-> Read ObjectStorageServerProtocol
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ObjectStorageServerProtocol]
$creadListPrec :: ReadPrec [ObjectStorageServerProtocol]
readPrec :: ReadPrec ObjectStorageServerProtocol
$creadPrec :: ReadPrec ObjectStorageServerProtocol
readList :: ReadS [ObjectStorageServerProtocol]
$creadList :: ReadS [ObjectStorageServerProtocol]
readsPrec :: Int -> ReadS ObjectStorageServerProtocol
$creadsPrec :: Int -> ReadS ObjectStorageServerProtocol
Prelude.Read,
ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
(ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Bool)
-> (ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Bool)
-> Eq ObjectStorageServerProtocol
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
$c/= :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
== :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
$c== :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
Prelude.Eq,
Eq ObjectStorageServerProtocol
Eq ObjectStorageServerProtocol
-> (ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Ordering)
-> (ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Bool)
-> (ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Bool)
-> (ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Bool)
-> (ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Bool)
-> (ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> ObjectStorageServerProtocol)
-> (ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> ObjectStorageServerProtocol)
-> Ord ObjectStorageServerProtocol
ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Ordering
ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> ObjectStorageServerProtocol
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 :: ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> ObjectStorageServerProtocol
$cmin :: ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> ObjectStorageServerProtocol
max :: ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> ObjectStorageServerProtocol
$cmax :: ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> ObjectStorageServerProtocol
>= :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
$c>= :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
> :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
$c> :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
<= :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
$c<= :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
< :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
$c< :: ObjectStorageServerProtocol -> ObjectStorageServerProtocol -> Bool
compare :: ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Ordering
$ccompare :: ObjectStorageServerProtocol
-> ObjectStorageServerProtocol -> Ordering
$cp1Ord :: Eq ObjectStorageServerProtocol
Prelude.Ord,
(forall x.
ObjectStorageServerProtocol -> Rep ObjectStorageServerProtocol x)
-> (forall x.
Rep ObjectStorageServerProtocol x -> ObjectStorageServerProtocol)
-> Generic ObjectStorageServerProtocol
forall x.
Rep ObjectStorageServerProtocol x -> ObjectStorageServerProtocol
forall x.
ObjectStorageServerProtocol -> Rep ObjectStorageServerProtocol x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ObjectStorageServerProtocol x -> ObjectStorageServerProtocol
$cfrom :: forall x.
ObjectStorageServerProtocol -> Rep ObjectStorageServerProtocol x
Prelude.Generic
)
deriving newtype
( Int -> ObjectStorageServerProtocol -> Int
ObjectStorageServerProtocol -> Int
(Int -> ObjectStorageServerProtocol -> Int)
-> (ObjectStorageServerProtocol -> Int)
-> Hashable ObjectStorageServerProtocol
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ObjectStorageServerProtocol -> Int
$chash :: ObjectStorageServerProtocol -> Int
hashWithSalt :: Int -> ObjectStorageServerProtocol -> Int
$chashWithSalt :: Int -> ObjectStorageServerProtocol -> Int
Prelude.Hashable,
ObjectStorageServerProtocol -> ()
(ObjectStorageServerProtocol -> ())
-> NFData ObjectStorageServerProtocol
forall a. (a -> ()) -> NFData a
rnf :: ObjectStorageServerProtocol -> ()
$crnf :: ObjectStorageServerProtocol -> ()
Prelude.NFData,
Text -> Either String ObjectStorageServerProtocol
(Text -> Either String ObjectStorageServerProtocol)
-> FromText ObjectStorageServerProtocol
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ObjectStorageServerProtocol
$cfromText :: Text -> Either String ObjectStorageServerProtocol
Core.FromText,
ObjectStorageServerProtocol -> Text
(ObjectStorageServerProtocol -> Text)
-> ToText ObjectStorageServerProtocol
forall a. (a -> Text) -> ToText a
toText :: ObjectStorageServerProtocol -> Text
$ctoText :: ObjectStorageServerProtocol -> Text
Core.ToText,
ObjectStorageServerProtocol -> ByteString
(ObjectStorageServerProtocol -> ByteString)
-> ToByteString ObjectStorageServerProtocol
forall a. (a -> ByteString) -> ToByteString a
toBS :: ObjectStorageServerProtocol -> ByteString
$ctoBS :: ObjectStorageServerProtocol -> ByteString
Core.ToByteString,
ObjectStorageServerProtocol -> ByteStringBuilder
(ObjectStorageServerProtocol -> ByteStringBuilder)
-> ToLog ObjectStorageServerProtocol
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ObjectStorageServerProtocol -> ByteStringBuilder
$cbuild :: ObjectStorageServerProtocol -> ByteStringBuilder
Core.ToLog,
HeaderName -> ObjectStorageServerProtocol -> [Header]
(HeaderName -> ObjectStorageServerProtocol -> [Header])
-> ToHeader ObjectStorageServerProtocol
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ObjectStorageServerProtocol -> [Header]
$ctoHeader :: HeaderName -> ObjectStorageServerProtocol -> [Header]
Core.ToHeader,
ObjectStorageServerProtocol -> QueryString
(ObjectStorageServerProtocol -> QueryString)
-> ToQuery ObjectStorageServerProtocol
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ObjectStorageServerProtocol -> QueryString
$ctoQuery :: ObjectStorageServerProtocol -> QueryString
Core.ToQuery,
Value -> Parser [ObjectStorageServerProtocol]
Value -> Parser ObjectStorageServerProtocol
(Value -> Parser ObjectStorageServerProtocol)
-> (Value -> Parser [ObjectStorageServerProtocol])
-> FromJSON ObjectStorageServerProtocol
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ObjectStorageServerProtocol]
$cparseJSONList :: Value -> Parser [ObjectStorageServerProtocol]
parseJSON :: Value -> Parser ObjectStorageServerProtocol
$cparseJSON :: Value -> Parser ObjectStorageServerProtocol
Core.FromJSON,
FromJSONKeyFunction [ObjectStorageServerProtocol]
FromJSONKeyFunction ObjectStorageServerProtocol
FromJSONKeyFunction ObjectStorageServerProtocol
-> FromJSONKeyFunction [ObjectStorageServerProtocol]
-> FromJSONKey ObjectStorageServerProtocol
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ObjectStorageServerProtocol]
$cfromJSONKeyList :: FromJSONKeyFunction [ObjectStorageServerProtocol]
fromJSONKey :: FromJSONKeyFunction ObjectStorageServerProtocol
$cfromJSONKey :: FromJSONKeyFunction ObjectStorageServerProtocol
Core.FromJSONKey,
[ObjectStorageServerProtocol] -> Encoding
[ObjectStorageServerProtocol] -> Value
ObjectStorageServerProtocol -> Encoding
ObjectStorageServerProtocol -> Value
(ObjectStorageServerProtocol -> Value)
-> (ObjectStorageServerProtocol -> Encoding)
-> ([ObjectStorageServerProtocol] -> Value)
-> ([ObjectStorageServerProtocol] -> Encoding)
-> ToJSON ObjectStorageServerProtocol
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ObjectStorageServerProtocol] -> Encoding
$ctoEncodingList :: [ObjectStorageServerProtocol] -> Encoding
toJSONList :: [ObjectStorageServerProtocol] -> Value
$ctoJSONList :: [ObjectStorageServerProtocol] -> Value
toEncoding :: ObjectStorageServerProtocol -> Encoding
$ctoEncoding :: ObjectStorageServerProtocol -> Encoding
toJSON :: ObjectStorageServerProtocol -> Value
$ctoJSON :: ObjectStorageServerProtocol -> Value
Core.ToJSON,
ToJSONKeyFunction [ObjectStorageServerProtocol]
ToJSONKeyFunction ObjectStorageServerProtocol
ToJSONKeyFunction ObjectStorageServerProtocol
-> ToJSONKeyFunction [ObjectStorageServerProtocol]
-> ToJSONKey ObjectStorageServerProtocol
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ObjectStorageServerProtocol]
$ctoJSONKeyList :: ToJSONKeyFunction [ObjectStorageServerProtocol]
toJSONKey :: ToJSONKeyFunction ObjectStorageServerProtocol
$ctoJSONKey :: ToJSONKeyFunction ObjectStorageServerProtocol
Core.ToJSONKey,
[Node] -> Either String ObjectStorageServerProtocol
([Node] -> Either String ObjectStorageServerProtocol)
-> FromXML ObjectStorageServerProtocol
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ObjectStorageServerProtocol
$cparseXML :: [Node] -> Either String ObjectStorageServerProtocol
Core.FromXML,
ObjectStorageServerProtocol -> XML
(ObjectStorageServerProtocol -> XML)
-> ToXML ObjectStorageServerProtocol
forall a. (a -> XML) -> ToXML a
toXML :: ObjectStorageServerProtocol -> XML
$ctoXML :: ObjectStorageServerProtocol -> XML
Core.ToXML
)
pattern ObjectStorageServerProtocol_HTTP :: ObjectStorageServerProtocol
pattern $bObjectStorageServerProtocol_HTTP :: ObjectStorageServerProtocol
$mObjectStorageServerProtocol_HTTP :: forall r.
ObjectStorageServerProtocol -> (Void# -> r) -> (Void# -> r) -> r
ObjectStorageServerProtocol_HTTP = ObjectStorageServerProtocol' "HTTP"
pattern ObjectStorageServerProtocol_HTTPS :: ObjectStorageServerProtocol
pattern $bObjectStorageServerProtocol_HTTPS :: ObjectStorageServerProtocol
$mObjectStorageServerProtocol_HTTPS :: forall r.
ObjectStorageServerProtocol -> (Void# -> r) -> (Void# -> r) -> r
ObjectStorageServerProtocol_HTTPS = ObjectStorageServerProtocol' "HTTPS"
{-# COMPLETE
ObjectStorageServerProtocol_HTTP,
ObjectStorageServerProtocol_HTTPS,
ObjectStorageServerProtocol'
#-}