AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBulkImportJobRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotsitewise/model/ErrorReportLocation.h>
12#include <aws/iotsitewise/model/JobConfiguration.h>
13#include <aws/iotsitewise/model/File.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoTSiteWise
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTSITEWISE_API CreateBulkImportJobRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBulkImportJob"; }
35
36 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetJobName() const{ return m_jobName; }
44 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
45 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
46 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
47 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
48 inline CreateBulkImportJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
49 inline CreateBulkImportJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
50 inline CreateBulkImportJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
52
54
59 inline const Aws::String& GetJobRoleArn() const{ return m_jobRoleArn; }
60 inline bool JobRoleArnHasBeenSet() const { return m_jobRoleArnHasBeenSet; }
61 inline void SetJobRoleArn(const Aws::String& value) { m_jobRoleArnHasBeenSet = true; m_jobRoleArn = value; }
62 inline void SetJobRoleArn(Aws::String&& value) { m_jobRoleArnHasBeenSet = true; m_jobRoleArn = std::move(value); }
63 inline void SetJobRoleArn(const char* value) { m_jobRoleArnHasBeenSet = true; m_jobRoleArn.assign(value); }
64 inline CreateBulkImportJobRequest& WithJobRoleArn(const Aws::String& value) { SetJobRoleArn(value); return *this;}
65 inline CreateBulkImportJobRequest& WithJobRoleArn(Aws::String&& value) { SetJobRoleArn(std::move(value)); return *this;}
66 inline CreateBulkImportJobRequest& WithJobRoleArn(const char* value) { SetJobRoleArn(value); return *this;}
68
70
73 inline const Aws::Vector<File>& GetFiles() const{ return m_files; }
74 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
75 inline void SetFiles(const Aws::Vector<File>& value) { m_filesHasBeenSet = true; m_files = value; }
76 inline void SetFiles(Aws::Vector<File>&& value) { m_filesHasBeenSet = true; m_files = std::move(value); }
77 inline CreateBulkImportJobRequest& WithFiles(const Aws::Vector<File>& value) { SetFiles(value); return *this;}
78 inline CreateBulkImportJobRequest& WithFiles(Aws::Vector<File>&& value) { SetFiles(std::move(value)); return *this;}
79 inline CreateBulkImportJobRequest& AddFiles(const File& value) { m_filesHasBeenSet = true; m_files.push_back(value); return *this; }
80 inline CreateBulkImportJobRequest& AddFiles(File&& value) { m_filesHasBeenSet = true; m_files.push_back(std::move(value)); return *this; }
82
84
88 inline const ErrorReportLocation& GetErrorReportLocation() const{ return m_errorReportLocation; }
89 inline bool ErrorReportLocationHasBeenSet() const { return m_errorReportLocationHasBeenSet; }
90 inline void SetErrorReportLocation(const ErrorReportLocation& value) { m_errorReportLocationHasBeenSet = true; m_errorReportLocation = value; }
91 inline void SetErrorReportLocation(ErrorReportLocation&& value) { m_errorReportLocationHasBeenSet = true; m_errorReportLocation = std::move(value); }
95
97
101 inline const JobConfiguration& GetJobConfiguration() const{ return m_jobConfiguration; }
102 inline bool JobConfigurationHasBeenSet() const { return m_jobConfigurationHasBeenSet; }
103 inline void SetJobConfiguration(const JobConfiguration& value) { m_jobConfigurationHasBeenSet = true; m_jobConfiguration = value; }
104 inline void SetJobConfiguration(JobConfiguration&& value) { m_jobConfigurationHasBeenSet = true; m_jobConfiguration = std::move(value); }
106 inline CreateBulkImportJobRequest& WithJobConfiguration(JobConfiguration&& value) { SetJobConfiguration(std::move(value)); return *this;}
108
110
115 inline bool GetAdaptiveIngestion() const{ return m_adaptiveIngestion; }
116 inline bool AdaptiveIngestionHasBeenSet() const { return m_adaptiveIngestionHasBeenSet; }
117 inline void SetAdaptiveIngestion(bool value) { m_adaptiveIngestionHasBeenSet = true; m_adaptiveIngestion = value; }
118 inline CreateBulkImportJobRequest& WithAdaptiveIngestion(bool value) { SetAdaptiveIngestion(value); return *this;}
120
122
126 inline bool GetDeleteFilesAfterImport() const{ return m_deleteFilesAfterImport; }
127 inline bool DeleteFilesAfterImportHasBeenSet() const { return m_deleteFilesAfterImportHasBeenSet; }
128 inline void SetDeleteFilesAfterImport(bool value) { m_deleteFilesAfterImportHasBeenSet = true; m_deleteFilesAfterImport = value; }
131 private:
132
133 Aws::String m_jobName;
134 bool m_jobNameHasBeenSet = false;
135
136 Aws::String m_jobRoleArn;
137 bool m_jobRoleArnHasBeenSet = false;
138
139 Aws::Vector<File> m_files;
140 bool m_filesHasBeenSet = false;
141
142 ErrorReportLocation m_errorReportLocation;
143 bool m_errorReportLocationHasBeenSet = false;
144
145 JobConfiguration m_jobConfiguration;
146 bool m_jobConfigurationHasBeenSet = false;
147
148 bool m_adaptiveIngestion;
149 bool m_adaptiveIngestionHasBeenSet = false;
150
151 bool m_deleteFilesAfterImport;
152 bool m_deleteFilesAfterImportHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace IoTSiteWise
157} // namespace Aws
CreateBulkImportJobRequest & WithErrorReportLocation(const ErrorReportLocation &value)
CreateBulkImportJobRequest & WithJobConfiguration(JobConfiguration &&value)
CreateBulkImportJobRequest & WithJobRoleArn(const Aws::String &value)
CreateBulkImportJobRequest & WithAdaptiveIngestion(bool value)
CreateBulkImportJobRequest & WithJobRoleArn(const char *value)
virtual const char * GetServiceRequestName() const override
CreateBulkImportJobRequest & AddFiles(const File &value)
CreateBulkImportJobRequest & WithFiles(Aws::Vector< File > &&value)
void SetErrorReportLocation(const ErrorReportLocation &value)
CreateBulkImportJobRequest & WithJobName(const Aws::String &value)
CreateBulkImportJobRequest & WithJobConfiguration(const JobConfiguration &value)
CreateBulkImportJobRequest & AddFiles(File &&value)
CreateBulkImportJobRequest & WithJobName(Aws::String &&value)
CreateBulkImportJobRequest & WithJobName(const char *value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
CreateBulkImportJobRequest & WithFiles(const Aws::Vector< File > &value)
CreateBulkImportJobRequest & WithDeleteFilesAfterImport(bool value)
CreateBulkImportJobRequest & WithErrorReportLocation(ErrorReportLocation &&value)
CreateBulkImportJobRequest & WithJobRoleArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector