{-# 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.DeviceSubsetType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SageMaker.Types.DeviceSubsetType
  ( DeviceSubsetType
      ( ..,
        DeviceSubsetType_NAMECONTAINS,
        DeviceSubsetType_PERCENTAGE,
        DeviceSubsetType_SELECTION
      ),
  )
where

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

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

pattern DeviceSubsetType_NAMECONTAINS :: DeviceSubsetType
pattern $bDeviceSubsetType_NAMECONTAINS :: DeviceSubsetType
$mDeviceSubsetType_NAMECONTAINS :: forall {r}. DeviceSubsetType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceSubsetType_NAMECONTAINS = DeviceSubsetType' "NAMECONTAINS"

pattern DeviceSubsetType_PERCENTAGE :: DeviceSubsetType
pattern $bDeviceSubsetType_PERCENTAGE :: DeviceSubsetType
$mDeviceSubsetType_PERCENTAGE :: forall {r}. DeviceSubsetType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceSubsetType_PERCENTAGE = DeviceSubsetType' "PERCENTAGE"

pattern DeviceSubsetType_SELECTION :: DeviceSubsetType
pattern $bDeviceSubsetType_SELECTION :: DeviceSubsetType
$mDeviceSubsetType_SELECTION :: forall {r}. DeviceSubsetType -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceSubsetType_SELECTION = DeviceSubsetType' "SELECTION"

{-# COMPLETE
  DeviceSubsetType_NAMECONTAINS,
  DeviceSubsetType_PERCENTAGE,
  DeviceSubsetType_SELECTION,
  DeviceSubsetType'
  #-}