{-# 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.ElasticBeanstalk.Types.ConfigurationOptionValueType
-- 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.ElasticBeanstalk.Types.ConfigurationOptionValueType
  ( ConfigurationOptionValueType
      ( ..,
        ConfigurationOptionValueType_List,
        ConfigurationOptionValueType_Scalar
      ),
  )
where

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

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

pattern ConfigurationOptionValueType_List :: ConfigurationOptionValueType
pattern $bConfigurationOptionValueType_List :: ConfigurationOptionValueType
$mConfigurationOptionValueType_List :: forall r.
ConfigurationOptionValueType -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationOptionValueType_List = ConfigurationOptionValueType' "List"

pattern ConfigurationOptionValueType_Scalar :: ConfigurationOptionValueType
pattern $bConfigurationOptionValueType_Scalar :: ConfigurationOptionValueType
$mConfigurationOptionValueType_Scalar :: forall r.
ConfigurationOptionValueType -> (Void# -> r) -> (Void# -> r) -> r
ConfigurationOptionValueType_Scalar = ConfigurationOptionValueType' "Scalar"

{-# COMPLETE
  ConfigurationOptionValueType_List,
  ConfigurationOptionValueType_Scalar,
  ConfigurationOptionValueType'
  #-}