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