{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

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

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