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