{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CloudHSMV2.Types.BackupPolicy
( BackupPolicy
( ..,
BackupPolicy_DEFAULT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype BackupPolicy = BackupPolicy'
{ BackupPolicy -> Text
fromBackupPolicy ::
Core.Text
}
deriving stock
( Int -> BackupPolicy -> ShowS
[BackupPolicy] -> ShowS
BackupPolicy -> String
(Int -> BackupPolicy -> ShowS)
-> (BackupPolicy -> String)
-> ([BackupPolicy] -> ShowS)
-> Show BackupPolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BackupPolicy] -> ShowS
$cshowList :: [BackupPolicy] -> ShowS
show :: BackupPolicy -> String
$cshow :: BackupPolicy -> String
showsPrec :: Int -> BackupPolicy -> ShowS
$cshowsPrec :: Int -> BackupPolicy -> ShowS
Prelude.Show,
ReadPrec [BackupPolicy]
ReadPrec BackupPolicy
Int -> ReadS BackupPolicy
ReadS [BackupPolicy]
(Int -> ReadS BackupPolicy)
-> ReadS [BackupPolicy]
-> ReadPrec BackupPolicy
-> ReadPrec [BackupPolicy]
-> Read BackupPolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BackupPolicy]
$creadListPrec :: ReadPrec [BackupPolicy]
readPrec :: ReadPrec BackupPolicy
$creadPrec :: ReadPrec BackupPolicy
readList :: ReadS [BackupPolicy]
$creadList :: ReadS [BackupPolicy]
readsPrec :: Int -> ReadS BackupPolicy
$creadsPrec :: Int -> ReadS BackupPolicy
Prelude.Read,
BackupPolicy -> BackupPolicy -> Bool
(BackupPolicy -> BackupPolicy -> Bool)
-> (BackupPolicy -> BackupPolicy -> Bool) -> Eq BackupPolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BackupPolicy -> BackupPolicy -> Bool
$c/= :: BackupPolicy -> BackupPolicy -> Bool
== :: BackupPolicy -> BackupPolicy -> Bool
$c== :: BackupPolicy -> BackupPolicy -> Bool
Prelude.Eq,
Eq BackupPolicy
Eq BackupPolicy
-> (BackupPolicy -> BackupPolicy -> Ordering)
-> (BackupPolicy -> BackupPolicy -> Bool)
-> (BackupPolicy -> BackupPolicy -> Bool)
-> (BackupPolicy -> BackupPolicy -> Bool)
-> (BackupPolicy -> BackupPolicy -> Bool)
-> (BackupPolicy -> BackupPolicy -> BackupPolicy)
-> (BackupPolicy -> BackupPolicy -> BackupPolicy)
-> Ord BackupPolicy
BackupPolicy -> BackupPolicy -> Bool
BackupPolicy -> BackupPolicy -> Ordering
BackupPolicy -> BackupPolicy -> BackupPolicy
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 :: BackupPolicy -> BackupPolicy -> BackupPolicy
$cmin :: BackupPolicy -> BackupPolicy -> BackupPolicy
max :: BackupPolicy -> BackupPolicy -> BackupPolicy
$cmax :: BackupPolicy -> BackupPolicy -> BackupPolicy
>= :: BackupPolicy -> BackupPolicy -> Bool
$c>= :: BackupPolicy -> BackupPolicy -> Bool
> :: BackupPolicy -> BackupPolicy -> Bool
$c> :: BackupPolicy -> BackupPolicy -> Bool
<= :: BackupPolicy -> BackupPolicy -> Bool
$c<= :: BackupPolicy -> BackupPolicy -> Bool
< :: BackupPolicy -> BackupPolicy -> Bool
$c< :: BackupPolicy -> BackupPolicy -> Bool
compare :: BackupPolicy -> BackupPolicy -> Ordering
$ccompare :: BackupPolicy -> BackupPolicy -> Ordering
$cp1Ord :: Eq BackupPolicy
Prelude.Ord,
(forall x. BackupPolicy -> Rep BackupPolicy x)
-> (forall x. Rep BackupPolicy x -> BackupPolicy)
-> Generic BackupPolicy
forall x. Rep BackupPolicy x -> BackupPolicy
forall x. BackupPolicy -> Rep BackupPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BackupPolicy x -> BackupPolicy
$cfrom :: forall x. BackupPolicy -> Rep BackupPolicy x
Prelude.Generic
)
deriving newtype
( Int -> BackupPolicy -> Int
BackupPolicy -> Int
(Int -> BackupPolicy -> Int)
-> (BackupPolicy -> Int) -> Hashable BackupPolicy
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BackupPolicy -> Int
$chash :: BackupPolicy -> Int
hashWithSalt :: Int -> BackupPolicy -> Int
$chashWithSalt :: Int -> BackupPolicy -> Int
Prelude.Hashable,
BackupPolicy -> ()
(BackupPolicy -> ()) -> NFData BackupPolicy
forall a. (a -> ()) -> NFData a
rnf :: BackupPolicy -> ()
$crnf :: BackupPolicy -> ()
Prelude.NFData,
Text -> Either String BackupPolicy
(Text -> Either String BackupPolicy) -> FromText BackupPolicy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BackupPolicy
$cfromText :: Text -> Either String BackupPolicy
Core.FromText,
BackupPolicy -> Text
(BackupPolicy -> Text) -> ToText BackupPolicy
forall a. (a -> Text) -> ToText a
toText :: BackupPolicy -> Text
$ctoText :: BackupPolicy -> Text
Core.ToText,
BackupPolicy -> ByteString
(BackupPolicy -> ByteString) -> ToByteString BackupPolicy
forall a. (a -> ByteString) -> ToByteString a
toBS :: BackupPolicy -> ByteString
$ctoBS :: BackupPolicy -> ByteString
Core.ToByteString,
BackupPolicy -> ByteStringBuilder
(BackupPolicy -> ByteStringBuilder) -> ToLog BackupPolicy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BackupPolicy -> ByteStringBuilder
$cbuild :: BackupPolicy -> ByteStringBuilder
Core.ToLog,
HeaderName -> BackupPolicy -> [Header]
(HeaderName -> BackupPolicy -> [Header]) -> ToHeader BackupPolicy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BackupPolicy -> [Header]
$ctoHeader :: HeaderName -> BackupPolicy -> [Header]
Core.ToHeader,
BackupPolicy -> QueryString
(BackupPolicy -> QueryString) -> ToQuery BackupPolicy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BackupPolicy -> QueryString
$ctoQuery :: BackupPolicy -> QueryString
Core.ToQuery,
Value -> Parser [BackupPolicy]
Value -> Parser BackupPolicy
(Value -> Parser BackupPolicy)
-> (Value -> Parser [BackupPolicy]) -> FromJSON BackupPolicy
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BackupPolicy]
$cparseJSONList :: Value -> Parser [BackupPolicy]
parseJSON :: Value -> Parser BackupPolicy
$cparseJSON :: Value -> Parser BackupPolicy
Core.FromJSON,
FromJSONKeyFunction [BackupPolicy]
FromJSONKeyFunction BackupPolicy
FromJSONKeyFunction BackupPolicy
-> FromJSONKeyFunction [BackupPolicy] -> FromJSONKey BackupPolicy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BackupPolicy]
$cfromJSONKeyList :: FromJSONKeyFunction [BackupPolicy]
fromJSONKey :: FromJSONKeyFunction BackupPolicy
$cfromJSONKey :: FromJSONKeyFunction BackupPolicy
Core.FromJSONKey,
[BackupPolicy] -> Encoding
[BackupPolicy] -> Value
BackupPolicy -> Encoding
BackupPolicy -> Value
(BackupPolicy -> Value)
-> (BackupPolicy -> Encoding)
-> ([BackupPolicy] -> Value)
-> ([BackupPolicy] -> Encoding)
-> ToJSON BackupPolicy
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BackupPolicy] -> Encoding
$ctoEncodingList :: [BackupPolicy] -> Encoding
toJSONList :: [BackupPolicy] -> Value
$ctoJSONList :: [BackupPolicy] -> Value
toEncoding :: BackupPolicy -> Encoding
$ctoEncoding :: BackupPolicy -> Encoding
toJSON :: BackupPolicy -> Value
$ctoJSON :: BackupPolicy -> Value
Core.ToJSON,
ToJSONKeyFunction [BackupPolicy]
ToJSONKeyFunction BackupPolicy
ToJSONKeyFunction BackupPolicy
-> ToJSONKeyFunction [BackupPolicy] -> ToJSONKey BackupPolicy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BackupPolicy]
$ctoJSONKeyList :: ToJSONKeyFunction [BackupPolicy]
toJSONKey :: ToJSONKeyFunction BackupPolicy
$ctoJSONKey :: ToJSONKeyFunction BackupPolicy
Core.ToJSONKey,
[Node] -> Either String BackupPolicy
([Node] -> Either String BackupPolicy) -> FromXML BackupPolicy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BackupPolicy
$cparseXML :: [Node] -> Either String BackupPolicy
Core.FromXML,
BackupPolicy -> XML
(BackupPolicy -> XML) -> ToXML BackupPolicy
forall a. (a -> XML) -> ToXML a
toXML :: BackupPolicy -> XML
$ctoXML :: BackupPolicy -> XML
Core.ToXML
)
pattern BackupPolicy_DEFAULT :: BackupPolicy
pattern $bBackupPolicy_DEFAULT :: BackupPolicy
$mBackupPolicy_DEFAULT :: forall r. BackupPolicy -> (Void# -> r) -> (Void# -> r) -> r
BackupPolicy_DEFAULT = BackupPolicy' "DEFAULT"
{-# COMPLETE
BackupPolicy_DEFAULT,
BackupPolicy'
#-}