{-# 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.OpenZFSCopyStrategy
-- 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.OpenZFSCopyStrategy
  ( OpenZFSCopyStrategy
      ( ..,
        OpenZFSCopyStrategy_CLONE,
        OpenZFSCopyStrategy_FULL_COPY
      ),
  )
where

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

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

pattern OpenZFSCopyStrategy_CLONE :: OpenZFSCopyStrategy
pattern $bOpenZFSCopyStrategy_CLONE :: OpenZFSCopyStrategy
$mOpenZFSCopyStrategy_CLONE :: forall {r}.
OpenZFSCopyStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
OpenZFSCopyStrategy_CLONE = OpenZFSCopyStrategy' "CLONE"

pattern OpenZFSCopyStrategy_FULL_COPY :: OpenZFSCopyStrategy
pattern $bOpenZFSCopyStrategy_FULL_COPY :: OpenZFSCopyStrategy
$mOpenZFSCopyStrategy_FULL_COPY :: forall {r}.
OpenZFSCopyStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
OpenZFSCopyStrategy_FULL_COPY = OpenZFSCopyStrategy' "FULL_COPY"

{-# COMPLETE
  OpenZFSCopyStrategy_CLONE,
  OpenZFSCopyStrategy_FULL_COPY,
  OpenZFSCopyStrategy'
  #-}