{-# 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.FpgaImageAttributeName
-- 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.FpgaImageAttributeName
  ( FpgaImageAttributeName
      ( ..,
        FpgaImageAttributeName_Description,
        FpgaImageAttributeName_LoadPermission,
        FpgaImageAttributeName_Name,
        FpgaImageAttributeName_ProductCodes
      ),
  )
where

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

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

pattern FpgaImageAttributeName_Description :: FpgaImageAttributeName
pattern $bFpgaImageAttributeName_Description :: FpgaImageAttributeName
$mFpgaImageAttributeName_Description :: forall {r}.
FpgaImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
FpgaImageAttributeName_Description = FpgaImageAttributeName' "description"

pattern FpgaImageAttributeName_LoadPermission :: FpgaImageAttributeName
pattern $bFpgaImageAttributeName_LoadPermission :: FpgaImageAttributeName
$mFpgaImageAttributeName_LoadPermission :: forall {r}.
FpgaImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
FpgaImageAttributeName_LoadPermission = FpgaImageAttributeName' "loadPermission"

pattern FpgaImageAttributeName_Name :: FpgaImageAttributeName
pattern $bFpgaImageAttributeName_Name :: FpgaImageAttributeName
$mFpgaImageAttributeName_Name :: forall {r}.
FpgaImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
FpgaImageAttributeName_Name = FpgaImageAttributeName' "name"

pattern FpgaImageAttributeName_ProductCodes :: FpgaImageAttributeName
pattern $bFpgaImageAttributeName_ProductCodes :: FpgaImageAttributeName
$mFpgaImageAttributeName_ProductCodes :: forall {r}.
FpgaImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
FpgaImageAttributeName_ProductCodes = FpgaImageAttributeName' "productCodes"

{-# COMPLETE
  FpgaImageAttributeName_Description,
  FpgaImageAttributeName_LoadPermission,
  FpgaImageAttributeName_Name,
  FpgaImageAttributeName_ProductCodes,
  FpgaImageAttributeName'
  #-}