{-# 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.Route53Resolver.Types.BlockOverrideDnsType
-- 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.Route53Resolver.Types.BlockOverrideDnsType
  ( BlockOverrideDnsType
      ( ..,
        BlockOverrideDnsType_CNAME
      ),
  )
where

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

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

pattern BlockOverrideDnsType_CNAME :: BlockOverrideDnsType
pattern $bBlockOverrideDnsType_CNAME :: BlockOverrideDnsType
$mBlockOverrideDnsType_CNAME :: forall r. BlockOverrideDnsType -> (Void# -> r) -> (Void# -> r) -> r
BlockOverrideDnsType_CNAME = BlockOverrideDnsType' "CNAME"

{-# COMPLETE
  BlockOverrideDnsType_CNAME,
  BlockOverrideDnsType'
  #-}