{-# 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.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.MigrationHubStrategy.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'
  #-}