{-# 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.AppMesh.Types.DnsResponseType
-- 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.AppMesh.Types.DnsResponseType
  ( DnsResponseType
      ( ..,
        DnsResponseType_ENDPOINTS,
        DnsResponseType_LOADBALANCER
      ),
  )
where

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

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

pattern DnsResponseType_ENDPOINTS :: DnsResponseType
pattern $bDnsResponseType_ENDPOINTS :: DnsResponseType
$mDnsResponseType_ENDPOINTS :: forall r. DnsResponseType -> (Void# -> r) -> (Void# -> r) -> r
DnsResponseType_ENDPOINTS = DnsResponseType' "ENDPOINTS"

pattern DnsResponseType_LOADBALANCER :: DnsResponseType
pattern $bDnsResponseType_LOADBALANCER :: DnsResponseType
$mDnsResponseType_LOADBALANCER :: forall r. DnsResponseType -> (Void# -> r) -> (Void# -> r) -> r
DnsResponseType_LOADBALANCER = DnsResponseType' "LOADBALANCER"

{-# COMPLETE
  DnsResponseType_ENDPOINTS,
  DnsResponseType_LOADBALANCER,
  DnsResponseType'
  #-}