{-# 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.AddressAttributeName
-- 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.AddressAttributeName
  ( AddressAttributeName
      ( ..,
        AddressAttributeName_Domain_name
      ),
  )
where

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

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

pattern AddressAttributeName_Domain_name :: AddressAttributeName
pattern $bAddressAttributeName_Domain_name :: AddressAttributeName
$mAddressAttributeName_Domain_name :: forall {r}.
AddressAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
AddressAttributeName_Domain_name = AddressAttributeName' "domain-name"

{-# COMPLETE
  AddressAttributeName_Domain_name,
  AddressAttributeName'
  #-}