{-# 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.OntapVolumeType
-- 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.OntapVolumeType
  ( OntapVolumeType
      ( ..,
        OntapVolumeType_DP,
        OntapVolumeType_LS,
        OntapVolumeType_RW
      ),
  )
where

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

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

pattern OntapVolumeType_DP :: OntapVolumeType
pattern $bOntapVolumeType_DP :: OntapVolumeType
$mOntapVolumeType_DP :: forall {r}. OntapVolumeType -> ((# #) -> r) -> ((# #) -> r) -> r
OntapVolumeType_DP = OntapVolumeType' "DP"

pattern OntapVolumeType_LS :: OntapVolumeType
pattern $bOntapVolumeType_LS :: OntapVolumeType
$mOntapVolumeType_LS :: forall {r}. OntapVolumeType -> ((# #) -> r) -> ((# #) -> r) -> r
OntapVolumeType_LS = OntapVolumeType' "LS"

pattern OntapVolumeType_RW :: OntapVolumeType
pattern $bOntapVolumeType_RW :: OntapVolumeType
$mOntapVolumeType_RW :: forall {r}. OntapVolumeType -> ((# #) -> r) -> ((# #) -> r) -> r
OntapVolumeType_RW = OntapVolumeType' "RW"

{-# COMPLETE
  OntapVolumeType_DP,
  OntapVolumeType_LS,
  OntapVolumeType_RW,
  OntapVolumeType'
  #-}