{-# 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.MediaConnect.Types.NetworkInterfaceType
-- 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.MediaConnect.Types.NetworkInterfaceType
  ( NetworkInterfaceType
      ( ..,
        NetworkInterfaceType_Efa,
        NetworkInterfaceType_Ena
      ),
  )
where

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

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

pattern NetworkInterfaceType_Efa :: NetworkInterfaceType
pattern $bNetworkInterfaceType_Efa :: NetworkInterfaceType
$mNetworkInterfaceType_Efa :: forall r. NetworkInterfaceType -> (Void# -> r) -> (Void# -> r) -> r
NetworkInterfaceType_Efa = NetworkInterfaceType' "efa"

pattern NetworkInterfaceType_Ena :: NetworkInterfaceType
pattern $bNetworkInterfaceType_Ena :: NetworkInterfaceType
$mNetworkInterfaceType_Ena :: forall r. NetworkInterfaceType -> (Void# -> r) -> (Void# -> r) -> r
NetworkInterfaceType_Ena = NetworkInterfaceType' "ena"

{-# COMPLETE
  NetworkInterfaceType_Efa,
  NetworkInterfaceType_Ena,
  NetworkInterfaceType'
  #-}