{-# 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.CertificateManager.Types.RecordType
-- 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.CertificateManager.Types.RecordType
  ( RecordType
      ( ..,
        RecordType_CNAME
      ),
  )
where

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

newtype RecordType = RecordType'
  { RecordType -> Text
fromRecordType ::
      Core.Text
  }
  deriving stock
    ( Int -> RecordType -> ShowS
[RecordType] -> ShowS
RecordType -> String
(Int -> RecordType -> ShowS)
-> (RecordType -> String)
-> ([RecordType] -> ShowS)
-> Show RecordType
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]
(Int -> ReadS RecordType)
-> ReadS [RecordType]
-> ReadPrec RecordType
-> ReadPrec [RecordType]
-> Read 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
(RecordType -> RecordType -> Bool)
-> (RecordType -> RecordType -> Bool) -> Eq RecordType
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
Eq RecordType
-> (RecordType -> RecordType -> Ordering)
-> (RecordType -> RecordType -> Bool)
-> (RecordType -> RecordType -> Bool)
-> (RecordType -> RecordType -> Bool)
-> (RecordType -> RecordType -> Bool)
-> (RecordType -> RecordType -> RecordType)
-> (RecordType -> RecordType -> RecordType)
-> Ord 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
$cp1Ord :: Eq RecordType
Prelude.Ord,
      (forall x. RecordType -> Rep RecordType x)
-> (forall x. Rep RecordType x -> RecordType) -> Generic RecordType
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
    ( Int -> RecordType -> Int
RecordType -> Int
(Int -> RecordType -> Int)
-> (RecordType -> Int) -> Hashable RecordType
forall 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 -> ()
(RecordType -> ()) -> NFData RecordType
forall a. (a -> ()) -> NFData a
rnf :: RecordType -> ()
$crnf :: RecordType -> ()
Prelude.NFData,
      Text -> Either String RecordType
(Text -> Either String RecordType) -> FromText RecordType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RecordType
$cfromText :: Text -> Either String RecordType
Core.FromText,
      RecordType -> Text
(RecordType -> Text) -> ToText RecordType
forall a. (a -> Text) -> ToText a
toText :: RecordType -> Text
$ctoText :: RecordType -> Text
Core.ToText,
      RecordType -> ByteString
(RecordType -> ByteString) -> ToByteString RecordType
forall a. (a -> ByteString) -> ToByteString a
toBS :: RecordType -> ByteString
$ctoBS :: RecordType -> ByteString
Core.ToByteString,
      RecordType -> ByteStringBuilder
(RecordType -> ByteStringBuilder) -> ToLog RecordType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RecordType -> ByteStringBuilder
$cbuild :: RecordType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> RecordType -> [Header]
(HeaderName -> RecordType -> [Header]) -> ToHeader RecordType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RecordType -> [Header]
$ctoHeader :: HeaderName -> RecordType -> [Header]
Core.ToHeader,
      RecordType -> QueryString
(RecordType -> QueryString) -> ToQuery RecordType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RecordType -> QueryString
$ctoQuery :: RecordType -> QueryString
Core.ToQuery,
      Value -> Parser [RecordType]
Value -> Parser RecordType
(Value -> Parser RecordType)
-> (Value -> Parser [RecordType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [RecordType]
FromJSONKeyFunction RecordType
FromJSONKeyFunction RecordType
-> FromJSONKeyFunction [RecordType] -> FromJSONKey RecordType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RecordType]
$cfromJSONKeyList :: FromJSONKeyFunction [RecordType]
fromJSONKey :: FromJSONKeyFunction RecordType
$cfromJSONKey :: FromJSONKeyFunction RecordType
Core.FromJSONKey,
      [RecordType] -> Encoding
[RecordType] -> Value
RecordType -> Encoding
RecordType -> Value
(RecordType -> Value)
-> (RecordType -> Encoding)
-> ([RecordType] -> Value)
-> ([RecordType] -> Encoding)
-> ToJSON RecordType
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
Core.ToJSON,
      ToJSONKeyFunction [RecordType]
ToJSONKeyFunction RecordType
ToJSONKeyFunction RecordType
-> ToJSONKeyFunction [RecordType] -> ToJSONKey RecordType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RecordType]
$ctoJSONKeyList :: ToJSONKeyFunction [RecordType]
toJSONKey :: ToJSONKeyFunction RecordType
$ctoJSONKey :: ToJSONKeyFunction RecordType
Core.ToJSONKey,
      [Node] -> Either String RecordType
([Node] -> Either String RecordType) -> FromXML RecordType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RecordType
$cparseXML :: [Node] -> Either String RecordType
Core.FromXML,
      RecordType -> XML
(RecordType -> XML) -> ToXML RecordType
forall a. (a -> XML) -> ToXML a
toXML :: RecordType -> XML
$ctoXML :: RecordType -> XML
Core.ToXML
    )

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

{-# COMPLETE
  RecordType_CNAME,
  RecordType'
  #-}