{-# 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.Account.Types.AlternateContactType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Account.Types.AlternateContactType
  ( AlternateContactType
      ( ..,
        AlternateContactType_BILLING,
        AlternateContactType_OPERATIONS,
        AlternateContactType_SECURITY
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern AlternateContactType_BILLING :: AlternateContactType
pattern $bAlternateContactType_BILLING :: AlternateContactType
$mAlternateContactType_BILLING :: forall r. AlternateContactType -> (Void# -> r) -> (Void# -> r) -> r
AlternateContactType_BILLING = AlternateContactType' "BILLING"

pattern AlternateContactType_OPERATIONS :: AlternateContactType
pattern $bAlternateContactType_OPERATIONS :: AlternateContactType
$mAlternateContactType_OPERATIONS :: forall r. AlternateContactType -> (Void# -> r) -> (Void# -> r) -> r
AlternateContactType_OPERATIONS = AlternateContactType' "OPERATIONS"

pattern AlternateContactType_SECURITY :: AlternateContactType
pattern $bAlternateContactType_SECURITY :: AlternateContactType
$mAlternateContactType_SECURITY :: forall r. AlternateContactType -> (Void# -> r) -> (Void# -> r) -> r
AlternateContactType_SECURITY = AlternateContactType' "SECURITY"

{-# COMPLETE
  AlternateContactType_BILLING,
  AlternateContactType_OPERATIONS,
  AlternateContactType_SECURITY,
  AlternateContactType'
  #-}