{-# 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.S3.Types.RestoreRequestType
-- 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.S3.Types.RestoreRequestType
  ( RestoreRequestType
      ( ..,
        RestoreRequestType_SELECT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal

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

pattern RestoreRequestType_SELECT :: RestoreRequestType
pattern $bRestoreRequestType_SELECT :: RestoreRequestType
$mRestoreRequestType_SELECT :: forall r. RestoreRequestType -> (Void# -> r) -> (Void# -> r) -> r
RestoreRequestType_SELECT = RestoreRequestType' "SELECT"

{-# COMPLETE
  RestoreRequestType_SELECT,
  RestoreRequestType'
  #-}