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