{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> BatchPredictionFilterVariable -> ShowS
[BatchPredictionFilterVariable] -> ShowS
BatchPredictionFilterVariable -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq BatchPredictionFilterVariable
Int -> BatchPredictionFilterVariable -> Int
BatchPredictionFilterVariable -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: BatchPredictionFilterVariable -> ()
$crnf :: BatchPredictionFilterVariable -> ()
Prelude.NFData,
      Text -> Either String BatchPredictionFilterVariable
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BatchPredictionFilterVariable
$cfromText :: Text -> Either String BatchPredictionFilterVariable
Data.FromText,
      BatchPredictionFilterVariable -> Text
forall a. (a -> Text) -> ToText a
toText :: BatchPredictionFilterVariable -> Text
$ctoText :: BatchPredictionFilterVariable -> Text
Data.ToText,
      BatchPredictionFilterVariable -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: BatchPredictionFilterVariable -> ByteString
$ctoBS :: BatchPredictionFilterVariable -> ByteString
Data.ToByteString,
      BatchPredictionFilterVariable -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BatchPredictionFilterVariable -> ByteStringBuilder
$cbuild :: BatchPredictionFilterVariable -> ByteStringBuilder
Data.ToLog,
      HeaderName -> BatchPredictionFilterVariable -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BatchPredictionFilterVariable -> [Header]
$ctoHeader :: HeaderName -> BatchPredictionFilterVariable -> [Header]
Data.ToHeader,
      BatchPredictionFilterVariable -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BatchPredictionFilterVariable -> QueryString
$ctoQuery :: BatchPredictionFilterVariable -> QueryString
Data.ToQuery,
      Value -> Parser [BatchPredictionFilterVariable]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [BatchPredictionFilterVariable]
FromJSONKeyFunction BatchPredictionFilterVariable
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BatchPredictionFilterVariable]
$cfromJSONKeyList :: FromJSONKeyFunction [BatchPredictionFilterVariable]
fromJSONKey :: FromJSONKeyFunction BatchPredictionFilterVariable
$cfromJSONKey :: FromJSONKeyFunction BatchPredictionFilterVariable
Data.FromJSONKey,
      [BatchPredictionFilterVariable] -> Encoding
[BatchPredictionFilterVariable] -> Value
BatchPredictionFilterVariable -> Encoding
BatchPredictionFilterVariable -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [BatchPredictionFilterVariable]
ToJSONKeyFunction BatchPredictionFilterVariable
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BatchPredictionFilterVariable]
$ctoJSONKeyList :: ToJSONKeyFunction [BatchPredictionFilterVariable]
toJSONKey :: ToJSONKeyFunction BatchPredictionFilterVariable
$ctoJSONKey :: ToJSONKeyFunction BatchPredictionFilterVariable
Data.ToJSONKey,
      [Node] -> Either String BatchPredictionFilterVariable
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BatchPredictionFilterVariable
$cparseXML :: [Node] -> Either String BatchPredictionFilterVariable
Data.FromXML,
      BatchPredictionFilterVariable -> XML
forall a. (a -> XML) -> ToXML a
toXML :: BatchPredictionFilterVariable -> XML
$ctoXML :: BatchPredictionFilterVariable -> XML
Data.ToXML
    )

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

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

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

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

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

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

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

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

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