{-# 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.Snowball.Types.TransferOption
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Snowball.Types.TransferOption
  ( TransferOption
      ( ..,
        TransferOption_EXPORT,
        TransferOption_IMPORT,
        TransferOption_LOCAL_USE
      ),
  )
where

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

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

pattern TransferOption_EXPORT :: TransferOption
pattern $bTransferOption_EXPORT :: TransferOption
$mTransferOption_EXPORT :: forall r. TransferOption -> (Void# -> r) -> (Void# -> r) -> r
TransferOption_EXPORT = TransferOption' "EXPORT"

pattern TransferOption_IMPORT :: TransferOption
pattern $bTransferOption_IMPORT :: TransferOption
$mTransferOption_IMPORT :: forall r. TransferOption -> (Void# -> r) -> (Void# -> r) -> r
TransferOption_IMPORT = TransferOption' "IMPORT"

pattern TransferOption_LOCAL_USE :: TransferOption
pattern $bTransferOption_LOCAL_USE :: TransferOption
$mTransferOption_LOCAL_USE :: forall r. TransferOption -> (Void# -> r) -> (Void# -> r) -> r
TransferOption_LOCAL_USE = TransferOption' "LOCAL_USE"

{-# COMPLETE
  TransferOption_EXPORT,
  TransferOption_IMPORT,
  TransferOption_LOCAL_USE,
  TransferOption'
  #-}