{-# 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.ApplicationInsights.Types.OsType
-- 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.ApplicationInsights.Types.OsType
  ( OsType
      ( ..,
        OsType_LINUX,
        OsType_WINDOWS
      ),
  )
where

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

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

pattern OsType_LINUX :: OsType
pattern $bOsType_LINUX :: OsType
$mOsType_LINUX :: forall {r}. OsType -> ((# #) -> r) -> ((# #) -> r) -> r
OsType_LINUX = OsType' "LINUX"

pattern OsType_WINDOWS :: OsType
pattern $bOsType_WINDOWS :: OsType
$mOsType_WINDOWS :: forall {r}. OsType -> ((# #) -> r) -> ((# #) -> r) -> r
OsType_WINDOWS = OsType' "WINDOWS"

{-# COMPLETE
  OsType_LINUX,
  OsType_WINDOWS,
  OsType'
  #-}