{-# 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.FSx.Types.RestoreOpenZFSVolumeOption
-- 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.FSx.Types.RestoreOpenZFSVolumeOption
  ( RestoreOpenZFSVolumeOption
      ( ..,
        RestoreOpenZFSVolumeOption_DELETE_CLONED_VOLUMES,
        RestoreOpenZFSVolumeOption_DELETE_INTERMEDIATE_SNAPSHOTS
      ),
  )
where

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

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

pattern RestoreOpenZFSVolumeOption_DELETE_CLONED_VOLUMES :: RestoreOpenZFSVolumeOption
pattern $bRestoreOpenZFSVolumeOption_DELETE_CLONED_VOLUMES :: RestoreOpenZFSVolumeOption
$mRestoreOpenZFSVolumeOption_DELETE_CLONED_VOLUMES :: forall {r}.
RestoreOpenZFSVolumeOption -> ((# #) -> r) -> ((# #) -> r) -> r
RestoreOpenZFSVolumeOption_DELETE_CLONED_VOLUMES = RestoreOpenZFSVolumeOption' "DELETE_CLONED_VOLUMES"

pattern RestoreOpenZFSVolumeOption_DELETE_INTERMEDIATE_SNAPSHOTS :: RestoreOpenZFSVolumeOption
pattern $bRestoreOpenZFSVolumeOption_DELETE_INTERMEDIATE_SNAPSHOTS :: RestoreOpenZFSVolumeOption
$mRestoreOpenZFSVolumeOption_DELETE_INTERMEDIATE_SNAPSHOTS :: forall {r}.
RestoreOpenZFSVolumeOption -> ((# #) -> r) -> ((# #) -> r) -> r
RestoreOpenZFSVolumeOption_DELETE_INTERMEDIATE_SNAPSHOTS = RestoreOpenZFSVolumeOption' "DELETE_INTERMEDIATE_SNAPSHOTS"

{-# COMPLETE
  RestoreOpenZFSVolumeOption_DELETE_CLONED_VOLUMES,
  RestoreOpenZFSVolumeOption_DELETE_INTERMEDIATE_SNAPSHOTS,
  RestoreOpenZFSVolumeOption'
  #-}