{-# 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-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.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.Prelude as Prelude

newtype ApplicationRestoreType = ApplicationRestoreType'
  { ApplicationRestoreType -> Text
fromApplicationRestoreType ::
      Core.Text
  }
  deriving stock
    ( Int -> ApplicationRestoreType -> ShowS
[ApplicationRestoreType] -> ShowS
ApplicationRestoreType -> String
(Int -> ApplicationRestoreType -> ShowS)
-> (ApplicationRestoreType -> String)
-> ([ApplicationRestoreType] -> ShowS)
-> Show ApplicationRestoreType
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]
(Int -> ReadS ApplicationRestoreType)
-> ReadS [ApplicationRestoreType]
-> ReadPrec ApplicationRestoreType
-> ReadPrec [ApplicationRestoreType]
-> Read 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
(ApplicationRestoreType -> ApplicationRestoreType -> Bool)
-> (ApplicationRestoreType -> ApplicationRestoreType -> Bool)
-> Eq ApplicationRestoreType
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
Eq ApplicationRestoreType
-> (ApplicationRestoreType -> ApplicationRestoreType -> Ordering)
-> (ApplicationRestoreType -> ApplicationRestoreType -> Bool)
-> (ApplicationRestoreType -> ApplicationRestoreType -> Bool)
-> (ApplicationRestoreType -> ApplicationRestoreType -> Bool)
-> (ApplicationRestoreType -> ApplicationRestoreType -> Bool)
-> (ApplicationRestoreType
    -> ApplicationRestoreType -> ApplicationRestoreType)
-> (ApplicationRestoreType
    -> ApplicationRestoreType -> ApplicationRestoreType)
-> Ord 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
$cp1Ord :: Eq ApplicationRestoreType
Prelude.Ord,
      (forall x. ApplicationRestoreType -> Rep ApplicationRestoreType x)
-> (forall x.
    Rep ApplicationRestoreType x -> ApplicationRestoreType)
-> Generic ApplicationRestoreType
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
    ( Int -> ApplicationRestoreType -> Int
ApplicationRestoreType -> Int
(Int -> ApplicationRestoreType -> Int)
-> (ApplicationRestoreType -> Int)
-> Hashable ApplicationRestoreType
forall 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 -> ()
(ApplicationRestoreType -> ()) -> NFData ApplicationRestoreType
forall a. (a -> ()) -> NFData a
rnf :: ApplicationRestoreType -> ()
$crnf :: ApplicationRestoreType -> ()
Prelude.NFData,
      Text -> Either String ApplicationRestoreType
(Text -> Either String ApplicationRestoreType)
-> FromText ApplicationRestoreType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ApplicationRestoreType
$cfromText :: Text -> Either String ApplicationRestoreType
Core.FromText,
      ApplicationRestoreType -> Text
(ApplicationRestoreType -> Text) -> ToText ApplicationRestoreType
forall a. (a -> Text) -> ToText a
toText :: ApplicationRestoreType -> Text
$ctoText :: ApplicationRestoreType -> Text
Core.ToText,
      ApplicationRestoreType -> ByteString
(ApplicationRestoreType -> ByteString)
-> ToByteString ApplicationRestoreType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ApplicationRestoreType -> ByteString
$ctoBS :: ApplicationRestoreType -> ByteString
Core.ToByteString,
      ApplicationRestoreType -> ByteStringBuilder
(ApplicationRestoreType -> ByteStringBuilder)
-> ToLog ApplicationRestoreType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ApplicationRestoreType -> ByteStringBuilder
$cbuild :: ApplicationRestoreType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ApplicationRestoreType -> [Header]
(HeaderName -> ApplicationRestoreType -> [Header])
-> ToHeader ApplicationRestoreType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ApplicationRestoreType -> [Header]
$ctoHeader :: HeaderName -> ApplicationRestoreType -> [Header]
Core.ToHeader,
      ApplicationRestoreType -> QueryString
(ApplicationRestoreType -> QueryString)
-> ToQuery ApplicationRestoreType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ApplicationRestoreType -> QueryString
$ctoQuery :: ApplicationRestoreType -> QueryString
Core.ToQuery,
      Value -> Parser [ApplicationRestoreType]
Value -> Parser ApplicationRestoreType
(Value -> Parser ApplicationRestoreType)
-> (Value -> Parser [ApplicationRestoreType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ApplicationRestoreType]
FromJSONKeyFunction ApplicationRestoreType
FromJSONKeyFunction ApplicationRestoreType
-> FromJSONKeyFunction [ApplicationRestoreType]
-> FromJSONKey ApplicationRestoreType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ApplicationRestoreType]
$cfromJSONKeyList :: FromJSONKeyFunction [ApplicationRestoreType]
fromJSONKey :: FromJSONKeyFunction ApplicationRestoreType
$cfromJSONKey :: FromJSONKeyFunction ApplicationRestoreType
Core.FromJSONKey,
      [ApplicationRestoreType] -> Encoding
[ApplicationRestoreType] -> Value
ApplicationRestoreType -> Encoding
ApplicationRestoreType -> Value
(ApplicationRestoreType -> Value)
-> (ApplicationRestoreType -> Encoding)
-> ([ApplicationRestoreType] -> Value)
-> ([ApplicationRestoreType] -> Encoding)
-> ToJSON ApplicationRestoreType
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
Core.ToJSON,
      ToJSONKeyFunction [ApplicationRestoreType]
ToJSONKeyFunction ApplicationRestoreType
ToJSONKeyFunction ApplicationRestoreType
-> ToJSONKeyFunction [ApplicationRestoreType]
-> ToJSONKey ApplicationRestoreType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ApplicationRestoreType]
$ctoJSONKeyList :: ToJSONKeyFunction [ApplicationRestoreType]
toJSONKey :: ToJSONKeyFunction ApplicationRestoreType
$ctoJSONKey :: ToJSONKeyFunction ApplicationRestoreType
Core.ToJSONKey,
      [Node] -> Either String ApplicationRestoreType
([Node] -> Either String ApplicationRestoreType)
-> FromXML ApplicationRestoreType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ApplicationRestoreType
$cparseXML :: [Node] -> Either String ApplicationRestoreType
Core.FromXML,
      ApplicationRestoreType -> XML
(ApplicationRestoreType -> XML) -> ToXML ApplicationRestoreType
forall a. (a -> XML) -> ToXML a
toXML :: ApplicationRestoreType -> XML
$ctoXML :: ApplicationRestoreType -> XML
Core.ToXML
    )

pattern ApplicationRestoreType_RESTORE_FROM_CUSTOM_SNAPSHOT :: ApplicationRestoreType
pattern $bApplicationRestoreType_RESTORE_FROM_CUSTOM_SNAPSHOT :: ApplicationRestoreType
$mApplicationRestoreType_RESTORE_FROM_CUSTOM_SNAPSHOT :: forall r.
ApplicationRestoreType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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'
  #-}