/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace IoTSiteWise { namespace Model { /** */ class CreateBulkImportJobRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API CreateBulkImportJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateBulkImportJob"; } AWS_IOTSITEWISE_API Aws::String SerializePayload() const override; /** *

The unique name that helps identify the job request.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The unique name that helps identify the job request.

*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *

The unique name that helps identify the job request.

*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *

The unique name that helps identify the job request.

*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *

The unique name that helps identify the job request.

*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *

The unique name that helps identify the job request.

*/ inline CreateBulkImportJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The unique name that helps identify the job request.

*/ inline CreateBulkImportJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

The unique name that helps identify the job request.

*/ inline CreateBulkImportJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline const Aws::String& GetJobRoleArn() const{ return m_jobRoleArn; } /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline bool JobRoleArnHasBeenSet() const { return m_jobRoleArnHasBeenSet; } /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline void SetJobRoleArn(const Aws::String& value) { m_jobRoleArnHasBeenSet = true; m_jobRoleArn = value; } /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline void SetJobRoleArn(Aws::String&& value) { m_jobRoleArnHasBeenSet = true; m_jobRoleArn = std::move(value); } /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline void SetJobRoleArn(const char* value) { m_jobRoleArnHasBeenSet = true; m_jobRoleArn.assign(value); } /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline CreateBulkImportJobRequest& WithJobRoleArn(const Aws::String& value) { SetJobRoleArn(value); return *this;} /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline CreateBulkImportJobRequest& WithJobRoleArn(Aws::String&& value) { SetJobRoleArn(std::move(value)); return *this;} /** *

The ARN * of the IAM role that allows IoT SiteWise to read Amazon S3 data.

*/ inline CreateBulkImportJobRequest& WithJobRoleArn(const char* value) { SetJobRoleArn(value); return *this;} /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline const Aws::Vector& GetFiles() const{ return m_files; } /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; } /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline void SetFiles(const Aws::Vector& value) { m_filesHasBeenSet = true; m_files = value; } /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline void SetFiles(Aws::Vector&& value) { m_filesHasBeenSet = true; m_files = std::move(value); } /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline CreateBulkImportJobRequest& WithFiles(const Aws::Vector& value) { SetFiles(value); return *this;} /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline CreateBulkImportJobRequest& WithFiles(Aws::Vector&& value) { SetFiles(std::move(value)); return *this;} /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline CreateBulkImportJobRequest& AddFiles(const File& value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; } /** *

The files in the specified Amazon S3 bucket that contain your data.

*/ inline CreateBulkImportJobRequest& AddFiles(File&& value) { m_filesHasBeenSet = true; m_files.push_back(std::move(value)); return *this; } /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline const ErrorReportLocation& GetErrorReportLocation() const{ return m_errorReportLocation; } /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline bool ErrorReportLocationHasBeenSet() const { return m_errorReportLocationHasBeenSet; } /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline void SetErrorReportLocation(const ErrorReportLocation& value) { m_errorReportLocationHasBeenSet = true; m_errorReportLocation = value; } /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline void SetErrorReportLocation(ErrorReportLocation&& value) { m_errorReportLocationHasBeenSet = true; m_errorReportLocation = std::move(value); } /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline CreateBulkImportJobRequest& WithErrorReportLocation(const ErrorReportLocation& value) { SetErrorReportLocation(value); return *this;} /** *

The Amazon S3 destination where errors associated with the job creation * request are saved.

*/ inline CreateBulkImportJobRequest& WithErrorReportLocation(ErrorReportLocation&& value) { SetErrorReportLocation(std::move(value)); return *this;} /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline const JobConfiguration& GetJobConfiguration() const{ return m_jobConfiguration; } /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline bool JobConfigurationHasBeenSet() const { return m_jobConfigurationHasBeenSet; } /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline void SetJobConfiguration(const JobConfiguration& value) { m_jobConfigurationHasBeenSet = true; m_jobConfiguration = value; } /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline void SetJobConfiguration(JobConfiguration&& value) { m_jobConfigurationHasBeenSet = true; m_jobConfiguration = std::move(value); } /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline CreateBulkImportJobRequest& WithJobConfiguration(const JobConfiguration& value) { SetJobConfiguration(value); return *this;} /** *

Contains the configuration information of a job, such as the file format used * to save data in Amazon S3.

*/ inline CreateBulkImportJobRequest& WithJobConfiguration(JobConfiguration&& value) { SetJobConfiguration(std::move(value)); return *this;} private: Aws::String m_jobName; bool m_jobNameHasBeenSet = false; Aws::String m_jobRoleArn; bool m_jobRoleArnHasBeenSet = false; Aws::Vector m_files; bool m_filesHasBeenSet = false; ErrorReportLocation m_errorReportLocation; bool m_errorReportLocationHasBeenSet = false; JobConfiguration m_jobConfiguration; bool m_jobConfigurationHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws