{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.WorkSpaces.Types.OperatingSystemType
( OperatingSystemType
( ..,
OperatingSystemType_LINUX,
OperatingSystemType_WINDOWS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype OperatingSystemType = OperatingSystemType'
{ OperatingSystemType -> Text
fromOperatingSystemType ::
Core.Text
}
deriving stock
( Int -> OperatingSystemType -> ShowS
[OperatingSystemType] -> ShowS
OperatingSystemType -> String
(Int -> OperatingSystemType -> ShowS)
-> (OperatingSystemType -> String)
-> ([OperatingSystemType] -> ShowS)
-> Show OperatingSystemType
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]
(Int -> ReadS OperatingSystemType)
-> ReadS [OperatingSystemType]
-> ReadPrec OperatingSystemType
-> ReadPrec [OperatingSystemType]
-> Read 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
(OperatingSystemType -> OperatingSystemType -> Bool)
-> (OperatingSystemType -> OperatingSystemType -> Bool)
-> Eq OperatingSystemType
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
Eq OperatingSystemType
-> (OperatingSystemType -> OperatingSystemType -> Ordering)
-> (OperatingSystemType -> OperatingSystemType -> Bool)
-> (OperatingSystemType -> OperatingSystemType -> Bool)
-> (OperatingSystemType -> OperatingSystemType -> Bool)
-> (OperatingSystemType -> OperatingSystemType -> Bool)
-> (OperatingSystemType
-> OperatingSystemType -> OperatingSystemType)
-> (OperatingSystemType
-> OperatingSystemType -> OperatingSystemType)
-> Ord 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
$cp1Ord :: Eq OperatingSystemType
Prelude.Ord,
(forall x. OperatingSystemType -> Rep OperatingSystemType x)
-> (forall x. Rep OperatingSystemType x -> OperatingSystemType)
-> Generic OperatingSystemType
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
( Int -> OperatingSystemType -> Int
OperatingSystemType -> Int
(Int -> OperatingSystemType -> Int)
-> (OperatingSystemType -> Int) -> Hashable OperatingSystemType
forall 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 -> ()
(OperatingSystemType -> ()) -> NFData OperatingSystemType
forall a. (a -> ()) -> NFData a
rnf :: OperatingSystemType -> ()
$crnf :: OperatingSystemType -> ()
Prelude.NFData,
Text -> Either String OperatingSystemType
(Text -> Either String OperatingSystemType)
-> FromText OperatingSystemType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OperatingSystemType
$cfromText :: Text -> Either String OperatingSystemType
Core.FromText,
OperatingSystemType -> Text
(OperatingSystemType -> Text) -> ToText OperatingSystemType
forall a. (a -> Text) -> ToText a
toText :: OperatingSystemType -> Text
$ctoText :: OperatingSystemType -> Text
Core.ToText,
OperatingSystemType -> ByteString
(OperatingSystemType -> ByteString)
-> ToByteString OperatingSystemType
forall a. (a -> ByteString) -> ToByteString a
toBS :: OperatingSystemType -> ByteString
$ctoBS :: OperatingSystemType -> ByteString
Core.ToByteString,
OperatingSystemType -> ByteStringBuilder
(OperatingSystemType -> ByteStringBuilder)
-> ToLog OperatingSystemType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OperatingSystemType -> ByteStringBuilder
$cbuild :: OperatingSystemType -> ByteStringBuilder
Core.ToLog,
HeaderName -> OperatingSystemType -> [Header]
(HeaderName -> OperatingSystemType -> [Header])
-> ToHeader OperatingSystemType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OperatingSystemType -> [Header]
$ctoHeader :: HeaderName -> OperatingSystemType -> [Header]
Core.ToHeader,
OperatingSystemType -> QueryString
(OperatingSystemType -> QueryString) -> ToQuery OperatingSystemType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OperatingSystemType -> QueryString
$ctoQuery :: OperatingSystemType -> QueryString
Core.ToQuery,
Value -> Parser [OperatingSystemType]
Value -> Parser OperatingSystemType
(Value -> Parser OperatingSystemType)
-> (Value -> Parser [OperatingSystemType])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [OperatingSystemType]
FromJSONKeyFunction OperatingSystemType
FromJSONKeyFunction OperatingSystemType
-> FromJSONKeyFunction [OperatingSystemType]
-> FromJSONKey OperatingSystemType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OperatingSystemType]
$cfromJSONKeyList :: FromJSONKeyFunction [OperatingSystemType]
fromJSONKey :: FromJSONKeyFunction OperatingSystemType
$cfromJSONKey :: FromJSONKeyFunction OperatingSystemType
Core.FromJSONKey,
[OperatingSystemType] -> Encoding
[OperatingSystemType] -> Value
OperatingSystemType -> Encoding
OperatingSystemType -> Value
(OperatingSystemType -> Value)
-> (OperatingSystemType -> Encoding)
-> ([OperatingSystemType] -> Value)
-> ([OperatingSystemType] -> Encoding)
-> ToJSON OperatingSystemType
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
Core.ToJSON,
ToJSONKeyFunction [OperatingSystemType]
ToJSONKeyFunction OperatingSystemType
ToJSONKeyFunction OperatingSystemType
-> ToJSONKeyFunction [OperatingSystemType]
-> ToJSONKey OperatingSystemType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OperatingSystemType]
$ctoJSONKeyList :: ToJSONKeyFunction [OperatingSystemType]
toJSONKey :: ToJSONKeyFunction OperatingSystemType
$ctoJSONKey :: ToJSONKeyFunction OperatingSystemType
Core.ToJSONKey,
[Node] -> Either String OperatingSystemType
([Node] -> Either String OperatingSystemType)
-> FromXML OperatingSystemType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OperatingSystemType
$cparseXML :: [Node] -> Either String OperatingSystemType
Core.FromXML,
OperatingSystemType -> XML
(OperatingSystemType -> XML) -> ToXML OperatingSystemType
forall a. (a -> XML) -> ToXML a
toXML :: OperatingSystemType -> XML
$ctoXML :: OperatingSystemType -> XML
Core.ToXML
)
pattern OperatingSystemType_LINUX :: OperatingSystemType
pattern $bOperatingSystemType_LINUX :: OperatingSystemType
$mOperatingSystemType_LINUX :: forall r. OperatingSystemType -> (Void# -> r) -> (Void# -> r) -> r
OperatingSystemType_LINUX = OperatingSystemType' "LINUX"
pattern OperatingSystemType_WINDOWS :: OperatingSystemType
pattern $bOperatingSystemType_WINDOWS :: OperatingSystemType
$mOperatingSystemType_WINDOWS :: forall r. OperatingSystemType -> (Void# -> r) -> (Void# -> r) -> r
OperatingSystemType_WINDOWS = OperatingSystemType' "WINDOWS"
{-# COMPLETE
OperatingSystemType_LINUX,
OperatingSystemType_WINDOWS,
OperatingSystemType'
#-}