AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateImportJobRequest.h
1
6#pragma once
7#include <aws/sesv2/SESV2Request.h>
8#include <aws/sesv2/SESV2_EXPORTS.h>
9#include <aws/sesv2/model/ImportDataSource.h>
10#include <aws/sesv2/model/ImportDestination.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SESV2 {
16namespace Model {
17
25 public:
26 AWS_SESV2_API CreateImportJobRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateImportJob"; }
33
34 AWS_SESV2_API Aws::String SerializePayload() const override;
35
37
40 inline const ImportDestination& GetImportDestination() const { return m_importDestination; }
41 inline bool ImportDestinationHasBeenSet() const { return m_importDestinationHasBeenSet; }
42 template <typename ImportDestinationT = ImportDestination>
43 void SetImportDestination(ImportDestinationT&& value) {
44 m_importDestinationHasBeenSet = true;
45 m_importDestination = std::forward<ImportDestinationT>(value);
46 }
47 template <typename ImportDestinationT = ImportDestination>
48 CreateImportJobRequest& WithImportDestination(ImportDestinationT&& value) {
49 SetImportDestination(std::forward<ImportDestinationT>(value));
50 return *this;
51 }
53
55
58 inline const ImportDataSource& GetImportDataSource() const { return m_importDataSource; }
59 inline bool ImportDataSourceHasBeenSet() const { return m_importDataSourceHasBeenSet; }
60 template <typename ImportDataSourceT = ImportDataSource>
61 void SetImportDataSource(ImportDataSourceT&& value) {
62 m_importDataSourceHasBeenSet = true;
63 m_importDataSource = std::forward<ImportDataSourceT>(value);
64 }
65 template <typename ImportDataSourceT = ImportDataSource>
66 CreateImportJobRequest& WithImportDataSource(ImportDataSourceT&& value) {
67 SetImportDataSource(std::forward<ImportDataSourceT>(value));
68 return *this;
69 }
71 private:
72 ImportDestination m_importDestination;
73
74 ImportDataSource m_importDataSource;
75 bool m_importDestinationHasBeenSet = false;
76 bool m_importDataSourceHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace SESV2
81} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateImportJobRequest & WithImportDestination(ImportDestinationT &&value)
const ImportDestination & GetImportDestination() const
CreateImportJobRequest & WithImportDataSource(ImportDataSourceT &&value)
AWS_SESV2_API Aws::String SerializePayload() const override
const ImportDataSource & GetImportDataSource() const
AWS_SESV2_API CreateImportJobRequest()=default
void SetImportDestination(ImportDestinationT &&value)
void SetImportDataSource(ImportDataSourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String