{-# 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.Panorama.Types.ConnectionType
-- 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.Panorama.Types.ConnectionType
  ( ConnectionType
      ( ..,
        ConnectionType_DHCP,
        ConnectionType_STATIC_IP
      ),
  )
where

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

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

pattern ConnectionType_DHCP :: ConnectionType
pattern $bConnectionType_DHCP :: ConnectionType
$mConnectionType_DHCP :: forall r. ConnectionType -> (Void# -> r) -> (Void# -> r) -> r
ConnectionType_DHCP = ConnectionType' "DHCP"

pattern ConnectionType_STATIC_IP :: ConnectionType
pattern $bConnectionType_STATIC_IP :: ConnectionType
$mConnectionType_STATIC_IP :: forall r. ConnectionType -> (Void# -> r) -> (Void# -> r) -> r
ConnectionType_STATIC_IP = ConnectionType' "STATIC_IP"

{-# COMPLETE
  ConnectionType_DHCP,
  ConnectionType_STATIC_IP,
  ConnectionType'
  #-}