{-# 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.Mobile.Types.Platform
-- 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.Mobile.Types.Platform
  ( Platform
      ( ..,
        Platform_ANDROID,
        Platform_JAVASCRIPT,
        Platform_LINUX,
        Platform_OBJC,
        Platform_OSX,
        Platform_SWIFT,
        Platform_WINDOWS
      ),
  )
where

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

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

pattern Platform_ANDROID :: Platform
pattern $bPlatform_ANDROID :: Platform
$mPlatform_ANDROID :: forall r. Platform -> (Void# -> r) -> (Void# -> r) -> r
Platform_ANDROID = Platform' "ANDROID"

pattern Platform_JAVASCRIPT :: Platform
pattern $bPlatform_JAVASCRIPT :: Platform
$mPlatform_JAVASCRIPT :: forall r. Platform -> (Void# -> r) -> (Void# -> r) -> r
Platform_JAVASCRIPT = Platform' "JAVASCRIPT"

pattern Platform_LINUX :: Platform
pattern $bPlatform_LINUX :: Platform
$mPlatform_LINUX :: forall r. Platform -> (Void# -> r) -> (Void# -> r) -> r
Platform_LINUX = Platform' "LINUX"

pattern Platform_OBJC :: Platform
pattern $bPlatform_OBJC :: Platform
$mPlatform_OBJC :: forall r. Platform -> (Void# -> r) -> (Void# -> r) -> r
Platform_OBJC = Platform' "OBJC"

pattern Platform_OSX :: Platform
pattern $bPlatform_OSX :: Platform
$mPlatform_OSX :: forall r. Platform -> (Void# -> r) -> (Void# -> r) -> r
Platform_OSX = Platform' "OSX"

pattern Platform_SWIFT :: Platform
pattern $bPlatform_SWIFT :: Platform
$mPlatform_SWIFT :: forall r. Platform -> (Void# -> r) -> (Void# -> r) -> r
Platform_SWIFT = Platform' "SWIFT"

pattern Platform_WINDOWS :: Platform
pattern $bPlatform_WINDOWS :: Platform
$mPlatform_WINDOWS :: forall r. Platform -> (Void# -> r) -> (Void# -> r) -> r
Platform_WINDOWS = Platform' "WINDOWS"

{-# COMPLETE
  Platform_ANDROID,
  Platform_JAVASCRIPT,
  Platform_LINUX,
  Platform_OBJC,
  Platform_OSX,
  Platform_SWIFT,
  Platform_WINDOWS,
  Platform'
  #-}