{-# 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.ServiceCatalog.Types.RequiresRecreation
-- 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.ServiceCatalog.Types.RequiresRecreation
  ( RequiresRecreation
      ( ..,
        RequiresRecreation_ALWAYS,
        RequiresRecreation_CONDITIONALLY,
        RequiresRecreation_NEVER
      ),
  )
where

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

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

pattern RequiresRecreation_ALWAYS :: RequiresRecreation
pattern $bRequiresRecreation_ALWAYS :: RequiresRecreation
$mRequiresRecreation_ALWAYS :: forall r. RequiresRecreation -> (Void# -> r) -> (Void# -> r) -> r
RequiresRecreation_ALWAYS = RequiresRecreation' "ALWAYS"

pattern RequiresRecreation_CONDITIONALLY :: RequiresRecreation
pattern $bRequiresRecreation_CONDITIONALLY :: RequiresRecreation
$mRequiresRecreation_CONDITIONALLY :: forall r. RequiresRecreation -> (Void# -> r) -> (Void# -> r) -> r
RequiresRecreation_CONDITIONALLY = RequiresRecreation' "CONDITIONALLY"

pattern RequiresRecreation_NEVER :: RequiresRecreation
pattern $bRequiresRecreation_NEVER :: RequiresRecreation
$mRequiresRecreation_NEVER :: forall r. RequiresRecreation -> (Void# -> r) -> (Void# -> r) -> r
RequiresRecreation_NEVER = RequiresRecreation' "NEVER"

{-# COMPLETE
  RequiresRecreation_ALWAYS,
  RequiresRecreation_CONDITIONALLY,
  RequiresRecreation_NEVER,
  RequiresRecreation'
  #-}