{-# 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.SageMaker.Types.TargetPlatformArch
-- 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.SageMaker.Types.TargetPlatformArch
  ( TargetPlatformArch
      ( ..,
        TargetPlatformArch_ARM64,
        TargetPlatformArch_ARM_EABI,
        TargetPlatformArch_ARM_EABIHF,
        TargetPlatformArch_X86,
        TargetPlatformArch_X86_64
      ),
  )
where

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

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

pattern TargetPlatformArch_ARM64 :: TargetPlatformArch
pattern $bTargetPlatformArch_ARM64 :: TargetPlatformArch
$mTargetPlatformArch_ARM64 :: forall r. TargetPlatformArch -> (Void# -> r) -> (Void# -> r) -> r
TargetPlatformArch_ARM64 = TargetPlatformArch' "ARM64"

pattern TargetPlatformArch_ARM_EABI :: TargetPlatformArch
pattern $bTargetPlatformArch_ARM_EABI :: TargetPlatformArch
$mTargetPlatformArch_ARM_EABI :: forall r. TargetPlatformArch -> (Void# -> r) -> (Void# -> r) -> r
TargetPlatformArch_ARM_EABI = TargetPlatformArch' "ARM_EABI"

pattern TargetPlatformArch_ARM_EABIHF :: TargetPlatformArch
pattern $bTargetPlatformArch_ARM_EABIHF :: TargetPlatformArch
$mTargetPlatformArch_ARM_EABIHF :: forall r. TargetPlatformArch -> (Void# -> r) -> (Void# -> r) -> r
TargetPlatformArch_ARM_EABIHF = TargetPlatformArch' "ARM_EABIHF"

pattern TargetPlatformArch_X86 :: TargetPlatformArch
pattern $bTargetPlatformArch_X86 :: TargetPlatformArch
$mTargetPlatformArch_X86 :: forall r. TargetPlatformArch -> (Void# -> r) -> (Void# -> r) -> r
TargetPlatformArch_X86 = TargetPlatformArch' "X86"

pattern TargetPlatformArch_X86_64 :: TargetPlatformArch
pattern $bTargetPlatformArch_X86_64 :: TargetPlatformArch
$mTargetPlatformArch_X86_64 :: forall r. TargetPlatformArch -> (Void# -> r) -> (Void# -> r) -> r
TargetPlatformArch_X86_64 = TargetPlatformArch' "X86_64"

{-# COMPLETE
  TargetPlatformArch_ARM64,
  TargetPlatformArch_ARM_EABI,
  TargetPlatformArch_ARM_EABIHF,
  TargetPlatformArch_X86,
  TargetPlatformArch_X86_64,
  TargetPlatformArch'
  #-}