{-# 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.OpenZFSDataCompressionType
-- 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.OpenZFSDataCompressionType
  ( OpenZFSDataCompressionType
      ( ..,
        OpenZFSDataCompressionType_LZ4,
        OpenZFSDataCompressionType_NONE,
        OpenZFSDataCompressionType_ZSTD
      ),
  )
where

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

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

pattern OpenZFSDataCompressionType_LZ4 :: OpenZFSDataCompressionType
pattern $bOpenZFSDataCompressionType_LZ4 :: OpenZFSDataCompressionType
$mOpenZFSDataCompressionType_LZ4 :: forall {r}.
OpenZFSDataCompressionType -> ((# #) -> r) -> ((# #) -> r) -> r
OpenZFSDataCompressionType_LZ4 = OpenZFSDataCompressionType' "LZ4"

pattern OpenZFSDataCompressionType_NONE :: OpenZFSDataCompressionType
pattern $bOpenZFSDataCompressionType_NONE :: OpenZFSDataCompressionType
$mOpenZFSDataCompressionType_NONE :: forall {r}.
OpenZFSDataCompressionType -> ((# #) -> r) -> ((# #) -> r) -> r
OpenZFSDataCompressionType_NONE = OpenZFSDataCompressionType' "NONE"

pattern OpenZFSDataCompressionType_ZSTD :: OpenZFSDataCompressionType
pattern $bOpenZFSDataCompressionType_ZSTD :: OpenZFSDataCompressionType
$mOpenZFSDataCompressionType_ZSTD :: forall {r}.
OpenZFSDataCompressionType -> ((# #) -> r) -> ((# #) -> r) -> r
OpenZFSDataCompressionType_ZSTD = OpenZFSDataCompressionType' "ZSTD"

{-# COMPLETE
  OpenZFSDataCompressionType_LZ4,
  OpenZFSDataCompressionType_NONE,
  OpenZFSDataCompressionType_ZSTD,
  OpenZFSDataCompressionType'
  #-}