{-# 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.DeviceFarm.Types.NetworkProfileType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DeviceFarm.Types.NetworkProfileType
  ( NetworkProfileType
      ( ..,
        NetworkProfileType_CURATED,
        NetworkProfileType_PRIVATE
      ),
  )
where

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

newtype NetworkProfileType = NetworkProfileType'
  { NetworkProfileType -> Text
fromNetworkProfileType ::
      Data.Text
  }
  deriving stock
    ( Int -> NetworkProfileType -> ShowS
[NetworkProfileType] -> ShowS
NetworkProfileType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq NetworkProfileType
Int -> NetworkProfileType -> Int
NetworkProfileType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: NetworkProfileType -> ()
$crnf :: NetworkProfileType -> ()
Prelude.NFData,
      Text -> Either String NetworkProfileType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NetworkProfileType
$cfromText :: Text -> Either String NetworkProfileType
Data.FromText,
      NetworkProfileType -> Text
forall a. (a -> Text) -> ToText a
toText :: NetworkProfileType -> Text
$ctoText :: NetworkProfileType -> Text
Data.ToText,
      NetworkProfileType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: NetworkProfileType -> ByteString
$ctoBS :: NetworkProfileType -> ByteString
Data.ToByteString,
      NetworkProfileType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NetworkProfileType -> ByteStringBuilder
$cbuild :: NetworkProfileType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> NetworkProfileType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NetworkProfileType -> [Header]
$ctoHeader :: HeaderName -> NetworkProfileType -> [Header]
Data.ToHeader,
      NetworkProfileType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NetworkProfileType -> QueryString
$ctoQuery :: NetworkProfileType -> QueryString
Data.ToQuery,
      Value -> Parser [NetworkProfileType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [NetworkProfileType]
FromJSONKeyFunction NetworkProfileType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NetworkProfileType]
$cfromJSONKeyList :: FromJSONKeyFunction [NetworkProfileType]
fromJSONKey :: FromJSONKeyFunction NetworkProfileType
$cfromJSONKey :: FromJSONKeyFunction NetworkProfileType
Data.FromJSONKey,
      [NetworkProfileType] -> Encoding
[NetworkProfileType] -> Value
NetworkProfileType -> Encoding
NetworkProfileType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [NetworkProfileType]
ToJSONKeyFunction NetworkProfileType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NetworkProfileType]
$ctoJSONKeyList :: ToJSONKeyFunction [NetworkProfileType]
toJSONKey :: ToJSONKeyFunction NetworkProfileType
$ctoJSONKey :: ToJSONKeyFunction NetworkProfileType
Data.ToJSONKey,
      [Node] -> Either String NetworkProfileType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NetworkProfileType
$cparseXML :: [Node] -> Either String NetworkProfileType
Data.FromXML,
      NetworkProfileType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: NetworkProfileType -> XML
$ctoXML :: NetworkProfileType -> XML
Data.ToXML
    )

pattern NetworkProfileType_CURATED :: NetworkProfileType
pattern $bNetworkProfileType_CURATED :: NetworkProfileType
$mNetworkProfileType_CURATED :: forall {r}. NetworkProfileType -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkProfileType_CURATED = NetworkProfileType' "CURATED"

pattern NetworkProfileType_PRIVATE :: NetworkProfileType
pattern $bNetworkProfileType_PRIVATE :: NetworkProfileType
$mNetworkProfileType_PRIVATE :: forall {r}. NetworkProfileType -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkProfileType_PRIVATE = NetworkProfileType' "PRIVATE"

{-# COMPLETE
  NetworkProfileType_CURATED,
  NetworkProfileType_PRIVATE,
  NetworkProfileType'
  #-}