{-# 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.KinesisAnalyticsV2.Types.ApplicationRestoreType
-- 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.KinesisAnalyticsV2.Types.ApplicationRestoreType
  ( ApplicationRestoreType
      ( ..,
        ApplicationRestoreType_RESTORE_FROM_CUSTOM_SNAPSHOT,
        ApplicationRestoreType_RESTORE_FROM_LATEST_SNAPSHOT,
        ApplicationRestoreType_SKIP_RESTORE_FROM_SNAPSHOT
      ),
  )
where

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

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

pattern ApplicationRestoreType_RESTORE_FROM_CUSTOM_SNAPSHOT :: ApplicationRestoreType
pattern $bApplicationRestoreType_RESTORE_FROM_CUSTOM_SNAPSHOT :: ApplicationRestoreType
$mApplicationRestoreType_RESTORE_FROM_CUSTOM_SNAPSHOT :: forall {r}.
ApplicationRestoreType -> ((# #) -> r) -> ((# #) -> r) -> r
ApplicationRestoreType_RESTORE_FROM_CUSTOM_SNAPSHOT = ApplicationRestoreType' "RESTORE_FROM_CUSTOM_SNAPSHOT"

pattern ApplicationRestoreType_RESTORE_FROM_LATEST_SNAPSHOT :: ApplicationRestoreType
pattern $bApplicationRestoreType_RESTORE_FROM_LATEST_SNAPSHOT :: ApplicationRestoreType
$mApplicationRestoreType_RESTORE_FROM_LATEST_SNAPSHOT :: forall {r}.
ApplicationRestoreType -> ((# #) -> r) -> ((# #) -> r) -> r
ApplicationRestoreType_RESTORE_FROM_LATEST_SNAPSHOT = ApplicationRestoreType' "RESTORE_FROM_LATEST_SNAPSHOT"

pattern ApplicationRestoreType_SKIP_RESTORE_FROM_SNAPSHOT :: ApplicationRestoreType
pattern $bApplicationRestoreType_SKIP_RESTORE_FROM_SNAPSHOT :: ApplicationRestoreType
$mApplicationRestoreType_SKIP_RESTORE_FROM_SNAPSHOT :: forall {r}.
ApplicationRestoreType -> ((# #) -> r) -> ((# #) -> r) -> r
ApplicationRestoreType_SKIP_RESTORE_FROM_SNAPSHOT = ApplicationRestoreType' "SKIP_RESTORE_FROM_SNAPSHOT"

{-# COMPLETE
  ApplicationRestoreType_RESTORE_FROM_CUSTOM_SNAPSHOT,
  ApplicationRestoreType_RESTORE_FROM_LATEST_SNAPSHOT,
  ApplicationRestoreType_SKIP_RESTORE_FROM_SNAPSHOT,
  ApplicationRestoreType'
  #-}