{-# 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.Route53Domains.Types.ContactType
-- 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.Route53Domains.Types.ContactType
  ( ContactType
      ( ..,
        ContactType_ASSOCIATION,
        ContactType_COMPANY,
        ContactType_PERSON,
        ContactType_PUBLIC_BODY,
        ContactType_RESELLER
      ),
  )
where

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

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

pattern ContactType_ASSOCIATION :: ContactType
pattern $bContactType_ASSOCIATION :: ContactType
$mContactType_ASSOCIATION :: forall r. ContactType -> (Void# -> r) -> (Void# -> r) -> r
ContactType_ASSOCIATION = ContactType' "ASSOCIATION"

pattern ContactType_COMPANY :: ContactType
pattern $bContactType_COMPANY :: ContactType
$mContactType_COMPANY :: forall r. ContactType -> (Void# -> r) -> (Void# -> r) -> r
ContactType_COMPANY = ContactType' "COMPANY"

pattern ContactType_PERSON :: ContactType
pattern $bContactType_PERSON :: ContactType
$mContactType_PERSON :: forall r. ContactType -> (Void# -> r) -> (Void# -> r) -> r
ContactType_PERSON = ContactType' "PERSON"

pattern ContactType_PUBLIC_BODY :: ContactType
pattern $bContactType_PUBLIC_BODY :: ContactType
$mContactType_PUBLIC_BODY :: forall r. ContactType -> (Void# -> r) -> (Void# -> r) -> r
ContactType_PUBLIC_BODY = ContactType' "PUBLIC_BODY"

pattern ContactType_RESELLER :: ContactType
pattern $bContactType_RESELLER :: ContactType
$mContactType_RESELLER :: forall r. ContactType -> (Void# -> r) -> (Void# -> r) -> r
ContactType_RESELLER = ContactType' "RESELLER"

{-# COMPLETE
  ContactType_ASSOCIATION,
  ContactType_COMPANY,
  ContactType_PERSON,
  ContactType_PUBLIC_BODY,
  ContactType_RESELLER,
  ContactType'
  #-}