{-# 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.CapacitySizeType
-- 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.CapacitySizeType
  ( CapacitySizeType
      ( ..,
        CapacitySizeType_CAPACITY_PERCENT,
        CapacitySizeType_INSTANCE_COUNT
      ),
  )
where

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

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

pattern CapacitySizeType_CAPACITY_PERCENT :: CapacitySizeType
pattern $bCapacitySizeType_CAPACITY_PERCENT :: CapacitySizeType
$mCapacitySizeType_CAPACITY_PERCENT :: forall r. CapacitySizeType -> (Void# -> r) -> (Void# -> r) -> r
CapacitySizeType_CAPACITY_PERCENT = CapacitySizeType' "CAPACITY_PERCENT"

pattern CapacitySizeType_INSTANCE_COUNT :: CapacitySizeType
pattern $bCapacitySizeType_INSTANCE_COUNT :: CapacitySizeType
$mCapacitySizeType_INSTANCE_COUNT :: forall r. CapacitySizeType -> (Void# -> r) -> (Void# -> r) -> r
CapacitySizeType_INSTANCE_COUNT = CapacitySizeType' "INSTANCE_COUNT"

{-# COMPLETE
  CapacitySizeType_CAPACITY_PERCENT,
  CapacitySizeType_INSTANCE_COUNT,
  CapacitySizeType'
  #-}