{-# 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.MachineLearning.Types.BatchPredictionFilterVariable
-- 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.MachineLearning.Types.BatchPredictionFilterVariable
  ( BatchPredictionFilterVariable
      ( ..,
        BatchPredictionFilterVariable_CreatedAt,
        BatchPredictionFilterVariable_DataSourceId,
        BatchPredictionFilterVariable_DataURI,
        BatchPredictionFilterVariable_IAMUser,
        BatchPredictionFilterVariable_LastUpdatedAt,
        BatchPredictionFilterVariable_MLModelId,
        BatchPredictionFilterVariable_Name,
        BatchPredictionFilterVariable_Status
      ),
  )
where

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

-- | A list of the variables to use in searching or filtering
-- @BatchPrediction@.
--
-- -   @CreatedAt@ - Sets the search criteria to @BatchPrediction@ creation
--     date.
--
-- -   @Status@ - Sets the search criteria to @BatchPrediction@ status.
--
-- -   @Name@ - Sets the search criteria to the contents of
--     @BatchPrediction@ @Name@.
--
-- -   @IAMUser@ - Sets the search criteria to the user account that
--     invoked the @BatchPrediction@ creation.
--
-- -   @MLModelId@ - Sets the search criteria to the @MLModel@ used in the
--     @BatchPrediction@.
--
-- -   @DataSourceId@ - Sets the search criteria to the @DataSource@ used
--     in the @BatchPrediction@.
--
-- -   @DataURI@ - Sets the search criteria to the data file(s) used in the
--     @BatchPrediction@. The URL can identify either a file or an Amazon
--     Simple Storage Service (Amazon S3) bucket or directory.
newtype BatchPredictionFilterVariable = BatchPredictionFilterVariable'
  { BatchPredictionFilterVariable -> Text
fromBatchPredictionFilterVariable ::
      Core.Text
  }
  deriving stock
    ( Int -> BatchPredictionFilterVariable -> ShowS
[BatchPredictionFilterVariable] -> ShowS
BatchPredictionFilterVariable -> String
(Int -> BatchPredictionFilterVariable -> ShowS)
-> (BatchPredictionFilterVariable -> String)
-> ([BatchPredictionFilterVariable] -> ShowS)
-> Show BatchPredictionFilterVariable
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchPredictionFilterVariable] -> ShowS
$cshowList :: [BatchPredictionFilterVariable] -> ShowS
show :: BatchPredictionFilterVariable -> String
$cshow :: BatchPredictionFilterVariable -> String
showsPrec :: Int -> BatchPredictionFilterVariable -> ShowS
$cshowsPrec :: Int -> BatchPredictionFilterVariable -> ShowS
Prelude.Show,
      ReadPrec [BatchPredictionFilterVariable]
ReadPrec BatchPredictionFilterVariable
Int -> ReadS BatchPredictionFilterVariable
ReadS [BatchPredictionFilterVariable]
(Int -> ReadS BatchPredictionFilterVariable)
-> ReadS [BatchPredictionFilterVariable]
-> ReadPrec BatchPredictionFilterVariable
-> ReadPrec [BatchPredictionFilterVariable]
-> Read BatchPredictionFilterVariable
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchPredictionFilterVariable]
$creadListPrec :: ReadPrec [BatchPredictionFilterVariable]
readPrec :: ReadPrec BatchPredictionFilterVariable
$creadPrec :: ReadPrec BatchPredictionFilterVariable
readList :: ReadS [BatchPredictionFilterVariable]
$creadList :: ReadS [BatchPredictionFilterVariable]
readsPrec :: Int -> ReadS BatchPredictionFilterVariable
$creadsPrec :: Int -> ReadS BatchPredictionFilterVariable
Prelude.Read,
      BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
(BatchPredictionFilterVariable
 -> BatchPredictionFilterVariable -> Bool)
-> (BatchPredictionFilterVariable
    -> BatchPredictionFilterVariable -> Bool)
-> Eq BatchPredictionFilterVariable
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
$c/= :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
== :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
$c== :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
Prelude.Eq,
      Eq BatchPredictionFilterVariable
Eq BatchPredictionFilterVariable
-> (BatchPredictionFilterVariable
    -> BatchPredictionFilterVariable -> Ordering)
-> (BatchPredictionFilterVariable
    -> BatchPredictionFilterVariable -> Bool)
-> (BatchPredictionFilterVariable
    -> BatchPredictionFilterVariable -> Bool)
-> (BatchPredictionFilterVariable
    -> BatchPredictionFilterVariable -> Bool)
-> (BatchPredictionFilterVariable
    -> BatchPredictionFilterVariable -> Bool)
-> (BatchPredictionFilterVariable
    -> BatchPredictionFilterVariable -> BatchPredictionFilterVariable)
-> (BatchPredictionFilterVariable
    -> BatchPredictionFilterVariable -> BatchPredictionFilterVariable)
-> Ord BatchPredictionFilterVariable
BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Ordering
BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> BatchPredictionFilterVariable
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 :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> BatchPredictionFilterVariable
$cmin :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> BatchPredictionFilterVariable
max :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> BatchPredictionFilterVariable
$cmax :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> BatchPredictionFilterVariable
>= :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
$c>= :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
> :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
$c> :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
<= :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
$c<= :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
< :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
$c< :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Bool
compare :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Ordering
$ccompare :: BatchPredictionFilterVariable
-> BatchPredictionFilterVariable -> Ordering
$cp1Ord :: Eq BatchPredictionFilterVariable
Prelude.Ord,
      (forall x.
 BatchPredictionFilterVariable
 -> Rep BatchPredictionFilterVariable x)
-> (forall x.
    Rep BatchPredictionFilterVariable x
    -> BatchPredictionFilterVariable)
-> Generic BatchPredictionFilterVariable
forall x.
Rep BatchPredictionFilterVariable x
-> BatchPredictionFilterVariable
forall x.
BatchPredictionFilterVariable
-> Rep BatchPredictionFilterVariable x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchPredictionFilterVariable x
-> BatchPredictionFilterVariable
$cfrom :: forall x.
BatchPredictionFilterVariable
-> Rep BatchPredictionFilterVariable x
Prelude.Generic
    )
  deriving newtype
    ( Int -> BatchPredictionFilterVariable -> Int
BatchPredictionFilterVariable -> Int
(Int -> BatchPredictionFilterVariable -> Int)
-> (BatchPredictionFilterVariable -> Int)
-> Hashable BatchPredictionFilterVariable
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BatchPredictionFilterVariable -> Int
$chash :: BatchPredictionFilterVariable -> Int
hashWithSalt :: Int -> BatchPredictionFilterVariable -> Int
$chashWithSalt :: Int -> BatchPredictionFilterVariable -> Int
Prelude.Hashable,
      BatchPredictionFilterVariable -> ()
(BatchPredictionFilterVariable -> ())
-> NFData BatchPredictionFilterVariable
forall a. (a -> ()) -> NFData a
rnf :: BatchPredictionFilterVariable -> ()
$crnf :: BatchPredictionFilterVariable -> ()
Prelude.NFData,
      Text -> Either String BatchPredictionFilterVariable
(Text -> Either String BatchPredictionFilterVariable)
-> FromText BatchPredictionFilterVariable
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BatchPredictionFilterVariable
$cfromText :: Text -> Either String BatchPredictionFilterVariable
Core.FromText,
      BatchPredictionFilterVariable -> Text
(BatchPredictionFilterVariable -> Text)
-> ToText BatchPredictionFilterVariable
forall a. (a -> Text) -> ToText a
toText :: BatchPredictionFilterVariable -> Text
$ctoText :: BatchPredictionFilterVariable -> Text
Core.ToText,
      BatchPredictionFilterVariable -> ByteString
(BatchPredictionFilterVariable -> ByteString)
-> ToByteString BatchPredictionFilterVariable
forall a. (a -> ByteString) -> ToByteString a
toBS :: BatchPredictionFilterVariable -> ByteString
$ctoBS :: BatchPredictionFilterVariable -> ByteString
Core.ToByteString,
      BatchPredictionFilterVariable -> ByteStringBuilder
(BatchPredictionFilterVariable -> ByteStringBuilder)
-> ToLog BatchPredictionFilterVariable
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BatchPredictionFilterVariable -> ByteStringBuilder
$cbuild :: BatchPredictionFilterVariable -> ByteStringBuilder
Core.ToLog,
      HeaderName -> BatchPredictionFilterVariable -> [Header]
(HeaderName -> BatchPredictionFilterVariable -> [Header])
-> ToHeader BatchPredictionFilterVariable
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BatchPredictionFilterVariable -> [Header]
$ctoHeader :: HeaderName -> BatchPredictionFilterVariable -> [Header]
Core.ToHeader,
      BatchPredictionFilterVariable -> QueryString
(BatchPredictionFilterVariable -> QueryString)
-> ToQuery BatchPredictionFilterVariable
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BatchPredictionFilterVariable -> QueryString
$ctoQuery :: BatchPredictionFilterVariable -> QueryString
Core.ToQuery,
      Value -> Parser [BatchPredictionFilterVariable]
Value -> Parser BatchPredictionFilterVariable
(Value -> Parser BatchPredictionFilterVariable)
-> (Value -> Parser [BatchPredictionFilterVariable])
-> FromJSON BatchPredictionFilterVariable
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BatchPredictionFilterVariable]
$cparseJSONList :: Value -> Parser [BatchPredictionFilterVariable]
parseJSON :: Value -> Parser BatchPredictionFilterVariable
$cparseJSON :: Value -> Parser BatchPredictionFilterVariable
Core.FromJSON,
      FromJSONKeyFunction [BatchPredictionFilterVariable]
FromJSONKeyFunction BatchPredictionFilterVariable
FromJSONKeyFunction BatchPredictionFilterVariable
-> FromJSONKeyFunction [BatchPredictionFilterVariable]
-> FromJSONKey BatchPredictionFilterVariable
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BatchPredictionFilterVariable]
$cfromJSONKeyList :: FromJSONKeyFunction [BatchPredictionFilterVariable]
fromJSONKey :: FromJSONKeyFunction BatchPredictionFilterVariable
$cfromJSONKey :: FromJSONKeyFunction BatchPredictionFilterVariable
Core.FromJSONKey,
      [BatchPredictionFilterVariable] -> Encoding
[BatchPredictionFilterVariable] -> Value
BatchPredictionFilterVariable -> Encoding
BatchPredictionFilterVariable -> Value
(BatchPredictionFilterVariable -> Value)
-> (BatchPredictionFilterVariable -> Encoding)
-> ([BatchPredictionFilterVariable] -> Value)
-> ([BatchPredictionFilterVariable] -> Encoding)
-> ToJSON BatchPredictionFilterVariable
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BatchPredictionFilterVariable] -> Encoding
$ctoEncodingList :: [BatchPredictionFilterVariable] -> Encoding
toJSONList :: [BatchPredictionFilterVariable] -> Value
$ctoJSONList :: [BatchPredictionFilterVariable] -> Value
toEncoding :: BatchPredictionFilterVariable -> Encoding
$ctoEncoding :: BatchPredictionFilterVariable -> Encoding
toJSON :: BatchPredictionFilterVariable -> Value
$ctoJSON :: BatchPredictionFilterVariable -> Value
Core.ToJSON,
      ToJSONKeyFunction [BatchPredictionFilterVariable]
ToJSONKeyFunction BatchPredictionFilterVariable
ToJSONKeyFunction BatchPredictionFilterVariable
-> ToJSONKeyFunction [BatchPredictionFilterVariable]
-> ToJSONKey BatchPredictionFilterVariable
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BatchPredictionFilterVariable]
$ctoJSONKeyList :: ToJSONKeyFunction [BatchPredictionFilterVariable]
toJSONKey :: ToJSONKeyFunction BatchPredictionFilterVariable
$ctoJSONKey :: ToJSONKeyFunction BatchPredictionFilterVariable
Core.ToJSONKey,
      [Node] -> Either String BatchPredictionFilterVariable
([Node] -> Either String BatchPredictionFilterVariable)
-> FromXML BatchPredictionFilterVariable
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BatchPredictionFilterVariable
$cparseXML :: [Node] -> Either String BatchPredictionFilterVariable
Core.FromXML,
      BatchPredictionFilterVariable -> XML
(BatchPredictionFilterVariable -> XML)
-> ToXML BatchPredictionFilterVariable
forall a. (a -> XML) -> ToXML a
toXML :: BatchPredictionFilterVariable -> XML
$ctoXML :: BatchPredictionFilterVariable -> XML
Core.ToXML
    )

pattern BatchPredictionFilterVariable_CreatedAt :: BatchPredictionFilterVariable
pattern $bBatchPredictionFilterVariable_CreatedAt :: BatchPredictionFilterVariable
$mBatchPredictionFilterVariable_CreatedAt :: forall r.
BatchPredictionFilterVariable -> (Void# -> r) -> (Void# -> r) -> r
BatchPredictionFilterVariable_CreatedAt = BatchPredictionFilterVariable' "CreatedAt"

pattern BatchPredictionFilterVariable_DataSourceId :: BatchPredictionFilterVariable
pattern $bBatchPredictionFilterVariable_DataSourceId :: BatchPredictionFilterVariable
$mBatchPredictionFilterVariable_DataSourceId :: forall r.
BatchPredictionFilterVariable -> (Void# -> r) -> (Void# -> r) -> r
BatchPredictionFilterVariable_DataSourceId = BatchPredictionFilterVariable' "DataSourceId"

pattern BatchPredictionFilterVariable_DataURI :: BatchPredictionFilterVariable
pattern $bBatchPredictionFilterVariable_DataURI :: BatchPredictionFilterVariable
$mBatchPredictionFilterVariable_DataURI :: forall r.
BatchPredictionFilterVariable -> (Void# -> r) -> (Void# -> r) -> r
BatchPredictionFilterVariable_DataURI = BatchPredictionFilterVariable' "DataURI"

pattern BatchPredictionFilterVariable_IAMUser :: BatchPredictionFilterVariable
pattern $bBatchPredictionFilterVariable_IAMUser :: BatchPredictionFilterVariable
$mBatchPredictionFilterVariable_IAMUser :: forall r.
BatchPredictionFilterVariable -> (Void# -> r) -> (Void# -> r) -> r
BatchPredictionFilterVariable_IAMUser = BatchPredictionFilterVariable' "IAMUser"

pattern BatchPredictionFilterVariable_LastUpdatedAt :: BatchPredictionFilterVariable
pattern $bBatchPredictionFilterVariable_LastUpdatedAt :: BatchPredictionFilterVariable
$mBatchPredictionFilterVariable_LastUpdatedAt :: forall r.
BatchPredictionFilterVariable -> (Void# -> r) -> (Void# -> r) -> r
BatchPredictionFilterVariable_LastUpdatedAt = BatchPredictionFilterVariable' "LastUpdatedAt"

pattern BatchPredictionFilterVariable_MLModelId :: BatchPredictionFilterVariable
pattern $bBatchPredictionFilterVariable_MLModelId :: BatchPredictionFilterVariable
$mBatchPredictionFilterVariable_MLModelId :: forall r.
BatchPredictionFilterVariable -> (Void# -> r) -> (Void# -> r) -> r
BatchPredictionFilterVariable_MLModelId = BatchPredictionFilterVariable' "MLModelId"

pattern BatchPredictionFilterVariable_Name :: BatchPredictionFilterVariable
pattern $bBatchPredictionFilterVariable_Name :: BatchPredictionFilterVariable
$mBatchPredictionFilterVariable_Name :: forall r.
BatchPredictionFilterVariable -> (Void# -> r) -> (Void# -> r) -> r
BatchPredictionFilterVariable_Name = BatchPredictionFilterVariable' "Name"

pattern BatchPredictionFilterVariable_Status :: BatchPredictionFilterVariable
pattern $bBatchPredictionFilterVariable_Status :: BatchPredictionFilterVariable
$mBatchPredictionFilterVariable_Status :: forall r.
BatchPredictionFilterVariable -> (Void# -> r) -> (Void# -> r) -> r
BatchPredictionFilterVariable_Status = BatchPredictionFilterVariable' "Status"

{-# COMPLETE
  BatchPredictionFilterVariable_CreatedAt,
  BatchPredictionFilterVariable_DataSourceId,
  BatchPredictionFilterVariable_DataURI,
  BatchPredictionFilterVariable_IAMUser,
  BatchPredictionFilterVariable_LastUpdatedAt,
  BatchPredictionFilterVariable_MLModelId,
  BatchPredictionFilterVariable_Name,
  BatchPredictionFilterVariable_Status,
  BatchPredictionFilterVariable'
  #-}