{-# 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.TargetPlatformOs
-- 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.TargetPlatformOs
  ( TargetPlatformOs
      ( ..,
        TargetPlatformOs_ANDROID,
        TargetPlatformOs_LINUX
      ),
  )
where

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

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

pattern TargetPlatformOs_ANDROID :: TargetPlatformOs
pattern $bTargetPlatformOs_ANDROID :: TargetPlatformOs
$mTargetPlatformOs_ANDROID :: forall r. TargetPlatformOs -> (Void# -> r) -> (Void# -> r) -> r
TargetPlatformOs_ANDROID = TargetPlatformOs' "ANDROID"

pattern TargetPlatformOs_LINUX :: TargetPlatformOs
pattern $bTargetPlatformOs_LINUX :: TargetPlatformOs
$mTargetPlatformOs_LINUX :: forall r. TargetPlatformOs -> (Void# -> r) -> (Void# -> r) -> r
TargetPlatformOs_LINUX = TargetPlatformOs' "LINUX"

{-# COMPLETE
  TargetPlatformOs_ANDROID,
  TargetPlatformOs_LINUX,
  TargetPlatformOs'
  #-}