{-# 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.PayerResponsibility
-- 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.PayerResponsibility
  ( PayerResponsibility
      ( ..,
        PayerResponsibility_ServiceOwner
      ),
  )
where

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

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

pattern PayerResponsibility_ServiceOwner :: PayerResponsibility
pattern $bPayerResponsibility_ServiceOwner :: PayerResponsibility
$mPayerResponsibility_ServiceOwner :: forall {r}.
PayerResponsibility -> ((# #) -> r) -> ((# #) -> r) -> r
PayerResponsibility_ServiceOwner = PayerResponsibility' "ServiceOwner"

{-# COMPLETE
  PayerResponsibility_ServiceOwner,
  PayerResponsibility'
  #-}