{-# 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.Application
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.WorkSpaces.Types.Application
  ( Application
      ( ..,
        Application_Microsoft_Office_2016,
        Application_Microsoft_Office_2019
      ),
  )
where

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

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

pattern Application_Microsoft_Office_2016 :: Application
pattern $bApplication_Microsoft_Office_2016 :: Application
$mApplication_Microsoft_Office_2016 :: forall r. Application -> (Void# -> r) -> (Void# -> r) -> r
Application_Microsoft_Office_2016 = Application' "Microsoft_Office_2016"

pattern Application_Microsoft_Office_2019 :: Application
pattern $bApplication_Microsoft_Office_2019 :: Application
$mApplication_Microsoft_Office_2019 :: forall r. Application -> (Void# -> r) -> (Void# -> r) -> r
Application_Microsoft_Office_2019 = Application' "Microsoft_Office_2019"

{-# COMPLETE
  Application_Microsoft_Office_2016,
  Application_Microsoft_Office_2019,
  Application'
  #-}