{-# 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.WorkSpaces.Types.BundleType
-- 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.WorkSpaces.Types.BundleType
  ( BundleType
      ( ..,
        BundleType_REGULAR,
        BundleType_STANDBY
      ),
  )
where

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

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

pattern BundleType_REGULAR :: BundleType
pattern $bBundleType_REGULAR :: BundleType
$mBundleType_REGULAR :: forall {r}. BundleType -> ((# #) -> r) -> ((# #) -> r) -> r
BundleType_REGULAR = BundleType' "REGULAR"

pattern BundleType_STANDBY :: BundleType
pattern $bBundleType_STANDBY :: BundleType
$mBundleType_STANDBY :: forall {r}. BundleType -> ((# #) -> r) -> ((# #) -> r) -> r
BundleType_STANDBY = BundleType' "STANDBY"

{-# COMPLETE
  BundleType_REGULAR,
  BundleType_STANDBY,
  BundleType'
  #-}