{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DataSync.Types.ObjectStorageServerProtocol
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DataSync.Types.ObjectStorageServerProtocol
  ( ObjectStorageServerProtocol
      ( ..,
        ObjectStorageServerProtocol_HTTP,
        ObjectStorageServerProtocol_HTTPS
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ObjectStorageServerProtocol = ObjectStorageServerProtocol'
  { ObjectStorageServerProtocol -> Text
fromObjectStorageServerProtocol ::
      Data.Text
  }
  deriving stock
    ( Int -> ObjectStorageServerProtocol -> ShowS
[ObjectStorageServerProtocol] -> ShowS
ObjectStorageServerProtocol -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ObjectStorageServerProtocol
Int -> ObjectStorageServerProtocol -> Int
ObjectStorageServerProtocol -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ObjectStorageServerProtocol -> ()
$crnf :: ObjectStorageServerProtocol -> ()
Prelude.NFData,
      Text -> Either String ObjectStorageServerProtocol
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ObjectStorageServerProtocol
$cfromText :: Text -> Either String ObjectStorageServerProtocol
Data.FromText,
      ObjectStorageServerProtocol -> Text
forall a. (a -> Text) -> ToText a
toText :: ObjectStorageServerProtocol -> Text
$ctoText :: ObjectStorageServerProtocol -> Text
Data.ToText,
      ObjectStorageServerProtocol -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ObjectStorageServerProtocol -> ByteString
$ctoBS :: ObjectStorageServerProtocol -> ByteString
Data.ToByteString,
      ObjectStorageServerProtocol -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ObjectStorageServerProtocol -> ByteStringBuilder
$cbuild :: ObjectStorageServerProtocol -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ObjectStorageServerProtocol -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ObjectStorageServerProtocol -> [Header]
$ctoHeader :: HeaderName -> ObjectStorageServerProtocol -> [Header]
Data.ToHeader,
      ObjectStorageServerProtocol -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ObjectStorageServerProtocol -> QueryString
$ctoQuery :: ObjectStorageServerProtocol -> QueryString
Data.ToQuery,
      Value -> Parser [ObjectStorageServerProtocol]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ObjectStorageServerProtocol]
FromJSONKeyFunction ObjectStorageServerProtocol
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ObjectStorageServerProtocol]
$cfromJSONKeyList :: FromJSONKeyFunction [ObjectStorageServerProtocol]
fromJSONKey :: FromJSONKeyFunction ObjectStorageServerProtocol
$cfromJSONKey :: FromJSONKeyFunction ObjectStorageServerProtocol
Data.FromJSONKey,
      [ObjectStorageServerProtocol] -> Encoding
[ObjectStorageServerProtocol] -> Value
ObjectStorageServerProtocol -> Encoding
ObjectStorageServerProtocol -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ObjectStorageServerProtocol]
ToJSONKeyFunction ObjectStorageServerProtocol
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ObjectStorageServerProtocol]
$ctoJSONKeyList :: ToJSONKeyFunction [ObjectStorageServerProtocol]
toJSONKey :: ToJSONKeyFunction ObjectStorageServerProtocol
$ctoJSONKey :: ToJSONKeyFunction ObjectStorageServerProtocol
Data.ToJSONKey,
      [Node] -> Either String ObjectStorageServerProtocol
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ObjectStorageServerProtocol
$cparseXML :: [Node] -> Either String ObjectStorageServerProtocol
Data.FromXML,
      ObjectStorageServerProtocol -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ObjectStorageServerProtocol -> XML
$ctoXML :: ObjectStorageServerProtocol -> XML
Data.ToXML
    )

pattern ObjectStorageServerProtocol_HTTP :: ObjectStorageServerProtocol
pattern $bObjectStorageServerProtocol_HTTP :: ObjectStorageServerProtocol
$mObjectStorageServerProtocol_HTTP :: forall {r}.
ObjectStorageServerProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
ObjectStorageServerProtocol_HTTP = ObjectStorageServerProtocol' "HTTP"

pattern ObjectStorageServerProtocol_HTTPS :: ObjectStorageServerProtocol
pattern $bObjectStorageServerProtocol_HTTPS :: ObjectStorageServerProtocol
$mObjectStorageServerProtocol_HTTPS :: forall {r}.
ObjectStorageServerProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
ObjectStorageServerProtocol_HTTPS = ObjectStorageServerProtocol' "HTTPS"

{-# COMPLETE
  ObjectStorageServerProtocol_HTTP,
  ObjectStorageServerProtocol_HTTPS,
  ObjectStorageServerProtocol'
  #-}