{-# 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.Nimble.Types.LaunchProfilePlatform
-- 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.Nimble.Types.LaunchProfilePlatform
  ( LaunchProfilePlatform
      ( ..,
        LaunchProfilePlatform_LINUX,
        LaunchProfilePlatform_WINDOWS
      ),
  )
where

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

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

pattern LaunchProfilePlatform_LINUX :: LaunchProfilePlatform
pattern $bLaunchProfilePlatform_LINUX :: LaunchProfilePlatform
$mLaunchProfilePlatform_LINUX :: forall r.
LaunchProfilePlatform -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfilePlatform_LINUX = LaunchProfilePlatform' "LINUX"

pattern LaunchProfilePlatform_WINDOWS :: LaunchProfilePlatform
pattern $bLaunchProfilePlatform_WINDOWS :: LaunchProfilePlatform
$mLaunchProfilePlatform_WINDOWS :: forall r.
LaunchProfilePlatform -> (Void# -> r) -> (Void# -> r) -> r
LaunchProfilePlatform_WINDOWS = LaunchProfilePlatform' "WINDOWS"

{-# COMPLETE
  LaunchProfilePlatform_LINUX,
  LaunchProfilePlatform_WINDOWS,
  LaunchProfilePlatform'
  #-}