{-# 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.OpenZFSQuotaType
-- 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.OpenZFSQuotaType
  ( OpenZFSQuotaType
      ( ..,
        OpenZFSQuotaType_GROUP,
        OpenZFSQuotaType_USER
      ),
  )
where

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

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

pattern OpenZFSQuotaType_GROUP :: OpenZFSQuotaType
pattern $bOpenZFSQuotaType_GROUP :: OpenZFSQuotaType
$mOpenZFSQuotaType_GROUP :: forall {r}. OpenZFSQuotaType -> ((# #) -> r) -> ((# #) -> r) -> r
OpenZFSQuotaType_GROUP = OpenZFSQuotaType' "GROUP"

pattern OpenZFSQuotaType_USER :: OpenZFSQuotaType
pattern $bOpenZFSQuotaType_USER :: OpenZFSQuotaType
$mOpenZFSQuotaType_USER :: forall {r}. OpenZFSQuotaType -> ((# #) -> r) -> ((# #) -> r) -> r
OpenZFSQuotaType_USER = OpenZFSQuotaType' "USER"

{-# COMPLETE
  OpenZFSQuotaType_GROUP,
  OpenZFSQuotaType_USER,
  OpenZFSQuotaType'
  #-}