{-# 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.AssemblyType
-- 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.AssemblyType
  ( AssemblyType
      ( ..,
        AssemblyType_Line,
        AssemblyType_None
      ),
  )
where

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

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

pattern AssemblyType_Line :: AssemblyType
pattern $bAssemblyType_Line :: AssemblyType
$mAssemblyType_Line :: forall r. AssemblyType -> (Void# -> r) -> (Void# -> r) -> r
AssemblyType_Line = AssemblyType' "Line"

pattern AssemblyType_None :: AssemblyType
pattern $bAssemblyType_None :: AssemblyType
$mAssemblyType_None :: forall r. AssemblyType -> (Void# -> r) -> (Void# -> r) -> r
AssemblyType_None = AssemblyType' "None"

{-# COMPLETE
  AssemblyType_Line,
  AssemblyType_None,
  AssemblyType'
  #-}