{-# 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.OntapDeploymentType
-- 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.OntapDeploymentType
  ( OntapDeploymentType
      ( ..,
        OntapDeploymentType_MULTI_AZ_1,
        OntapDeploymentType_SINGLE_AZ_1
      ),
  )
where

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

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

pattern OntapDeploymentType_MULTI_AZ_1 :: OntapDeploymentType
pattern $bOntapDeploymentType_MULTI_AZ_1 :: OntapDeploymentType
$mOntapDeploymentType_MULTI_AZ_1 :: forall {r}.
OntapDeploymentType -> ((# #) -> r) -> ((# #) -> r) -> r
OntapDeploymentType_MULTI_AZ_1 = OntapDeploymentType' "MULTI_AZ_1"

pattern OntapDeploymentType_SINGLE_AZ_1 :: OntapDeploymentType
pattern $bOntapDeploymentType_SINGLE_AZ_1 :: OntapDeploymentType
$mOntapDeploymentType_SINGLE_AZ_1 :: forall {r}.
OntapDeploymentType -> ((# #) -> r) -> ((# #) -> r) -> r
OntapDeploymentType_SINGLE_AZ_1 = OntapDeploymentType' "SINGLE_AZ_1"

{-# COMPLETE
  OntapDeploymentType_MULTI_AZ_1,
  OntapDeploymentType_SINGLE_AZ_1,
  OntapDeploymentType'
  #-}