{-# 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.ResolverEndpointDirection
-- 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.ResolverEndpointDirection
  ( ResolverEndpointDirection
      ( ..,
        ResolverEndpointDirection_INBOUND,
        ResolverEndpointDirection_OUTBOUND
      ),
  )
where

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

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

pattern ResolverEndpointDirection_INBOUND :: ResolverEndpointDirection
pattern $bResolverEndpointDirection_INBOUND :: ResolverEndpointDirection
$mResolverEndpointDirection_INBOUND :: forall r.
ResolverEndpointDirection -> (Void# -> r) -> (Void# -> r) -> r
ResolverEndpointDirection_INBOUND = ResolverEndpointDirection' "INBOUND"

pattern ResolverEndpointDirection_OUTBOUND :: ResolverEndpointDirection
pattern $bResolverEndpointDirection_OUTBOUND :: ResolverEndpointDirection
$mResolverEndpointDirection_OUTBOUND :: forall r.
ResolverEndpointDirection -> (Void# -> r) -> (Void# -> r) -> r
ResolverEndpointDirection_OUTBOUND = ResolverEndpointDirection' "OUTBOUND"

{-# COMPLETE
  ResolverEndpointDirection_INBOUND,
  ResolverEndpointDirection_OUTBOUND,
  ResolverEndpointDirection'
  #-}