{-# 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.EnaSupport
-- 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.EnaSupport
  ( EnaSupport
      ( ..,
        EnaSupport_Required,
        EnaSupport_Supported,
        EnaSupport_Unsupported
      ),
  )
where

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

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

pattern EnaSupport_Required :: EnaSupport
pattern $bEnaSupport_Required :: EnaSupport
$mEnaSupport_Required :: forall {r}. EnaSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EnaSupport_Required = EnaSupport' "required"

pattern EnaSupport_Supported :: EnaSupport
pattern $bEnaSupport_Supported :: EnaSupport
$mEnaSupport_Supported :: forall {r}. EnaSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EnaSupport_Supported = EnaSupport' "supported"

pattern EnaSupport_Unsupported :: EnaSupport
pattern $bEnaSupport_Unsupported :: EnaSupport
$mEnaSupport_Unsupported :: forall {r}. EnaSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EnaSupport_Unsupported = EnaSupport' "unsupported"

{-# COMPLETE
  EnaSupport_Required,
  EnaSupport_Supported,
  EnaSupport_Unsupported,
  EnaSupport'
  #-}