{-# 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.BehaviorEnum
-- 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.BehaviorEnum
  ( BehaviorEnum
      ( ..,
        BehaviorEnum_Cache,
        BehaviorEnum_Dont_cache
      ),
  )
where

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

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

pattern BehaviorEnum_Cache :: BehaviorEnum
pattern $bBehaviorEnum_Cache :: BehaviorEnum
$mBehaviorEnum_Cache :: forall r. BehaviorEnum -> (Void# -> r) -> (Void# -> r) -> r
BehaviorEnum_Cache = BehaviorEnum' "cache"

pattern BehaviorEnum_Dont_cache :: BehaviorEnum
pattern $bBehaviorEnum_Dont_cache :: BehaviorEnum
$mBehaviorEnum_Dont_cache :: forall r. BehaviorEnum -> (Void# -> r) -> (Void# -> r) -> r
BehaviorEnum_Dont_cache = BehaviorEnum' "dont-cache"

{-# COMPLETE
  BehaviorEnum_Cache,
  BehaviorEnum_Dont_cache,
  BehaviorEnum'
  #-}