{-# 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.Forecast.Types.DatasetType
-- 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.Forecast.Types.DatasetType
  ( DatasetType
      ( ..,
        DatasetType_ITEM_METADATA,
        DatasetType_RELATED_TIME_SERIES,
        DatasetType_TARGET_TIME_SERIES
      ),
  )
where

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

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

pattern DatasetType_ITEM_METADATA :: DatasetType
pattern $bDatasetType_ITEM_METADATA :: DatasetType
$mDatasetType_ITEM_METADATA :: forall r. DatasetType -> (Void# -> r) -> (Void# -> r) -> r
DatasetType_ITEM_METADATA = DatasetType' "ITEM_METADATA"

pattern DatasetType_RELATED_TIME_SERIES :: DatasetType
pattern $bDatasetType_RELATED_TIME_SERIES :: DatasetType
$mDatasetType_RELATED_TIME_SERIES :: forall r. DatasetType -> (Void# -> r) -> (Void# -> r) -> r
DatasetType_RELATED_TIME_SERIES = DatasetType' "RELATED_TIME_SERIES"

pattern DatasetType_TARGET_TIME_SERIES :: DatasetType
pattern $bDatasetType_TARGET_TIME_SERIES :: DatasetType
$mDatasetType_TARGET_TIME_SERIES :: forall r. DatasetType -> (Void# -> r) -> (Void# -> r) -> r
DatasetType_TARGET_TIME_SERIES = DatasetType' "TARGET_TIME_SERIES"

{-# COMPLETE
  DatasetType_ITEM_METADATA,
  DatasetType_RELATED_TIME_SERIES,
  DatasetType_TARGET_TIME_SERIES,
  DatasetType'
  #-}