{-# 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.OperatingSystemType
-- 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.OperatingSystemType
  ( OperatingSystemType
      ( ..,
        OperatingSystemType_LINUX,
        OperatingSystemType_WINDOWS
      ),
  )
where

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

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

pattern OperatingSystemType_LINUX :: OperatingSystemType
pattern $bOperatingSystemType_LINUX :: OperatingSystemType
$mOperatingSystemType_LINUX :: forall {r}.
OperatingSystemType -> ((# #) -> r) -> ((# #) -> r) -> r
OperatingSystemType_LINUX = OperatingSystemType' "LINUX"

pattern OperatingSystemType_WINDOWS :: OperatingSystemType
pattern $bOperatingSystemType_WINDOWS :: OperatingSystemType
$mOperatingSystemType_WINDOWS :: forall {r}.
OperatingSystemType -> ((# #) -> r) -> ((# #) -> r) -> r
OperatingSystemType_WINDOWS = OperatingSystemType' "WINDOWS"

{-# COMPLETE
  OperatingSystemType_LINUX,
  OperatingSystemType_WINDOWS,
  OperatingSystemType'
  #-}