{-# 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.ELBV2.Types.LoadBalancerSchemeEnum
-- 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.ELBV2.Types.LoadBalancerSchemeEnum
  ( LoadBalancerSchemeEnum
      ( ..,
        LoadBalancerSchemeEnum_Internal,
        LoadBalancerSchemeEnum_Internet_facing
      ),
  )
where

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

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

pattern LoadBalancerSchemeEnum_Internal :: LoadBalancerSchemeEnum
pattern $bLoadBalancerSchemeEnum_Internal :: LoadBalancerSchemeEnum
$mLoadBalancerSchemeEnum_Internal :: forall r.
LoadBalancerSchemeEnum -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerSchemeEnum_Internal = LoadBalancerSchemeEnum' "internal"

pattern LoadBalancerSchemeEnum_Internet_facing :: LoadBalancerSchemeEnum
pattern $bLoadBalancerSchemeEnum_Internet_facing :: LoadBalancerSchemeEnum
$mLoadBalancerSchemeEnum_Internet_facing :: forall r.
LoadBalancerSchemeEnum -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerSchemeEnum_Internet_facing = LoadBalancerSchemeEnum' "internet-facing"

{-# COMPLETE
  LoadBalancerSchemeEnum_Internal,
  LoadBalancerSchemeEnum_Internet_facing,
  LoadBalancerSchemeEnum'
  #-}