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

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

newtype OsType = OsType' {OsType -> Text
fromOsType :: Core.Text}
  deriving stock
    ( Int -> OsType -> ShowS
[OsType] -> ShowS
OsType -> String
(Int -> OsType -> ShowS)
-> (OsType -> String) -> ([OsType] -> ShowS) -> Show OsType
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]
(Int -> ReadS OsType)
-> ReadS [OsType]
-> ReadPrec OsType
-> ReadPrec [OsType]
-> Read 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
(OsType -> OsType -> Bool)
-> (OsType -> OsType -> Bool) -> Eq OsType
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
Eq OsType
-> (OsType -> OsType -> Ordering)
-> (OsType -> OsType -> Bool)
-> (OsType -> OsType -> Bool)
-> (OsType -> OsType -> Bool)
-> (OsType -> OsType -> Bool)
-> (OsType -> OsType -> OsType)
-> (OsType -> OsType -> OsType)
-> Ord 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
$cp1Ord :: Eq OsType
Prelude.Ord,
      (forall x. OsType -> Rep OsType x)
-> (forall x. Rep OsType x -> OsType) -> Generic OsType
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
    ( Int -> OsType -> Int
OsType -> Int
(Int -> OsType -> Int) -> (OsType -> Int) -> Hashable OsType
forall 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 -> ()
(OsType -> ()) -> NFData OsType
forall a. (a -> ()) -> NFData a
rnf :: OsType -> ()
$crnf :: OsType -> ()
Prelude.NFData,
      Text -> Either String OsType
(Text -> Either String OsType) -> FromText OsType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OsType
$cfromText :: Text -> Either String OsType
Core.FromText,
      OsType -> Text
(OsType -> Text) -> ToText OsType
forall a. (a -> Text) -> ToText a
toText :: OsType -> Text
$ctoText :: OsType -> Text
Core.ToText,
      OsType -> ByteString
(OsType -> ByteString) -> ToByteString OsType
forall a. (a -> ByteString) -> ToByteString a
toBS :: OsType -> ByteString
$ctoBS :: OsType -> ByteString
Core.ToByteString,
      OsType -> ByteStringBuilder
(OsType -> ByteStringBuilder) -> ToLog OsType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OsType -> ByteStringBuilder
$cbuild :: OsType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> OsType -> [Header]
(HeaderName -> OsType -> [Header]) -> ToHeader OsType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OsType -> [Header]
$ctoHeader :: HeaderName -> OsType -> [Header]
Core.ToHeader,
      OsType -> QueryString
(OsType -> QueryString) -> ToQuery OsType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OsType -> QueryString
$ctoQuery :: OsType -> QueryString
Core.ToQuery,
      Value -> Parser [OsType]
Value -> Parser OsType
(Value -> Parser OsType)
-> (Value -> Parser [OsType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [OsType]
FromJSONKeyFunction OsType
FromJSONKeyFunction OsType
-> FromJSONKeyFunction [OsType] -> FromJSONKey OsType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OsType]
$cfromJSONKeyList :: FromJSONKeyFunction [OsType]
fromJSONKey :: FromJSONKeyFunction OsType
$cfromJSONKey :: FromJSONKeyFunction OsType
Core.FromJSONKey,
      [OsType] -> Encoding
[OsType] -> Value
OsType -> Encoding
OsType -> Value
(OsType -> Value)
-> (OsType -> Encoding)
-> ([OsType] -> Value)
-> ([OsType] -> Encoding)
-> ToJSON OsType
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
Core.ToJSON,
      ToJSONKeyFunction [OsType]
ToJSONKeyFunction OsType
ToJSONKeyFunction OsType
-> ToJSONKeyFunction [OsType] -> ToJSONKey OsType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OsType]
$ctoJSONKeyList :: ToJSONKeyFunction [OsType]
toJSONKey :: ToJSONKeyFunction OsType
$ctoJSONKey :: ToJSONKeyFunction OsType
Core.ToJSONKey,
      [Node] -> Either String OsType
([Node] -> Either String OsType) -> FromXML OsType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OsType
$cparseXML :: [Node] -> Either String OsType
Core.FromXML,
      OsType -> XML
(OsType -> XML) -> ToXML OsType
forall a. (a -> XML) -> ToXML a
toXML :: OsType -> XML
$ctoXML :: OsType -> XML
Core.ToXML
    )

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

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

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