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