{-# 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.ModelPackageType
-- 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.ModelPackageType
  ( ModelPackageType
      ( ..,
        ModelPackageType_Both,
        ModelPackageType_Unversioned,
        ModelPackageType_Versioned
      ),
  )
where

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

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

pattern ModelPackageType_Both :: ModelPackageType
pattern $bModelPackageType_Both :: ModelPackageType
$mModelPackageType_Both :: forall r. ModelPackageType -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageType_Both = ModelPackageType' "Both"

pattern ModelPackageType_Unversioned :: ModelPackageType
pattern $bModelPackageType_Unversioned :: ModelPackageType
$mModelPackageType_Unversioned :: forall r. ModelPackageType -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageType_Unversioned = ModelPackageType' "Unversioned"

pattern ModelPackageType_Versioned :: ModelPackageType
pattern $bModelPackageType_Versioned :: ModelPackageType
$mModelPackageType_Versioned :: forall r. ModelPackageType -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageType_Versioned = ModelPackageType' "Versioned"

{-# COMPLETE
  ModelPackageType_Both,
  ModelPackageType_Unversioned,
  ModelPackageType_Versioned,
  ModelPackageType'
  #-}