{-# 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.DataDistributionType
-- 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.DataDistributionType
  ( DataDistributionType
      ( ..,
        DataDistributionType_FullyReplicated,
        DataDistributionType_ShardedByS3Key
      ),
  )
where

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

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

pattern DataDistributionType_FullyReplicated :: DataDistributionType
pattern $bDataDistributionType_FullyReplicated :: DataDistributionType
$mDataDistributionType_FullyReplicated :: forall r. DataDistributionType -> (Void# -> r) -> (Void# -> r) -> r
DataDistributionType_FullyReplicated = DataDistributionType' "FullyReplicated"

pattern DataDistributionType_ShardedByS3Key :: DataDistributionType
pattern $bDataDistributionType_ShardedByS3Key :: DataDistributionType
$mDataDistributionType_ShardedByS3Key :: forall r. DataDistributionType -> (Void# -> r) -> (Void# -> r) -> r
DataDistributionType_ShardedByS3Key = DataDistributionType' "ShardedByS3Key"

{-# COMPLETE
  DataDistributionType_FullyReplicated,
  DataDistributionType_ShardedByS3Key,
  DataDistributionType'
  #-}