{-# 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.EC2.Types.StaticSourcesSupportValue
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.EC2.Types.StaticSourcesSupportValue
  ( StaticSourcesSupportValue
      ( ..,
        StaticSourcesSupportValue_Disable,
        StaticSourcesSupportValue_Enable
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude

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

pattern StaticSourcesSupportValue_Disable :: StaticSourcesSupportValue
pattern $bStaticSourcesSupportValue_Disable :: StaticSourcesSupportValue
$mStaticSourcesSupportValue_Disable :: forall {r}.
StaticSourcesSupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
StaticSourcesSupportValue_Disable = StaticSourcesSupportValue' "disable"

pattern StaticSourcesSupportValue_Enable :: StaticSourcesSupportValue
pattern $bStaticSourcesSupportValue_Enable :: StaticSourcesSupportValue
$mStaticSourcesSupportValue_Enable :: forall {r}.
StaticSourcesSupportValue -> ((# #) -> r) -> ((# #) -> r) -> r
StaticSourcesSupportValue_Enable = StaticSourcesSupportValue' "enable"

{-# COMPLETE
  StaticSourcesSupportValue_Disable,
  StaticSourcesSupportValue_Enable,
  StaticSourcesSupportValue'
  #-}