{-# 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.MigrationHubStrategy.Types.ServerOsType
-- 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.MigrationHubStrategy.Types.ServerOsType
  ( ServerOsType
      ( ..,
        ServerOsType_AmazonLinux,
        ServerOsType_EndOfSupportWindowsServer,
        ServerOsType_Other,
        ServerOsType_Redhat,
        ServerOsType_WindowsServer
      ),
  )
where

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

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

pattern ServerOsType_AmazonLinux :: ServerOsType
pattern $bServerOsType_AmazonLinux :: ServerOsType
$mServerOsType_AmazonLinux :: forall {r}. ServerOsType -> ((# #) -> r) -> ((# #) -> r) -> r
ServerOsType_AmazonLinux = ServerOsType' "AmazonLinux"

pattern ServerOsType_EndOfSupportWindowsServer :: ServerOsType
pattern $bServerOsType_EndOfSupportWindowsServer :: ServerOsType
$mServerOsType_EndOfSupportWindowsServer :: forall {r}. ServerOsType -> ((# #) -> r) -> ((# #) -> r) -> r
ServerOsType_EndOfSupportWindowsServer = ServerOsType' "EndOfSupportWindowsServer"

pattern ServerOsType_Other :: ServerOsType
pattern $bServerOsType_Other :: ServerOsType
$mServerOsType_Other :: forall {r}. ServerOsType -> ((# #) -> r) -> ((# #) -> r) -> r
ServerOsType_Other = ServerOsType' "Other"

pattern ServerOsType_Redhat :: ServerOsType
pattern $bServerOsType_Redhat :: ServerOsType
$mServerOsType_Redhat :: forall {r}. ServerOsType -> ((# #) -> r) -> ((# #) -> r) -> r
ServerOsType_Redhat = ServerOsType' "Redhat"

pattern ServerOsType_WindowsServer :: ServerOsType
pattern $bServerOsType_WindowsServer :: ServerOsType
$mServerOsType_WindowsServer :: forall {r}. ServerOsType -> ((# #) -> r) -> ((# #) -> r) -> r
ServerOsType_WindowsServer = ServerOsType' "WindowsServer"

{-# COMPLETE
  ServerOsType_AmazonLinux,
  ServerOsType_EndOfSupportWindowsServer,
  ServerOsType_Other,
  ServerOsType_Redhat,
  ServerOsType_WindowsServer,
  ServerOsType'
  #-}