{-# 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.AlexaBusiness.Types.NetworkSecurityType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AlexaBusiness.Types.NetworkSecurityType
  ( NetworkSecurityType
      ( ..,
        NetworkSecurityType_OPEN,
        NetworkSecurityType_WEP,
        NetworkSecurityType_WPA2_ENTERPRISE,
        NetworkSecurityType_WPA2_PSK,
        NetworkSecurityType_WPA_PSK
      ),
  )
where

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

newtype NetworkSecurityType = NetworkSecurityType'
  { NetworkSecurityType -> Text
fromNetworkSecurityType ::
      Core.Text
  }
  deriving stock
    ( Int -> NetworkSecurityType -> ShowS
[NetworkSecurityType] -> ShowS
NetworkSecurityType -> String
(Int -> NetworkSecurityType -> ShowS)
-> (NetworkSecurityType -> String)
-> ([NetworkSecurityType] -> ShowS)
-> Show NetworkSecurityType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NetworkSecurityType] -> ShowS
$cshowList :: [NetworkSecurityType] -> ShowS
show :: NetworkSecurityType -> String
$cshow :: NetworkSecurityType -> String
showsPrec :: Int -> NetworkSecurityType -> ShowS
$cshowsPrec :: Int -> NetworkSecurityType -> ShowS
Prelude.Show,
      ReadPrec [NetworkSecurityType]
ReadPrec NetworkSecurityType
Int -> ReadS NetworkSecurityType
ReadS [NetworkSecurityType]
(Int -> ReadS NetworkSecurityType)
-> ReadS [NetworkSecurityType]
-> ReadPrec NetworkSecurityType
-> ReadPrec [NetworkSecurityType]
-> Read NetworkSecurityType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NetworkSecurityType]
$creadListPrec :: ReadPrec [NetworkSecurityType]
readPrec :: ReadPrec NetworkSecurityType
$creadPrec :: ReadPrec NetworkSecurityType
readList :: ReadS [NetworkSecurityType]
$creadList :: ReadS [NetworkSecurityType]
readsPrec :: Int -> ReadS NetworkSecurityType
$creadsPrec :: Int -> ReadS NetworkSecurityType
Prelude.Read,
      NetworkSecurityType -> NetworkSecurityType -> Bool
(NetworkSecurityType -> NetworkSecurityType -> Bool)
-> (NetworkSecurityType -> NetworkSecurityType -> Bool)
-> Eq NetworkSecurityType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NetworkSecurityType -> NetworkSecurityType -> Bool
$c/= :: NetworkSecurityType -> NetworkSecurityType -> Bool
== :: NetworkSecurityType -> NetworkSecurityType -> Bool
$c== :: NetworkSecurityType -> NetworkSecurityType -> Bool
Prelude.Eq,
      Eq NetworkSecurityType
Eq NetworkSecurityType
-> (NetworkSecurityType -> NetworkSecurityType -> Ordering)
-> (NetworkSecurityType -> NetworkSecurityType -> Bool)
-> (NetworkSecurityType -> NetworkSecurityType -> Bool)
-> (NetworkSecurityType -> NetworkSecurityType -> Bool)
-> (NetworkSecurityType -> NetworkSecurityType -> Bool)
-> (NetworkSecurityType
    -> NetworkSecurityType -> NetworkSecurityType)
-> (NetworkSecurityType
    -> NetworkSecurityType -> NetworkSecurityType)
-> Ord NetworkSecurityType
NetworkSecurityType -> NetworkSecurityType -> Bool
NetworkSecurityType -> NetworkSecurityType -> Ordering
NetworkSecurityType -> NetworkSecurityType -> NetworkSecurityType
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 :: NetworkSecurityType -> NetworkSecurityType -> NetworkSecurityType
$cmin :: NetworkSecurityType -> NetworkSecurityType -> NetworkSecurityType
max :: NetworkSecurityType -> NetworkSecurityType -> NetworkSecurityType
$cmax :: NetworkSecurityType -> NetworkSecurityType -> NetworkSecurityType
>= :: NetworkSecurityType -> NetworkSecurityType -> Bool
$c>= :: NetworkSecurityType -> NetworkSecurityType -> Bool
> :: NetworkSecurityType -> NetworkSecurityType -> Bool
$c> :: NetworkSecurityType -> NetworkSecurityType -> Bool
<= :: NetworkSecurityType -> NetworkSecurityType -> Bool
$c<= :: NetworkSecurityType -> NetworkSecurityType -> Bool
< :: NetworkSecurityType -> NetworkSecurityType -> Bool
$c< :: NetworkSecurityType -> NetworkSecurityType -> Bool
compare :: NetworkSecurityType -> NetworkSecurityType -> Ordering
$ccompare :: NetworkSecurityType -> NetworkSecurityType -> Ordering
$cp1Ord :: Eq NetworkSecurityType
Prelude.Ord,
      (forall x. NetworkSecurityType -> Rep NetworkSecurityType x)
-> (forall x. Rep NetworkSecurityType x -> NetworkSecurityType)
-> Generic NetworkSecurityType
forall x. Rep NetworkSecurityType x -> NetworkSecurityType
forall x. NetworkSecurityType -> Rep NetworkSecurityType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep NetworkSecurityType x -> NetworkSecurityType
$cfrom :: forall x. NetworkSecurityType -> Rep NetworkSecurityType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> NetworkSecurityType -> Int
NetworkSecurityType -> Int
(Int -> NetworkSecurityType -> Int)
-> (NetworkSecurityType -> Int) -> Hashable NetworkSecurityType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: NetworkSecurityType -> Int
$chash :: NetworkSecurityType -> Int
hashWithSalt :: Int -> NetworkSecurityType -> Int
$chashWithSalt :: Int -> NetworkSecurityType -> Int
Prelude.Hashable,
      NetworkSecurityType -> ()
(NetworkSecurityType -> ()) -> NFData NetworkSecurityType
forall a. (a -> ()) -> NFData a
rnf :: NetworkSecurityType -> ()
$crnf :: NetworkSecurityType -> ()
Prelude.NFData,
      Text -> Either String NetworkSecurityType
(Text -> Either String NetworkSecurityType)
-> FromText NetworkSecurityType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NetworkSecurityType
$cfromText :: Text -> Either String NetworkSecurityType
Core.FromText,
      NetworkSecurityType -> Text
(NetworkSecurityType -> Text) -> ToText NetworkSecurityType
forall a. (a -> Text) -> ToText a
toText :: NetworkSecurityType -> Text
$ctoText :: NetworkSecurityType -> Text
Core.ToText,
      NetworkSecurityType -> ByteString
(NetworkSecurityType -> ByteString)
-> ToByteString NetworkSecurityType
forall a. (a -> ByteString) -> ToByteString a
toBS :: NetworkSecurityType -> ByteString
$ctoBS :: NetworkSecurityType -> ByteString
Core.ToByteString,
      NetworkSecurityType -> ByteStringBuilder
(NetworkSecurityType -> ByteStringBuilder)
-> ToLog NetworkSecurityType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NetworkSecurityType -> ByteStringBuilder
$cbuild :: NetworkSecurityType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> NetworkSecurityType -> [Header]
(HeaderName -> NetworkSecurityType -> [Header])
-> ToHeader NetworkSecurityType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NetworkSecurityType -> [Header]
$ctoHeader :: HeaderName -> NetworkSecurityType -> [Header]
Core.ToHeader,
      NetworkSecurityType -> QueryString
(NetworkSecurityType -> QueryString) -> ToQuery NetworkSecurityType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NetworkSecurityType -> QueryString
$ctoQuery :: NetworkSecurityType -> QueryString
Core.ToQuery,
      Value -> Parser [NetworkSecurityType]
Value -> Parser NetworkSecurityType
(Value -> Parser NetworkSecurityType)
-> (Value -> Parser [NetworkSecurityType])
-> FromJSON NetworkSecurityType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [NetworkSecurityType]
$cparseJSONList :: Value -> Parser [NetworkSecurityType]
parseJSON :: Value -> Parser NetworkSecurityType
$cparseJSON :: Value -> Parser NetworkSecurityType
Core.FromJSON,
      FromJSONKeyFunction [NetworkSecurityType]
FromJSONKeyFunction NetworkSecurityType
FromJSONKeyFunction NetworkSecurityType
-> FromJSONKeyFunction [NetworkSecurityType]
-> FromJSONKey NetworkSecurityType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NetworkSecurityType]
$cfromJSONKeyList :: FromJSONKeyFunction [NetworkSecurityType]
fromJSONKey :: FromJSONKeyFunction NetworkSecurityType
$cfromJSONKey :: FromJSONKeyFunction NetworkSecurityType
Core.FromJSONKey,
      [NetworkSecurityType] -> Encoding
[NetworkSecurityType] -> Value
NetworkSecurityType -> Encoding
NetworkSecurityType -> Value
(NetworkSecurityType -> Value)
-> (NetworkSecurityType -> Encoding)
-> ([NetworkSecurityType] -> Value)
-> ([NetworkSecurityType] -> Encoding)
-> ToJSON NetworkSecurityType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [NetworkSecurityType] -> Encoding
$ctoEncodingList :: [NetworkSecurityType] -> Encoding
toJSONList :: [NetworkSecurityType] -> Value
$ctoJSONList :: [NetworkSecurityType] -> Value
toEncoding :: NetworkSecurityType -> Encoding
$ctoEncoding :: NetworkSecurityType -> Encoding
toJSON :: NetworkSecurityType -> Value
$ctoJSON :: NetworkSecurityType -> Value
Core.ToJSON,
      ToJSONKeyFunction [NetworkSecurityType]
ToJSONKeyFunction NetworkSecurityType
ToJSONKeyFunction NetworkSecurityType
-> ToJSONKeyFunction [NetworkSecurityType]
-> ToJSONKey NetworkSecurityType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NetworkSecurityType]
$ctoJSONKeyList :: ToJSONKeyFunction [NetworkSecurityType]
toJSONKey :: ToJSONKeyFunction NetworkSecurityType
$ctoJSONKey :: ToJSONKeyFunction NetworkSecurityType
Core.ToJSONKey,
      [Node] -> Either String NetworkSecurityType
([Node] -> Either String NetworkSecurityType)
-> FromXML NetworkSecurityType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NetworkSecurityType
$cparseXML :: [Node] -> Either String NetworkSecurityType
Core.FromXML,
      NetworkSecurityType -> XML
(NetworkSecurityType -> XML) -> ToXML NetworkSecurityType
forall a. (a -> XML) -> ToXML a
toXML :: NetworkSecurityType -> XML
$ctoXML :: NetworkSecurityType -> XML
Core.ToXML
    )

pattern NetworkSecurityType_OPEN :: NetworkSecurityType
pattern $bNetworkSecurityType_OPEN :: NetworkSecurityType
$mNetworkSecurityType_OPEN :: forall r. NetworkSecurityType -> (Void# -> r) -> (Void# -> r) -> r
NetworkSecurityType_OPEN = NetworkSecurityType' "OPEN"

pattern NetworkSecurityType_WEP :: NetworkSecurityType
pattern $bNetworkSecurityType_WEP :: NetworkSecurityType
$mNetworkSecurityType_WEP :: forall r. NetworkSecurityType -> (Void# -> r) -> (Void# -> r) -> r
NetworkSecurityType_WEP = NetworkSecurityType' "WEP"

pattern NetworkSecurityType_WPA2_ENTERPRISE :: NetworkSecurityType
pattern $bNetworkSecurityType_WPA2_ENTERPRISE :: NetworkSecurityType
$mNetworkSecurityType_WPA2_ENTERPRISE :: forall r. NetworkSecurityType -> (Void# -> r) -> (Void# -> r) -> r
NetworkSecurityType_WPA2_ENTERPRISE = NetworkSecurityType' "WPA2_ENTERPRISE"

pattern NetworkSecurityType_WPA2_PSK :: NetworkSecurityType
pattern $bNetworkSecurityType_WPA2_PSK :: NetworkSecurityType
$mNetworkSecurityType_WPA2_PSK :: forall r. NetworkSecurityType -> (Void# -> r) -> (Void# -> r) -> r
NetworkSecurityType_WPA2_PSK = NetworkSecurityType' "WPA2_PSK"

pattern NetworkSecurityType_WPA_PSK :: NetworkSecurityType
pattern $bNetworkSecurityType_WPA_PSK :: NetworkSecurityType
$mNetworkSecurityType_WPA_PSK :: forall r. NetworkSecurityType -> (Void# -> r) -> (Void# -> r) -> r
NetworkSecurityType_WPA_PSK = NetworkSecurityType' "WPA_PSK"

{-# COMPLETE
  NetworkSecurityType_OPEN,
  NetworkSecurityType_WEP,
  NetworkSecurityType_WPA2_ENTERPRISE,
  NetworkSecurityType_WPA2_PSK,
  NetworkSecurityType_WPA_PSK,
  NetworkSecurityType'
  #-}