{-# 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.FraudDetector.CreateBatchImportJob
-- 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)
--
-- Creates a batch import job.
module Amazonka.FraudDetector.CreateBatchImportJob
  ( -- * Creating a Request
    CreateBatchImportJob (..),
    newCreateBatchImportJob,

    -- * Request Lenses
    createBatchImportJob_tags,
    createBatchImportJob_jobId,
    createBatchImportJob_inputPath,
    createBatchImportJob_outputPath,
    createBatchImportJob_eventTypeName,
    createBatchImportJob_iamRoleArn,

    -- * Destructuring the Response
    CreateBatchImportJobResponse (..),
    newCreateBatchImportJobResponse,

    -- * Response Lenses
    createBatchImportJobResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.FraudDetector.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:/ 'newCreateBatchImportJob' smart constructor.
data CreateBatchImportJob = CreateBatchImportJob'
  { -- | A collection of key-value pairs associated with this request.
    CreateBatchImportJob -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The ID of the batch import job. The ID cannot be of a past job, unless
    -- the job exists in @CREATE_FAILED@ state.
    CreateBatchImportJob -> Text
jobId :: Prelude.Text,
    -- | The URI that points to the Amazon S3 location of your data file.
    CreateBatchImportJob -> Text
inputPath :: Prelude.Text,
    -- | The URI that points to the Amazon S3 location for storing your results.
    CreateBatchImportJob -> Text
outputPath :: Prelude.Text,
    -- | The name of the event type.
    CreateBatchImportJob -> Text
eventTypeName :: Prelude.Text,
    -- | The ARN of the IAM role created for Amazon S3 bucket that holds your
    -- data file. The IAM role must have read and write permissions to both
    -- input and output S3 buckets.
    CreateBatchImportJob -> Text
iamRoleArn :: Prelude.Text
  }
  deriving (CreateBatchImportJob -> CreateBatchImportJob -> Bool
(CreateBatchImportJob -> CreateBatchImportJob -> Bool)
-> (CreateBatchImportJob -> CreateBatchImportJob -> Bool)
-> Eq CreateBatchImportJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateBatchImportJob -> CreateBatchImportJob -> Bool
$c/= :: CreateBatchImportJob -> CreateBatchImportJob -> Bool
== :: CreateBatchImportJob -> CreateBatchImportJob -> Bool
$c== :: CreateBatchImportJob -> CreateBatchImportJob -> Bool
Prelude.Eq, ReadPrec [CreateBatchImportJob]
ReadPrec CreateBatchImportJob
Int -> ReadS CreateBatchImportJob
ReadS [CreateBatchImportJob]
(Int -> ReadS CreateBatchImportJob)
-> ReadS [CreateBatchImportJob]
-> ReadPrec CreateBatchImportJob
-> ReadPrec [CreateBatchImportJob]
-> Read CreateBatchImportJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateBatchImportJob]
$creadListPrec :: ReadPrec [CreateBatchImportJob]
readPrec :: ReadPrec CreateBatchImportJob
$creadPrec :: ReadPrec CreateBatchImportJob
readList :: ReadS [CreateBatchImportJob]
$creadList :: ReadS [CreateBatchImportJob]
readsPrec :: Int -> ReadS CreateBatchImportJob
$creadsPrec :: Int -> ReadS CreateBatchImportJob
Prelude.Read, Int -> CreateBatchImportJob -> ShowS
[CreateBatchImportJob] -> ShowS
CreateBatchImportJob -> String
(Int -> CreateBatchImportJob -> ShowS)
-> (CreateBatchImportJob -> String)
-> ([CreateBatchImportJob] -> ShowS)
-> Show CreateBatchImportJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateBatchImportJob] -> ShowS
$cshowList :: [CreateBatchImportJob] -> ShowS
show :: CreateBatchImportJob -> String
$cshow :: CreateBatchImportJob -> String
showsPrec :: Int -> CreateBatchImportJob -> ShowS
$cshowsPrec :: Int -> CreateBatchImportJob -> ShowS
Prelude.Show, (forall x. CreateBatchImportJob -> Rep CreateBatchImportJob x)
-> (forall x. Rep CreateBatchImportJob x -> CreateBatchImportJob)
-> Generic CreateBatchImportJob
forall x. Rep CreateBatchImportJob x -> CreateBatchImportJob
forall x. CreateBatchImportJob -> Rep CreateBatchImportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateBatchImportJob x -> CreateBatchImportJob
$cfrom :: forall x. CreateBatchImportJob -> Rep CreateBatchImportJob x
Prelude.Generic)

-- |
-- Create a value of 'CreateBatchImportJob' 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:
--
-- 'tags', 'createBatchImportJob_tags' - A collection of key-value pairs associated with this request.
--
-- 'jobId', 'createBatchImportJob_jobId' - The ID of the batch import job. The ID cannot be of a past job, unless
-- the job exists in @CREATE_FAILED@ state.
--
-- 'inputPath', 'createBatchImportJob_inputPath' - The URI that points to the Amazon S3 location of your data file.
--
-- 'outputPath', 'createBatchImportJob_outputPath' - The URI that points to the Amazon S3 location for storing your results.
--
-- 'eventTypeName', 'createBatchImportJob_eventTypeName' - The name of the event type.
--
-- 'iamRoleArn', 'createBatchImportJob_iamRoleArn' - The ARN of the IAM role created for Amazon S3 bucket that holds your
-- data file. The IAM role must have read and write permissions to both
-- input and output S3 buckets.
newCreateBatchImportJob ::
  -- | 'jobId'
  Prelude.Text ->
  -- | 'inputPath'
  Prelude.Text ->
  -- | 'outputPath'
  Prelude.Text ->
  -- | 'eventTypeName'
  Prelude.Text ->
  -- | 'iamRoleArn'
  Prelude.Text ->
  CreateBatchImportJob
newCreateBatchImportJob :: Text -> Text -> Text -> Text -> Text -> CreateBatchImportJob
newCreateBatchImportJob
  Text
pJobId_
  Text
pInputPath_
  Text
pOutputPath_
  Text
pEventTypeName_
  Text
pIamRoleArn_ =
    CreateBatchImportJob' :: Maybe [Tag]
-> Text -> Text -> Text -> Text -> Text -> CreateBatchImportJob
CreateBatchImportJob'
      { $sel:tags:CreateBatchImportJob' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
        $sel:jobId:CreateBatchImportJob' :: Text
jobId = Text
pJobId_,
        $sel:inputPath:CreateBatchImportJob' :: Text
inputPath = Text
pInputPath_,
        $sel:outputPath:CreateBatchImportJob' :: Text
outputPath = Text
pOutputPath_,
        $sel:eventTypeName:CreateBatchImportJob' :: Text
eventTypeName = Text
pEventTypeName_,
        $sel:iamRoleArn:CreateBatchImportJob' :: Text
iamRoleArn = Text
pIamRoleArn_
      }

-- | A collection of key-value pairs associated with this request.
createBatchImportJob_tags :: Lens.Lens' CreateBatchImportJob (Prelude.Maybe [Tag])
createBatchImportJob_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateBatchImportJob -> f CreateBatchImportJob
createBatchImportJob_tags = (CreateBatchImportJob -> Maybe [Tag])
-> (CreateBatchImportJob -> Maybe [Tag] -> CreateBatchImportJob)
-> Lens
     CreateBatchImportJob
     CreateBatchImportJob
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBatchImportJob' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateBatchImportJob' :: CreateBatchImportJob -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateBatchImportJob
s@CreateBatchImportJob' {} Maybe [Tag]
a -> CreateBatchImportJob
s {$sel:tags:CreateBatchImportJob' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateBatchImportJob) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> CreateBatchImportJob -> f CreateBatchImportJob)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateBatchImportJob
-> f CreateBatchImportJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The ID of the batch import job. The ID cannot be of a past job, unless
-- the job exists in @CREATE_FAILED@ state.
createBatchImportJob_jobId :: Lens.Lens' CreateBatchImportJob Prelude.Text
createBatchImportJob_jobId :: (Text -> f Text) -> CreateBatchImportJob -> f CreateBatchImportJob
createBatchImportJob_jobId = (CreateBatchImportJob -> Text)
-> (CreateBatchImportJob -> Text -> CreateBatchImportJob)
-> Lens CreateBatchImportJob CreateBatchImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBatchImportJob' {Text
jobId :: Text
$sel:jobId:CreateBatchImportJob' :: CreateBatchImportJob -> Text
jobId} -> Text
jobId) (\s :: CreateBatchImportJob
s@CreateBatchImportJob' {} Text
a -> CreateBatchImportJob
s {$sel:jobId:CreateBatchImportJob' :: Text
jobId = Text
a} :: CreateBatchImportJob)

-- | The URI that points to the Amazon S3 location of your data file.
createBatchImportJob_inputPath :: Lens.Lens' CreateBatchImportJob Prelude.Text
createBatchImportJob_inputPath :: (Text -> f Text) -> CreateBatchImportJob -> f CreateBatchImportJob
createBatchImportJob_inputPath = (CreateBatchImportJob -> Text)
-> (CreateBatchImportJob -> Text -> CreateBatchImportJob)
-> Lens CreateBatchImportJob CreateBatchImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBatchImportJob' {Text
inputPath :: Text
$sel:inputPath:CreateBatchImportJob' :: CreateBatchImportJob -> Text
inputPath} -> Text
inputPath) (\s :: CreateBatchImportJob
s@CreateBatchImportJob' {} Text
a -> CreateBatchImportJob
s {$sel:inputPath:CreateBatchImportJob' :: Text
inputPath = Text
a} :: CreateBatchImportJob)

-- | The URI that points to the Amazon S3 location for storing your results.
createBatchImportJob_outputPath :: Lens.Lens' CreateBatchImportJob Prelude.Text
createBatchImportJob_outputPath :: (Text -> f Text) -> CreateBatchImportJob -> f CreateBatchImportJob
createBatchImportJob_outputPath = (CreateBatchImportJob -> Text)
-> (CreateBatchImportJob -> Text -> CreateBatchImportJob)
-> Lens CreateBatchImportJob CreateBatchImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBatchImportJob' {Text
outputPath :: Text
$sel:outputPath:CreateBatchImportJob' :: CreateBatchImportJob -> Text
outputPath} -> Text
outputPath) (\s :: CreateBatchImportJob
s@CreateBatchImportJob' {} Text
a -> CreateBatchImportJob
s {$sel:outputPath:CreateBatchImportJob' :: Text
outputPath = Text
a} :: CreateBatchImportJob)

-- | The name of the event type.
createBatchImportJob_eventTypeName :: Lens.Lens' CreateBatchImportJob Prelude.Text
createBatchImportJob_eventTypeName :: (Text -> f Text) -> CreateBatchImportJob -> f CreateBatchImportJob
createBatchImportJob_eventTypeName = (CreateBatchImportJob -> Text)
-> (CreateBatchImportJob -> Text -> CreateBatchImportJob)
-> Lens CreateBatchImportJob CreateBatchImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBatchImportJob' {Text
eventTypeName :: Text
$sel:eventTypeName:CreateBatchImportJob' :: CreateBatchImportJob -> Text
eventTypeName} -> Text
eventTypeName) (\s :: CreateBatchImportJob
s@CreateBatchImportJob' {} Text
a -> CreateBatchImportJob
s {$sel:eventTypeName:CreateBatchImportJob' :: Text
eventTypeName = Text
a} :: CreateBatchImportJob)

-- | The ARN of the IAM role created for Amazon S3 bucket that holds your
-- data file. The IAM role must have read and write permissions to both
-- input and output S3 buckets.
createBatchImportJob_iamRoleArn :: Lens.Lens' CreateBatchImportJob Prelude.Text
createBatchImportJob_iamRoleArn :: (Text -> f Text) -> CreateBatchImportJob -> f CreateBatchImportJob
createBatchImportJob_iamRoleArn = (CreateBatchImportJob -> Text)
-> (CreateBatchImportJob -> Text -> CreateBatchImportJob)
-> Lens CreateBatchImportJob CreateBatchImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBatchImportJob' {Text
iamRoleArn :: Text
$sel:iamRoleArn:CreateBatchImportJob' :: CreateBatchImportJob -> Text
iamRoleArn} -> Text
iamRoleArn) (\s :: CreateBatchImportJob
s@CreateBatchImportJob' {} Text
a -> CreateBatchImportJob
s {$sel:iamRoleArn:CreateBatchImportJob' :: Text
iamRoleArn = Text
a} :: CreateBatchImportJob)

instance Core.AWSRequest CreateBatchImportJob where
  type
    AWSResponse CreateBatchImportJob =
      CreateBatchImportJobResponse
  request :: CreateBatchImportJob -> Request CreateBatchImportJob
request = Service -> CreateBatchImportJob -> Request CreateBatchImportJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateBatchImportJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateBatchImportJob)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse CreateBatchImportJob))
-> Logger
-> Service
-> Proxy CreateBatchImportJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateBatchImportJob)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> CreateBatchImportJobResponse
CreateBatchImportJobResponse'
            (Int -> CreateBatchImportJobResponse)
-> Either String Int -> Either String CreateBatchImportJobResponse
forall (f :: * -> *) a b. Functor 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 CreateBatchImportJob

instance Prelude.NFData CreateBatchImportJob

instance Core.ToHeaders CreateBatchImportJob where
  toHeaders :: CreateBatchImportJob -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateBatchImportJob -> 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
"AWSHawksNestServiceFacade.CreateBatchImportJob" ::
                          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 CreateBatchImportJob where
  toJSON :: CreateBatchImportJob -> Value
toJSON CreateBatchImportJob' {Maybe [Tag]
Text
iamRoleArn :: Text
eventTypeName :: Text
outputPath :: Text
inputPath :: Text
jobId :: Text
tags :: Maybe [Tag]
$sel:iamRoleArn:CreateBatchImportJob' :: CreateBatchImportJob -> Text
$sel:eventTypeName:CreateBatchImportJob' :: CreateBatchImportJob -> Text
$sel:outputPath:CreateBatchImportJob' :: CreateBatchImportJob -> Text
$sel:inputPath:CreateBatchImportJob' :: CreateBatchImportJob -> Text
$sel:jobId:CreateBatchImportJob' :: CreateBatchImportJob -> Text
$sel:tags:CreateBatchImportJob' :: CreateBatchImportJob -> Maybe [Tag]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"jobId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
jobId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"inputPath" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
inputPath),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"outputPath" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
outputPath),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"eventTypeName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
eventTypeName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"iamRoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
iamRoleArn)
          ]
      )

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

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

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

-- |
-- Create a value of 'CreateBatchImportJobResponse' 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:
--
-- 'httpStatus', 'createBatchImportJobResponse_httpStatus' - The response's http status code.
newCreateBatchImportJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateBatchImportJobResponse
newCreateBatchImportJobResponse :: Int -> CreateBatchImportJobResponse
newCreateBatchImportJobResponse Int
pHttpStatus_ =
  CreateBatchImportJobResponse' :: Int -> CreateBatchImportJobResponse
CreateBatchImportJobResponse'
    { $sel:httpStatus:CreateBatchImportJobResponse' :: Int
httpStatus =
        Int
pHttpStatus_
    }

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

instance Prelude.NFData CreateBatchImportJobResponse