{-# 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.Lightsail.Types.InstancePlatform
-- 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.Lightsail.Types.InstancePlatform
  ( InstancePlatform
      ( ..,
        InstancePlatform_LINUX_UNIX,
        InstancePlatform_WINDOWS
      ),
  )
where

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

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

pattern InstancePlatform_LINUX_UNIX :: InstancePlatform
pattern $bInstancePlatform_LINUX_UNIX :: InstancePlatform
$mInstancePlatform_LINUX_UNIX :: forall {r}. InstancePlatform -> ((# #) -> r) -> ((# #) -> r) -> r
InstancePlatform_LINUX_UNIX = InstancePlatform' "LINUX_UNIX"

pattern InstancePlatform_WINDOWS :: InstancePlatform
pattern $bInstancePlatform_WINDOWS :: InstancePlatform
$mInstancePlatform_WINDOWS :: forall {r}. InstancePlatform -> ((# #) -> r) -> ((# #) -> r) -> r
InstancePlatform_WINDOWS = InstancePlatform' "WINDOWS"

{-# COMPLETE
  InstancePlatform_LINUX_UNIX,
  InstancePlatform_WINDOWS,
  InstancePlatform'
  #-}