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

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

-- |
-- Module      : Amazonka.Glue.StartImportLabelsTaskRun
-- 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)
--
-- Enables you to provide additional labels (examples of truth) to be used
-- to teach the machine learning transform and improve its quality. This
-- API operation is generally used as part of the active learning workflow
-- that starts with the @StartMLLabelingSetGenerationTaskRun@ call and that
-- ultimately results in improving the quality of your machine learning
-- transform.
--
-- After the @StartMLLabelingSetGenerationTaskRun@ finishes, Glue machine
-- learning will have generated a series of questions for humans to answer.
-- (Answering these questions is often called \'labeling\' in the machine
-- learning workflows). In the case of the @FindMatches@ transform, these
-- questions are of the form, “What is the correct way to group these rows
-- together into groups composed entirely of matching records?” After the
-- labeling process is finished, users upload their answers\/labels with a
-- call to @StartImportLabelsTaskRun@. After @StartImportLabelsTaskRun@
-- finishes, all future runs of the machine learning transform use the new
-- and improved labels and perform a higher-quality transformation.
--
-- By default, @StartMLLabelingSetGenerationTaskRun@ continually learns
-- from and combines all labels that you upload unless you set @Replace@ to
-- true. If you set @Replace@ to true, @StartImportLabelsTaskRun@ deletes
-- and forgets all previously uploaded labels and learns only from the
-- exact set that you upload. Replacing labels can be helpful if you
-- realize that you previously uploaded incorrect labels, and you believe
-- that they are having a negative effect on your transform quality.
--
-- You can check on the status of your task run by calling the
-- @GetMLTaskRun@ operation.
module Amazonka.Glue.StartImportLabelsTaskRun
  ( -- * Creating a Request
    StartImportLabelsTaskRun (..),
    newStartImportLabelsTaskRun,

    -- * Request Lenses
    startImportLabelsTaskRun_replaceAllLabels,
    startImportLabelsTaskRun_transformId,
    startImportLabelsTaskRun_inputS3Path,

    -- * Destructuring the Response
    StartImportLabelsTaskRunResponse (..),
    newStartImportLabelsTaskRunResponse,

    -- * Response Lenses
    startImportLabelsTaskRunResponse_taskRunId,
    startImportLabelsTaskRunResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Glue.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newStartImportLabelsTaskRun' smart constructor.
data StartImportLabelsTaskRun = StartImportLabelsTaskRun'
  { -- | Indicates whether to overwrite your existing labels.
    StartImportLabelsTaskRun -> Maybe Bool
replaceAllLabels :: Prelude.Maybe Prelude.Bool,
    -- | The unique identifier of the machine learning transform.
    StartImportLabelsTaskRun -> Text
transformId :: Prelude.Text,
    -- | The Amazon Simple Storage Service (Amazon S3) path from where you import
    -- the labels.
    StartImportLabelsTaskRun -> Text
inputS3Path :: Prelude.Text
  }
  deriving (StartImportLabelsTaskRun -> StartImportLabelsTaskRun -> Bool
(StartImportLabelsTaskRun -> StartImportLabelsTaskRun -> Bool)
-> (StartImportLabelsTaskRun -> StartImportLabelsTaskRun -> Bool)
-> Eq StartImportLabelsTaskRun
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartImportLabelsTaskRun -> StartImportLabelsTaskRun -> Bool
$c/= :: StartImportLabelsTaskRun -> StartImportLabelsTaskRun -> Bool
== :: StartImportLabelsTaskRun -> StartImportLabelsTaskRun -> Bool
$c== :: StartImportLabelsTaskRun -> StartImportLabelsTaskRun -> Bool
Prelude.Eq, ReadPrec [StartImportLabelsTaskRun]
ReadPrec StartImportLabelsTaskRun
Int -> ReadS StartImportLabelsTaskRun
ReadS [StartImportLabelsTaskRun]
(Int -> ReadS StartImportLabelsTaskRun)
-> ReadS [StartImportLabelsTaskRun]
-> ReadPrec StartImportLabelsTaskRun
-> ReadPrec [StartImportLabelsTaskRun]
-> Read StartImportLabelsTaskRun
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartImportLabelsTaskRun]
$creadListPrec :: ReadPrec [StartImportLabelsTaskRun]
readPrec :: ReadPrec StartImportLabelsTaskRun
$creadPrec :: ReadPrec StartImportLabelsTaskRun
readList :: ReadS [StartImportLabelsTaskRun]
$creadList :: ReadS [StartImportLabelsTaskRun]
readsPrec :: Int -> ReadS StartImportLabelsTaskRun
$creadsPrec :: Int -> ReadS StartImportLabelsTaskRun
Prelude.Read, Int -> StartImportLabelsTaskRun -> ShowS
[StartImportLabelsTaskRun] -> ShowS
StartImportLabelsTaskRun -> String
(Int -> StartImportLabelsTaskRun -> ShowS)
-> (StartImportLabelsTaskRun -> String)
-> ([StartImportLabelsTaskRun] -> ShowS)
-> Show StartImportLabelsTaskRun
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartImportLabelsTaskRun] -> ShowS
$cshowList :: [StartImportLabelsTaskRun] -> ShowS
show :: StartImportLabelsTaskRun -> String
$cshow :: StartImportLabelsTaskRun -> String
showsPrec :: Int -> StartImportLabelsTaskRun -> ShowS
$cshowsPrec :: Int -> StartImportLabelsTaskRun -> ShowS
Prelude.Show, (forall x.
 StartImportLabelsTaskRun -> Rep StartImportLabelsTaskRun x)
-> (forall x.
    Rep StartImportLabelsTaskRun x -> StartImportLabelsTaskRun)
-> Generic StartImportLabelsTaskRun
forall x.
Rep StartImportLabelsTaskRun x -> StartImportLabelsTaskRun
forall x.
StartImportLabelsTaskRun -> Rep StartImportLabelsTaskRun x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartImportLabelsTaskRun x -> StartImportLabelsTaskRun
$cfrom :: forall x.
StartImportLabelsTaskRun -> Rep StartImportLabelsTaskRun x
Prelude.Generic)

-- |
-- Create a value of 'StartImportLabelsTaskRun' 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:
--
-- 'replaceAllLabels', 'startImportLabelsTaskRun_replaceAllLabels' - Indicates whether to overwrite your existing labels.
--
-- 'transformId', 'startImportLabelsTaskRun_transformId' - The unique identifier of the machine learning transform.
--
-- 'inputS3Path', 'startImportLabelsTaskRun_inputS3Path' - The Amazon Simple Storage Service (Amazon S3) path from where you import
-- the labels.
newStartImportLabelsTaskRun ::
  -- | 'transformId'
  Prelude.Text ->
  -- | 'inputS3Path'
  Prelude.Text ->
  StartImportLabelsTaskRun
newStartImportLabelsTaskRun :: Text -> Text -> StartImportLabelsTaskRun
newStartImportLabelsTaskRun
  Text
pTransformId_
  Text
pInputS3Path_ =
    StartImportLabelsTaskRun' :: Maybe Bool -> Text -> Text -> StartImportLabelsTaskRun
StartImportLabelsTaskRun'
      { $sel:replaceAllLabels:StartImportLabelsTaskRun' :: Maybe Bool
replaceAllLabels =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:transformId:StartImportLabelsTaskRun' :: Text
transformId = Text
pTransformId_,
        $sel:inputS3Path:StartImportLabelsTaskRun' :: Text
inputS3Path = Text
pInputS3Path_
      }

-- | Indicates whether to overwrite your existing labels.
startImportLabelsTaskRun_replaceAllLabels :: Lens.Lens' StartImportLabelsTaskRun (Prelude.Maybe Prelude.Bool)
startImportLabelsTaskRun_replaceAllLabels :: (Maybe Bool -> f (Maybe Bool))
-> StartImportLabelsTaskRun -> f StartImportLabelsTaskRun
startImportLabelsTaskRun_replaceAllLabels = (StartImportLabelsTaskRun -> Maybe Bool)
-> (StartImportLabelsTaskRun
    -> Maybe Bool -> StartImportLabelsTaskRun)
-> Lens
     StartImportLabelsTaskRun
     StartImportLabelsTaskRun
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartImportLabelsTaskRun' {Maybe Bool
replaceAllLabels :: Maybe Bool
$sel:replaceAllLabels:StartImportLabelsTaskRun' :: StartImportLabelsTaskRun -> Maybe Bool
replaceAllLabels} -> Maybe Bool
replaceAllLabels) (\s :: StartImportLabelsTaskRun
s@StartImportLabelsTaskRun' {} Maybe Bool
a -> StartImportLabelsTaskRun
s {$sel:replaceAllLabels:StartImportLabelsTaskRun' :: Maybe Bool
replaceAllLabels = Maybe Bool
a} :: StartImportLabelsTaskRun)

-- | The unique identifier of the machine learning transform.
startImportLabelsTaskRun_transformId :: Lens.Lens' StartImportLabelsTaskRun Prelude.Text
startImportLabelsTaskRun_transformId :: (Text -> f Text)
-> StartImportLabelsTaskRun -> f StartImportLabelsTaskRun
startImportLabelsTaskRun_transformId = (StartImportLabelsTaskRun -> Text)
-> (StartImportLabelsTaskRun -> Text -> StartImportLabelsTaskRun)
-> Lens StartImportLabelsTaskRun StartImportLabelsTaskRun Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartImportLabelsTaskRun' {Text
transformId :: Text
$sel:transformId:StartImportLabelsTaskRun' :: StartImportLabelsTaskRun -> Text
transformId} -> Text
transformId) (\s :: StartImportLabelsTaskRun
s@StartImportLabelsTaskRun' {} Text
a -> StartImportLabelsTaskRun
s {$sel:transformId:StartImportLabelsTaskRun' :: Text
transformId = Text
a} :: StartImportLabelsTaskRun)

-- | The Amazon Simple Storage Service (Amazon S3) path from where you import
-- the labels.
startImportLabelsTaskRun_inputS3Path :: Lens.Lens' StartImportLabelsTaskRun Prelude.Text
startImportLabelsTaskRun_inputS3Path :: (Text -> f Text)
-> StartImportLabelsTaskRun -> f StartImportLabelsTaskRun
startImportLabelsTaskRun_inputS3Path = (StartImportLabelsTaskRun -> Text)
-> (StartImportLabelsTaskRun -> Text -> StartImportLabelsTaskRun)
-> Lens StartImportLabelsTaskRun StartImportLabelsTaskRun Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartImportLabelsTaskRun' {Text
inputS3Path :: Text
$sel:inputS3Path:StartImportLabelsTaskRun' :: StartImportLabelsTaskRun -> Text
inputS3Path} -> Text
inputS3Path) (\s :: StartImportLabelsTaskRun
s@StartImportLabelsTaskRun' {} Text
a -> StartImportLabelsTaskRun
s {$sel:inputS3Path:StartImportLabelsTaskRun' :: Text
inputS3Path = Text
a} :: StartImportLabelsTaskRun)

instance Core.AWSRequest StartImportLabelsTaskRun where
  type
    AWSResponse StartImportLabelsTaskRun =
      StartImportLabelsTaskRunResponse
  request :: StartImportLabelsTaskRun -> Request StartImportLabelsTaskRun
request = Service
-> StartImportLabelsTaskRun -> Request StartImportLabelsTaskRun
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy StartImportLabelsTaskRun
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse StartImportLabelsTaskRun)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse StartImportLabelsTaskRun))
-> Logger
-> Service
-> Proxy StartImportLabelsTaskRun
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse StartImportLabelsTaskRun)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text -> Int -> StartImportLabelsTaskRunResponse
StartImportLabelsTaskRunResponse'
            (Maybe Text -> Int -> StartImportLabelsTaskRunResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StartImportLabelsTaskRunResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TaskRunId")
            Either String (Int -> StartImportLabelsTaskRunResponse)
-> Either String Int
-> Either String StartImportLabelsTaskRunResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable StartImportLabelsTaskRun

instance Prelude.NFData StartImportLabelsTaskRun

instance Core.ToHeaders StartImportLabelsTaskRun where
  toHeaders :: StartImportLabelsTaskRun -> ResponseHeaders
toHeaders =
    ResponseHeaders -> StartImportLabelsTaskRun -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSGlue.StartImportLabelsTaskRun" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON StartImportLabelsTaskRun where
  toJSON :: StartImportLabelsTaskRun -> Value
toJSON StartImportLabelsTaskRun' {Maybe Bool
Text
inputS3Path :: Text
transformId :: Text
replaceAllLabels :: Maybe Bool
$sel:inputS3Path:StartImportLabelsTaskRun' :: StartImportLabelsTaskRun -> Text
$sel:transformId:StartImportLabelsTaskRun' :: StartImportLabelsTaskRun -> Text
$sel:replaceAllLabels:StartImportLabelsTaskRun' :: StartImportLabelsTaskRun -> Maybe Bool
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"ReplaceAllLabels" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
replaceAllLabels,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"TransformId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
transformId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InputS3Path" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
inputS3Path)
          ]
      )

instance Core.ToPath StartImportLabelsTaskRun where
  toPath :: StartImportLabelsTaskRun -> ByteString
toPath = ByteString -> StartImportLabelsTaskRun -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery StartImportLabelsTaskRun where
  toQuery :: StartImportLabelsTaskRun -> QueryString
toQuery = QueryString -> StartImportLabelsTaskRun -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newStartImportLabelsTaskRunResponse' smart constructor.
data StartImportLabelsTaskRunResponse = StartImportLabelsTaskRunResponse'
  { -- | The unique identifier for the task run.
    StartImportLabelsTaskRunResponse -> Maybe Text
taskRunId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    StartImportLabelsTaskRunResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StartImportLabelsTaskRunResponse
-> StartImportLabelsTaskRunResponse -> Bool
(StartImportLabelsTaskRunResponse
 -> StartImportLabelsTaskRunResponse -> Bool)
-> (StartImportLabelsTaskRunResponse
    -> StartImportLabelsTaskRunResponse -> Bool)
-> Eq StartImportLabelsTaskRunResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartImportLabelsTaskRunResponse
-> StartImportLabelsTaskRunResponse -> Bool
$c/= :: StartImportLabelsTaskRunResponse
-> StartImportLabelsTaskRunResponse -> Bool
== :: StartImportLabelsTaskRunResponse
-> StartImportLabelsTaskRunResponse -> Bool
$c== :: StartImportLabelsTaskRunResponse
-> StartImportLabelsTaskRunResponse -> Bool
Prelude.Eq, ReadPrec [StartImportLabelsTaskRunResponse]
ReadPrec StartImportLabelsTaskRunResponse
Int -> ReadS StartImportLabelsTaskRunResponse
ReadS [StartImportLabelsTaskRunResponse]
(Int -> ReadS StartImportLabelsTaskRunResponse)
-> ReadS [StartImportLabelsTaskRunResponse]
-> ReadPrec StartImportLabelsTaskRunResponse
-> ReadPrec [StartImportLabelsTaskRunResponse]
-> Read StartImportLabelsTaskRunResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartImportLabelsTaskRunResponse]
$creadListPrec :: ReadPrec [StartImportLabelsTaskRunResponse]
readPrec :: ReadPrec StartImportLabelsTaskRunResponse
$creadPrec :: ReadPrec StartImportLabelsTaskRunResponse
readList :: ReadS [StartImportLabelsTaskRunResponse]
$creadList :: ReadS [StartImportLabelsTaskRunResponse]
readsPrec :: Int -> ReadS StartImportLabelsTaskRunResponse
$creadsPrec :: Int -> ReadS StartImportLabelsTaskRunResponse
Prelude.Read, Int -> StartImportLabelsTaskRunResponse -> ShowS
[StartImportLabelsTaskRunResponse] -> ShowS
StartImportLabelsTaskRunResponse -> String
(Int -> StartImportLabelsTaskRunResponse -> ShowS)
-> (StartImportLabelsTaskRunResponse -> String)
-> ([StartImportLabelsTaskRunResponse] -> ShowS)
-> Show StartImportLabelsTaskRunResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartImportLabelsTaskRunResponse] -> ShowS
$cshowList :: [StartImportLabelsTaskRunResponse] -> ShowS
show :: StartImportLabelsTaskRunResponse -> String
$cshow :: StartImportLabelsTaskRunResponse -> String
showsPrec :: Int -> StartImportLabelsTaskRunResponse -> ShowS
$cshowsPrec :: Int -> StartImportLabelsTaskRunResponse -> ShowS
Prelude.Show, (forall x.
 StartImportLabelsTaskRunResponse
 -> Rep StartImportLabelsTaskRunResponse x)
-> (forall x.
    Rep StartImportLabelsTaskRunResponse x
    -> StartImportLabelsTaskRunResponse)
-> Generic StartImportLabelsTaskRunResponse
forall x.
Rep StartImportLabelsTaskRunResponse x
-> StartImportLabelsTaskRunResponse
forall x.
StartImportLabelsTaskRunResponse
-> Rep StartImportLabelsTaskRunResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartImportLabelsTaskRunResponse x
-> StartImportLabelsTaskRunResponse
$cfrom :: forall x.
StartImportLabelsTaskRunResponse
-> Rep StartImportLabelsTaskRunResponse x
Prelude.Generic)

-- |
-- Create a value of 'StartImportLabelsTaskRunResponse' 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:
--
-- 'taskRunId', 'startImportLabelsTaskRunResponse_taskRunId' - The unique identifier for the task run.
--
-- 'httpStatus', 'startImportLabelsTaskRunResponse_httpStatus' - The response's http status code.
newStartImportLabelsTaskRunResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StartImportLabelsTaskRunResponse
newStartImportLabelsTaskRunResponse :: Int -> StartImportLabelsTaskRunResponse
newStartImportLabelsTaskRunResponse Int
pHttpStatus_ =
  StartImportLabelsTaskRunResponse' :: Maybe Text -> Int -> StartImportLabelsTaskRunResponse
StartImportLabelsTaskRunResponse'
    { $sel:taskRunId:StartImportLabelsTaskRunResponse' :: Maybe Text
taskRunId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:StartImportLabelsTaskRunResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The unique identifier for the task run.
startImportLabelsTaskRunResponse_taskRunId :: Lens.Lens' StartImportLabelsTaskRunResponse (Prelude.Maybe Prelude.Text)
startImportLabelsTaskRunResponse_taskRunId :: (Maybe Text -> f (Maybe Text))
-> StartImportLabelsTaskRunResponse
-> f StartImportLabelsTaskRunResponse
startImportLabelsTaskRunResponse_taskRunId = (StartImportLabelsTaskRunResponse -> Maybe Text)
-> (StartImportLabelsTaskRunResponse
    -> Maybe Text -> StartImportLabelsTaskRunResponse)
-> Lens
     StartImportLabelsTaskRunResponse
     StartImportLabelsTaskRunResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartImportLabelsTaskRunResponse' {Maybe Text
taskRunId :: Maybe Text
$sel:taskRunId:StartImportLabelsTaskRunResponse' :: StartImportLabelsTaskRunResponse -> Maybe Text
taskRunId} -> Maybe Text
taskRunId) (\s :: StartImportLabelsTaskRunResponse
s@StartImportLabelsTaskRunResponse' {} Maybe Text
a -> StartImportLabelsTaskRunResponse
s {$sel:taskRunId:StartImportLabelsTaskRunResponse' :: Maybe Text
taskRunId = Maybe Text
a} :: StartImportLabelsTaskRunResponse)

-- | The response's http status code.
startImportLabelsTaskRunResponse_httpStatus :: Lens.Lens' StartImportLabelsTaskRunResponse Prelude.Int
startImportLabelsTaskRunResponse_httpStatus :: (Int -> f Int)
-> StartImportLabelsTaskRunResponse
-> f StartImportLabelsTaskRunResponse
startImportLabelsTaskRunResponse_httpStatus = (StartImportLabelsTaskRunResponse -> Int)
-> (StartImportLabelsTaskRunResponse
    -> Int -> StartImportLabelsTaskRunResponse)
-> Lens
     StartImportLabelsTaskRunResponse
     StartImportLabelsTaskRunResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartImportLabelsTaskRunResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartImportLabelsTaskRunResponse' :: StartImportLabelsTaskRunResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartImportLabelsTaskRunResponse
s@StartImportLabelsTaskRunResponse' {} Int
a -> StartImportLabelsTaskRunResponse
s {$sel:httpStatus:StartImportLabelsTaskRunResponse' :: Int
httpStatus = Int
a} :: StartImportLabelsTaskRunResponse)

instance
  Prelude.NFData
    StartImportLabelsTaskRunResponse