{-# 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.Route53AutoNaming.Types.RecordType
-- 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.Route53AutoNaming.Types.RecordType
  ( RecordType
      ( ..,
        RecordType_A,
        RecordType_AAAA,
        RecordType_CNAME,
        RecordType_SRV
      ),
  )
where

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

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

pattern RecordType_A :: RecordType
pattern $bRecordType_A :: RecordType
$mRecordType_A :: forall {r}. RecordType -> ((# #) -> r) -> ((# #) -> r) -> r
RecordType_A = RecordType' "A"

pattern RecordType_AAAA :: RecordType
pattern $bRecordType_AAAA :: RecordType
$mRecordType_AAAA :: forall {r}. RecordType -> ((# #) -> r) -> ((# #) -> r) -> r
RecordType_AAAA = RecordType' "AAAA"

pattern RecordType_CNAME :: RecordType
pattern $bRecordType_CNAME :: RecordType
$mRecordType_CNAME :: forall {r}. RecordType -> ((# #) -> r) -> ((# #) -> r) -> r
RecordType_CNAME = RecordType' "CNAME"

pattern RecordType_SRV :: RecordType
pattern $bRecordType_SRV :: RecordType
$mRecordType_SRV :: forall {r}. RecordType -> ((# #) -> r) -> ((# #) -> r) -> r
RecordType_SRV = RecordType' "SRV"

{-# COMPLETE
  RecordType_A,
  RecordType_AAAA,
  RecordType_CNAME,
  RecordType_SRV,
  RecordType'
  #-}