{-# 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.WindowsDeploymentType
-- 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.WindowsDeploymentType
  ( WindowsDeploymentType
      ( ..,
        WindowsDeploymentType_MULTI_AZ_1,
        WindowsDeploymentType_SINGLE_AZ_1,
        WindowsDeploymentType_SINGLE_AZ_2
      ),
  )
where

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

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

pattern WindowsDeploymentType_MULTI_AZ_1 :: WindowsDeploymentType
pattern $bWindowsDeploymentType_MULTI_AZ_1 :: WindowsDeploymentType
$mWindowsDeploymentType_MULTI_AZ_1 :: forall {r}.
WindowsDeploymentType -> ((# #) -> r) -> ((# #) -> r) -> r
WindowsDeploymentType_MULTI_AZ_1 = WindowsDeploymentType' "MULTI_AZ_1"

pattern WindowsDeploymentType_SINGLE_AZ_1 :: WindowsDeploymentType
pattern $bWindowsDeploymentType_SINGLE_AZ_1 :: WindowsDeploymentType
$mWindowsDeploymentType_SINGLE_AZ_1 :: forall {r}.
WindowsDeploymentType -> ((# #) -> r) -> ((# #) -> r) -> r
WindowsDeploymentType_SINGLE_AZ_1 = WindowsDeploymentType' "SINGLE_AZ_1"

pattern WindowsDeploymentType_SINGLE_AZ_2 :: WindowsDeploymentType
pattern $bWindowsDeploymentType_SINGLE_AZ_2 :: WindowsDeploymentType
$mWindowsDeploymentType_SINGLE_AZ_2 :: forall {r}.
WindowsDeploymentType -> ((# #) -> r) -> ((# #) -> r) -> r
WindowsDeploymentType_SINGLE_AZ_2 = WindowsDeploymentType' "SINGLE_AZ_2"

{-# COMPLETE
  WindowsDeploymentType_MULTI_AZ_1,
  WindowsDeploymentType_SINGLE_AZ_1,
  WindowsDeploymentType_SINGLE_AZ_2,
  WindowsDeploymentType'
  #-}