{-# 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.Lightsail.Types.LoadBalancerAttributeName
-- 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.Lightsail.Types.LoadBalancerAttributeName
  ( LoadBalancerAttributeName
      ( ..,
        LoadBalancerAttributeName_HealthCheckPath,
        LoadBalancerAttributeName_SessionStickinessEnabled,
        LoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds
      ),
  )
where

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

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

pattern LoadBalancerAttributeName_HealthCheckPath :: LoadBalancerAttributeName
pattern $bLoadBalancerAttributeName_HealthCheckPath :: LoadBalancerAttributeName
$mLoadBalancerAttributeName_HealthCheckPath :: forall r.
LoadBalancerAttributeName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerAttributeName_HealthCheckPath = LoadBalancerAttributeName' "HealthCheckPath"

pattern LoadBalancerAttributeName_SessionStickinessEnabled :: LoadBalancerAttributeName
pattern $bLoadBalancerAttributeName_SessionStickinessEnabled :: LoadBalancerAttributeName
$mLoadBalancerAttributeName_SessionStickinessEnabled :: forall r.
LoadBalancerAttributeName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerAttributeName_SessionStickinessEnabled = LoadBalancerAttributeName' "SessionStickinessEnabled"

pattern LoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds :: LoadBalancerAttributeName
pattern $bLoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds :: LoadBalancerAttributeName
$mLoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds :: forall r.
LoadBalancerAttributeName -> (Void# -> r) -> (Void# -> r) -> r
LoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds = LoadBalancerAttributeName' "SessionStickiness_LB_CookieDurationSeconds"

{-# COMPLETE
  LoadBalancerAttributeName_HealthCheckPath,
  LoadBalancerAttributeName_SessionStickinessEnabled,
  LoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds,
  LoadBalancerAttributeName'
  #-}