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

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

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

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

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

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