{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.Types.EndpointInput
-- 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.SageMaker.Types.EndpointInput where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.ProcessingS3DataDistributionType
import Amazonka.SageMaker.Types.ProcessingS3InputMode

-- | Input object for the endpoint
--
-- /See:/ 'newEndpointInput' smart constructor.
data EndpointInput = EndpointInput'
  { -- | If specified, monitoring jobs substract this time from the end time. For
    -- information about using offsets for scheduling monitoring jobs, see
    -- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
    EndpointInput -> Maybe Text
endTimeOffset :: Prelude.Maybe Prelude.Text,
    -- | The attributes of the input data that are the input features.
    EndpointInput -> Maybe Text
featuresAttribute :: Prelude.Maybe Prelude.Text,
    -- | The attribute of the input data that represents the ground truth label.
    EndpointInput -> Maybe Text
inferenceAttribute :: Prelude.Maybe Prelude.Text,
    -- | In a classification problem, the attribute that represents the class
    -- probability.
    EndpointInput -> Maybe Text
probabilityAttribute :: Prelude.Maybe Prelude.Text,
    -- | The threshold for the class probability to be evaluated as a positive
    -- result.
    EndpointInput -> Maybe Double
probabilityThresholdAttribute :: Prelude.Maybe Prelude.Double,
    -- | Whether input data distributed in Amazon S3 is fully replicated or
    -- sharded by an S3 key. Defaults to @FullyReplicated@
    EndpointInput -> Maybe ProcessingS3DataDistributionType
s3DataDistributionType :: Prelude.Maybe ProcessingS3DataDistributionType,
    -- | Whether the @Pipe@ or @File@ is used as the input mode for transferring
    -- data for the monitoring job. @Pipe@ mode is recommended for large
    -- datasets. @File@ mode is useful for small files that fit in memory.
    -- Defaults to @File@.
    EndpointInput -> Maybe ProcessingS3InputMode
s3InputMode :: Prelude.Maybe ProcessingS3InputMode,
    -- | If specified, monitoring jobs substract this time from the start time.
    -- For information about using offsets for scheduling monitoring jobs, see
    -- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
    EndpointInput -> Maybe Text
startTimeOffset :: Prelude.Maybe Prelude.Text,
    -- | An endpoint in customer\'s account which has enabled @DataCaptureConfig@
    -- enabled.
    EndpointInput -> Text
endpointName :: Prelude.Text,
    -- | Path to the filesystem where the endpoint data is available to the
    -- container.
    EndpointInput -> Text
localPath :: Prelude.Text
  }
  deriving (EndpointInput -> EndpointInput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EndpointInput -> EndpointInput -> Bool
$c/= :: EndpointInput -> EndpointInput -> Bool
== :: EndpointInput -> EndpointInput -> Bool
$c== :: EndpointInput -> EndpointInput -> Bool
Prelude.Eq, ReadPrec [EndpointInput]
ReadPrec EndpointInput
Int -> ReadS EndpointInput
ReadS [EndpointInput]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EndpointInput]
$creadListPrec :: ReadPrec [EndpointInput]
readPrec :: ReadPrec EndpointInput
$creadPrec :: ReadPrec EndpointInput
readList :: ReadS [EndpointInput]
$creadList :: ReadS [EndpointInput]
readsPrec :: Int -> ReadS EndpointInput
$creadsPrec :: Int -> ReadS EndpointInput
Prelude.Read, Int -> EndpointInput -> ShowS
[EndpointInput] -> ShowS
EndpointInput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EndpointInput] -> ShowS
$cshowList :: [EndpointInput] -> ShowS
show :: EndpointInput -> String
$cshow :: EndpointInput -> String
showsPrec :: Int -> EndpointInput -> ShowS
$cshowsPrec :: Int -> EndpointInput -> ShowS
Prelude.Show, forall x. Rep EndpointInput x -> EndpointInput
forall x. EndpointInput -> Rep EndpointInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EndpointInput x -> EndpointInput
$cfrom :: forall x. EndpointInput -> Rep EndpointInput x
Prelude.Generic)

-- |
-- Create a value of 'EndpointInput' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'endTimeOffset', 'endpointInput_endTimeOffset' - If specified, monitoring jobs substract this time from the end time. For
-- information about using offsets for scheduling monitoring jobs, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
--
-- 'featuresAttribute', 'endpointInput_featuresAttribute' - The attributes of the input data that are the input features.
--
-- 'inferenceAttribute', 'endpointInput_inferenceAttribute' - The attribute of the input data that represents the ground truth label.
--
-- 'probabilityAttribute', 'endpointInput_probabilityAttribute' - In a classification problem, the attribute that represents the class
-- probability.
--
-- 'probabilityThresholdAttribute', 'endpointInput_probabilityThresholdAttribute' - The threshold for the class probability to be evaluated as a positive
-- result.
--
-- 's3DataDistributionType', 'endpointInput_s3DataDistributionType' - Whether input data distributed in Amazon S3 is fully replicated or
-- sharded by an S3 key. Defaults to @FullyReplicated@
--
-- 's3InputMode', 'endpointInput_s3InputMode' - Whether the @Pipe@ or @File@ is used as the input mode for transferring
-- data for the monitoring job. @Pipe@ mode is recommended for large
-- datasets. @File@ mode is useful for small files that fit in memory.
-- Defaults to @File@.
--
-- 'startTimeOffset', 'endpointInput_startTimeOffset' - If specified, monitoring jobs substract this time from the start time.
-- For information about using offsets for scheduling monitoring jobs, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
--
-- 'endpointName', 'endpointInput_endpointName' - An endpoint in customer\'s account which has enabled @DataCaptureConfig@
-- enabled.
--
-- 'localPath', 'endpointInput_localPath' - Path to the filesystem where the endpoint data is available to the
-- container.
newEndpointInput ::
  -- | 'endpointName'
  Prelude.Text ->
  -- | 'localPath'
  Prelude.Text ->
  EndpointInput
newEndpointInput :: Text -> Text -> EndpointInput
newEndpointInput Text
pEndpointName_ Text
pLocalPath_ =
  EndpointInput'
    { $sel:endTimeOffset:EndpointInput' :: Maybe Text
endTimeOffset = forall a. Maybe a
Prelude.Nothing,
      $sel:featuresAttribute:EndpointInput' :: Maybe Text
featuresAttribute = forall a. Maybe a
Prelude.Nothing,
      $sel:inferenceAttribute:EndpointInput' :: Maybe Text
inferenceAttribute = forall a. Maybe a
Prelude.Nothing,
      $sel:probabilityAttribute:EndpointInput' :: Maybe Text
probabilityAttribute = forall a. Maybe a
Prelude.Nothing,
      $sel:probabilityThresholdAttribute:EndpointInput' :: Maybe Double
probabilityThresholdAttribute = forall a. Maybe a
Prelude.Nothing,
      $sel:s3DataDistributionType:EndpointInput' :: Maybe ProcessingS3DataDistributionType
s3DataDistributionType = forall a. Maybe a
Prelude.Nothing,
      $sel:s3InputMode:EndpointInput' :: Maybe ProcessingS3InputMode
s3InputMode = forall a. Maybe a
Prelude.Nothing,
      $sel:startTimeOffset:EndpointInput' :: Maybe Text
startTimeOffset = forall a. Maybe a
Prelude.Nothing,
      $sel:endpointName:EndpointInput' :: Text
endpointName = Text
pEndpointName_,
      $sel:localPath:EndpointInput' :: Text
localPath = Text
pLocalPath_
    }

-- | If specified, monitoring jobs substract this time from the end time. For
-- information about using offsets for scheduling monitoring jobs, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
endpointInput_endTimeOffset :: Lens.Lens' EndpointInput (Prelude.Maybe Prelude.Text)
endpointInput_endTimeOffset :: Lens' EndpointInput (Maybe Text)
endpointInput_endTimeOffset = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Maybe Text
endTimeOffset :: Maybe Text
$sel:endTimeOffset:EndpointInput' :: EndpointInput -> Maybe Text
endTimeOffset} -> Maybe Text
endTimeOffset) (\s :: EndpointInput
s@EndpointInput' {} Maybe Text
a -> EndpointInput
s {$sel:endTimeOffset:EndpointInput' :: Maybe Text
endTimeOffset = Maybe Text
a} :: EndpointInput)

-- | The attributes of the input data that are the input features.
endpointInput_featuresAttribute :: Lens.Lens' EndpointInput (Prelude.Maybe Prelude.Text)
endpointInput_featuresAttribute :: Lens' EndpointInput (Maybe Text)
endpointInput_featuresAttribute = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Maybe Text
featuresAttribute :: Maybe Text
$sel:featuresAttribute:EndpointInput' :: EndpointInput -> Maybe Text
featuresAttribute} -> Maybe Text
featuresAttribute) (\s :: EndpointInput
s@EndpointInput' {} Maybe Text
a -> EndpointInput
s {$sel:featuresAttribute:EndpointInput' :: Maybe Text
featuresAttribute = Maybe Text
a} :: EndpointInput)

-- | The attribute of the input data that represents the ground truth label.
endpointInput_inferenceAttribute :: Lens.Lens' EndpointInput (Prelude.Maybe Prelude.Text)
endpointInput_inferenceAttribute :: Lens' EndpointInput (Maybe Text)
endpointInput_inferenceAttribute = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Maybe Text
inferenceAttribute :: Maybe Text
$sel:inferenceAttribute:EndpointInput' :: EndpointInput -> Maybe Text
inferenceAttribute} -> Maybe Text
inferenceAttribute) (\s :: EndpointInput
s@EndpointInput' {} Maybe Text
a -> EndpointInput
s {$sel:inferenceAttribute:EndpointInput' :: Maybe Text
inferenceAttribute = Maybe Text
a} :: EndpointInput)

-- | In a classification problem, the attribute that represents the class
-- probability.
endpointInput_probabilityAttribute :: Lens.Lens' EndpointInput (Prelude.Maybe Prelude.Text)
endpointInput_probabilityAttribute :: Lens' EndpointInput (Maybe Text)
endpointInput_probabilityAttribute = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Maybe Text
probabilityAttribute :: Maybe Text
$sel:probabilityAttribute:EndpointInput' :: EndpointInput -> Maybe Text
probabilityAttribute} -> Maybe Text
probabilityAttribute) (\s :: EndpointInput
s@EndpointInput' {} Maybe Text
a -> EndpointInput
s {$sel:probabilityAttribute:EndpointInput' :: Maybe Text
probabilityAttribute = Maybe Text
a} :: EndpointInput)

-- | The threshold for the class probability to be evaluated as a positive
-- result.
endpointInput_probabilityThresholdAttribute :: Lens.Lens' EndpointInput (Prelude.Maybe Prelude.Double)
endpointInput_probabilityThresholdAttribute :: Lens' EndpointInput (Maybe Double)
endpointInput_probabilityThresholdAttribute = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Maybe Double
probabilityThresholdAttribute :: Maybe Double
$sel:probabilityThresholdAttribute:EndpointInput' :: EndpointInput -> Maybe Double
probabilityThresholdAttribute} -> Maybe Double
probabilityThresholdAttribute) (\s :: EndpointInput
s@EndpointInput' {} Maybe Double
a -> EndpointInput
s {$sel:probabilityThresholdAttribute:EndpointInput' :: Maybe Double
probabilityThresholdAttribute = Maybe Double
a} :: EndpointInput)

-- | Whether input data distributed in Amazon S3 is fully replicated or
-- sharded by an S3 key. Defaults to @FullyReplicated@
endpointInput_s3DataDistributionType :: Lens.Lens' EndpointInput (Prelude.Maybe ProcessingS3DataDistributionType)
endpointInput_s3DataDistributionType :: Lens' EndpointInput (Maybe ProcessingS3DataDistributionType)
endpointInput_s3DataDistributionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Maybe ProcessingS3DataDistributionType
s3DataDistributionType :: Maybe ProcessingS3DataDistributionType
$sel:s3DataDistributionType:EndpointInput' :: EndpointInput -> Maybe ProcessingS3DataDistributionType
s3DataDistributionType} -> Maybe ProcessingS3DataDistributionType
s3DataDistributionType) (\s :: EndpointInput
s@EndpointInput' {} Maybe ProcessingS3DataDistributionType
a -> EndpointInput
s {$sel:s3DataDistributionType:EndpointInput' :: Maybe ProcessingS3DataDistributionType
s3DataDistributionType = Maybe ProcessingS3DataDistributionType
a} :: EndpointInput)

-- | Whether the @Pipe@ or @File@ is used as the input mode for transferring
-- data for the monitoring job. @Pipe@ mode is recommended for large
-- datasets. @File@ mode is useful for small files that fit in memory.
-- Defaults to @File@.
endpointInput_s3InputMode :: Lens.Lens' EndpointInput (Prelude.Maybe ProcessingS3InputMode)
endpointInput_s3InputMode :: Lens' EndpointInput (Maybe ProcessingS3InputMode)
endpointInput_s3InputMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Maybe ProcessingS3InputMode
s3InputMode :: Maybe ProcessingS3InputMode
$sel:s3InputMode:EndpointInput' :: EndpointInput -> Maybe ProcessingS3InputMode
s3InputMode} -> Maybe ProcessingS3InputMode
s3InputMode) (\s :: EndpointInput
s@EndpointInput' {} Maybe ProcessingS3InputMode
a -> EndpointInput
s {$sel:s3InputMode:EndpointInput' :: Maybe ProcessingS3InputMode
s3InputMode = Maybe ProcessingS3InputMode
a} :: EndpointInput)

-- | If specified, monitoring jobs substract this time from the start time.
-- For information about using offsets for scheduling monitoring jobs, see
-- <https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality-schedule.html Schedule Model Quality Monitoring Jobs>.
endpointInput_startTimeOffset :: Lens.Lens' EndpointInput (Prelude.Maybe Prelude.Text)
endpointInput_startTimeOffset :: Lens' EndpointInput (Maybe Text)
endpointInput_startTimeOffset = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Maybe Text
startTimeOffset :: Maybe Text
$sel:startTimeOffset:EndpointInput' :: EndpointInput -> Maybe Text
startTimeOffset} -> Maybe Text
startTimeOffset) (\s :: EndpointInput
s@EndpointInput' {} Maybe Text
a -> EndpointInput
s {$sel:startTimeOffset:EndpointInput' :: Maybe Text
startTimeOffset = Maybe Text
a} :: EndpointInput)

-- | An endpoint in customer\'s account which has enabled @DataCaptureConfig@
-- enabled.
endpointInput_endpointName :: Lens.Lens' EndpointInput Prelude.Text
endpointInput_endpointName :: Lens' EndpointInput Text
endpointInput_endpointName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Text
endpointName :: Text
$sel:endpointName:EndpointInput' :: EndpointInput -> Text
endpointName} -> Text
endpointName) (\s :: EndpointInput
s@EndpointInput' {} Text
a -> EndpointInput
s {$sel:endpointName:EndpointInput' :: Text
endpointName = Text
a} :: EndpointInput)

-- | Path to the filesystem where the endpoint data is available to the
-- container.
endpointInput_localPath :: Lens.Lens' EndpointInput Prelude.Text
endpointInput_localPath :: Lens' EndpointInput Text
endpointInput_localPath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointInput' {Text
localPath :: Text
$sel:localPath:EndpointInput' :: EndpointInput -> Text
localPath} -> Text
localPath) (\s :: EndpointInput
s@EndpointInput' {} Text
a -> EndpointInput
s {$sel:localPath:EndpointInput' :: Text
localPath = Text
a} :: EndpointInput)

instance Data.FromJSON EndpointInput where
  parseJSON :: Value -> Parser EndpointInput
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"EndpointInput"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Double
-> Maybe ProcessingS3DataDistributionType
-> Maybe ProcessingS3InputMode
-> Maybe Text
-> Text
-> Text
-> EndpointInput
EndpointInput'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EndTimeOffset")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FeaturesAttribute")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"InferenceAttribute")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProbabilityAttribute")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProbabilityThresholdAttribute")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"S3DataDistributionType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"S3InputMode")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StartTimeOffset")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"EndpointName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"LocalPath")
      )

instance Prelude.Hashable EndpointInput where
  hashWithSalt :: Int -> EndpointInput -> Int
hashWithSalt Int
_salt EndpointInput' {Maybe Double
Maybe Text
Maybe ProcessingS3DataDistributionType
Maybe ProcessingS3InputMode
Text
localPath :: Text
endpointName :: Text
startTimeOffset :: Maybe Text
s3InputMode :: Maybe ProcessingS3InputMode
s3DataDistributionType :: Maybe ProcessingS3DataDistributionType
probabilityThresholdAttribute :: Maybe Double
probabilityAttribute :: Maybe Text
inferenceAttribute :: Maybe Text
featuresAttribute :: Maybe Text
endTimeOffset :: Maybe Text
$sel:localPath:EndpointInput' :: EndpointInput -> Text
$sel:endpointName:EndpointInput' :: EndpointInput -> Text
$sel:startTimeOffset:EndpointInput' :: EndpointInput -> Maybe Text
$sel:s3InputMode:EndpointInput' :: EndpointInput -> Maybe ProcessingS3InputMode
$sel:s3DataDistributionType:EndpointInput' :: EndpointInput -> Maybe ProcessingS3DataDistributionType
$sel:probabilityThresholdAttribute:EndpointInput' :: EndpointInput -> Maybe Double
$sel:probabilityAttribute:EndpointInput' :: EndpointInput -> Maybe Text
$sel:inferenceAttribute:EndpointInput' :: EndpointInput -> Maybe Text
$sel:featuresAttribute:EndpointInput' :: EndpointInput -> Maybe Text
$sel:endTimeOffset:EndpointInput' :: EndpointInput -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
endTimeOffset
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
featuresAttribute
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
inferenceAttribute
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
probabilityAttribute
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Double
probabilityThresholdAttribute
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProcessingS3DataDistributionType
s3DataDistributionType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProcessingS3InputMode
s3InputMode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
startTimeOffset
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
endpointName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
localPath

instance Prelude.NFData EndpointInput where
  rnf :: EndpointInput -> ()
rnf EndpointInput' {Maybe Double
Maybe Text
Maybe ProcessingS3DataDistributionType
Maybe ProcessingS3InputMode
Text
localPath :: Text
endpointName :: Text
startTimeOffset :: Maybe Text
s3InputMode :: Maybe ProcessingS3InputMode
s3DataDistributionType :: Maybe ProcessingS3DataDistributionType
probabilityThresholdAttribute :: Maybe Double
probabilityAttribute :: Maybe Text
inferenceAttribute :: Maybe Text
featuresAttribute :: Maybe Text
endTimeOffset :: Maybe Text
$sel:localPath:EndpointInput' :: EndpointInput -> Text
$sel:endpointName:EndpointInput' :: EndpointInput -> Text
$sel:startTimeOffset:EndpointInput' :: EndpointInput -> Maybe Text
$sel:s3InputMode:EndpointInput' :: EndpointInput -> Maybe ProcessingS3InputMode
$sel:s3DataDistributionType:EndpointInput' :: EndpointInput -> Maybe ProcessingS3DataDistributionType
$sel:probabilityThresholdAttribute:EndpointInput' :: EndpointInput -> Maybe Double
$sel:probabilityAttribute:EndpointInput' :: EndpointInput -> Maybe Text
$sel:inferenceAttribute:EndpointInput' :: EndpointInput -> Maybe Text
$sel:featuresAttribute:EndpointInput' :: EndpointInput -> Maybe Text
$sel:endTimeOffset:EndpointInput' :: EndpointInput -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endTimeOffset
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
featuresAttribute
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
inferenceAttribute
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
probabilityAttribute
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Double
probabilityThresholdAttribute
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProcessingS3DataDistributionType
s3DataDistributionType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProcessingS3InputMode
s3InputMode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
startTimeOffset
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
endpointName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
localPath

instance Data.ToJSON EndpointInput where
  toJSON :: EndpointInput -> Value
toJSON EndpointInput' {Maybe Double
Maybe Text
Maybe ProcessingS3DataDistributionType
Maybe ProcessingS3InputMode
Text
localPath :: Text
endpointName :: Text
startTimeOffset :: Maybe Text
s3InputMode :: Maybe ProcessingS3InputMode
s3DataDistributionType :: Maybe ProcessingS3DataDistributionType
probabilityThresholdAttribute :: Maybe Double
probabilityAttribute :: Maybe Text
inferenceAttribute :: Maybe Text
featuresAttribute :: Maybe Text
endTimeOffset :: Maybe Text
$sel:localPath:EndpointInput' :: EndpointInput -> Text
$sel:endpointName:EndpointInput' :: EndpointInput -> Text
$sel:startTimeOffset:EndpointInput' :: EndpointInput -> Maybe Text
$sel:s3InputMode:EndpointInput' :: EndpointInput -> Maybe ProcessingS3InputMode
$sel:s3DataDistributionType:EndpointInput' :: EndpointInput -> Maybe ProcessingS3DataDistributionType
$sel:probabilityThresholdAttribute:EndpointInput' :: EndpointInput -> Maybe Double
$sel:probabilityAttribute:EndpointInput' :: EndpointInput -> Maybe Text
$sel:inferenceAttribute:EndpointInput' :: EndpointInput -> Maybe Text
$sel:featuresAttribute:EndpointInput' :: EndpointInput -> Maybe Text
$sel:endTimeOffset:EndpointInput' :: EndpointInput -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"EndTimeOffset" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
endTimeOffset,
            (Key
"FeaturesAttribute" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
featuresAttribute,
            (Key
"InferenceAttribute" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
inferenceAttribute,
            (Key
"ProbabilityAttribute" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
probabilityAttribute,
            (Key
"ProbabilityThresholdAttribute" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Double
probabilityThresholdAttribute,
            (Key
"S3DataDistributionType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProcessingS3DataDistributionType
s3DataDistributionType,
            (Key
"S3InputMode" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProcessingS3InputMode
s3InputMode,
            (Key
"StartTimeOffset" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
startTimeOffset,
            forall a. a -> Maybe a
Prelude.Just (Key
"EndpointName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
endpointName),
            forall a. a -> Maybe a
Prelude.Just (Key
"LocalPath" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
localPath)
          ]
      )