{-# 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.EC2.Types.NetworkInterfaceCreationType
-- 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.EC2.Types.NetworkInterfaceCreationType
  ( NetworkInterfaceCreationType
      ( ..,
        NetworkInterfaceCreationType_Branch,
        NetworkInterfaceCreationType_Efa,
        NetworkInterfaceCreationType_Trunk
      ),
  )
where

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

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

pattern NetworkInterfaceCreationType_Branch :: NetworkInterfaceCreationType
pattern $bNetworkInterfaceCreationType_Branch :: NetworkInterfaceCreationType
$mNetworkInterfaceCreationType_Branch :: forall {r}.
NetworkInterfaceCreationType -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkInterfaceCreationType_Branch = NetworkInterfaceCreationType' "branch"

pattern NetworkInterfaceCreationType_Efa :: NetworkInterfaceCreationType
pattern $bNetworkInterfaceCreationType_Efa :: NetworkInterfaceCreationType
$mNetworkInterfaceCreationType_Efa :: forall {r}.
NetworkInterfaceCreationType -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkInterfaceCreationType_Efa = NetworkInterfaceCreationType' "efa"

pattern NetworkInterfaceCreationType_Trunk :: NetworkInterfaceCreationType
pattern $bNetworkInterfaceCreationType_Trunk :: NetworkInterfaceCreationType
$mNetworkInterfaceCreationType_Trunk :: forall {r}.
NetworkInterfaceCreationType -> ((# #) -> r) -> ((# #) -> r) -> r
NetworkInterfaceCreationType_Trunk = NetworkInterfaceCreationType' "trunk"

{-# COMPLETE
  NetworkInterfaceCreationType_Branch,
  NetworkInterfaceCreationType_Efa,
  NetworkInterfaceCreationType_Trunk,
  NetworkInterfaceCreationType'
  #-}