AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateUploadJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfilesRequest.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/ObjectTypeField.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CustomerProfiles {
17namespace Model {
18
22 public:
23 AWS_CUSTOMERPROFILES_API CreateUploadJobRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateUploadJob"; }
30
31 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetDomainName() const { return m_domainName; }
39 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
40 template <typename DomainNameT = Aws::String>
41 void SetDomainName(DomainNameT&& value) {
42 m_domainNameHasBeenSet = true;
43 m_domainName = std::forward<DomainNameT>(value);
44 }
45 template <typename DomainNameT = Aws::String>
46 CreateUploadJobRequest& WithDomainName(DomainNameT&& value) {
47 SetDomainName(std::forward<DomainNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetDisplayName() const { return m_displayName; }
58 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
59 template <typename DisplayNameT = Aws::String>
60 void SetDisplayName(DisplayNameT&& value) {
61 m_displayNameHasBeenSet = true;
62 m_displayName = std::forward<DisplayNameT>(value);
63 }
64 template <typename DisplayNameT = Aws::String>
65 CreateUploadJobRequest& WithDisplayName(DisplayNameT&& value) {
66 SetDisplayName(std::forward<DisplayNameT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Map<Aws::String, ObjectTypeField>& GetFields() const { return m_fields; }
77 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
78 template <typename FieldsT = Aws::Map<Aws::String, ObjectTypeField>>
79 void SetFields(FieldsT&& value) {
80 m_fieldsHasBeenSet = true;
81 m_fields = std::forward<FieldsT>(value);
82 }
83 template <typename FieldsT = Aws::Map<Aws::String, ObjectTypeField>>
85 SetFields(std::forward<FieldsT>(value));
86 return *this;
87 }
88 template <typename FieldsKeyT = Aws::String, typename FieldsValueT = ObjectTypeField>
89 CreateUploadJobRequest& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
90 m_fieldsHasBeenSet = true;
91 m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetUniqueKey() const { return m_uniqueKey; }
102 inline bool UniqueKeyHasBeenSet() const { return m_uniqueKeyHasBeenSet; }
103 template <typename UniqueKeyT = Aws::String>
104 void SetUniqueKey(UniqueKeyT&& value) {
105 m_uniqueKeyHasBeenSet = true;
106 m_uniqueKey = std::forward<UniqueKeyT>(value);
107 }
108 template <typename UniqueKeyT = Aws::String>
110 SetUniqueKey(std::forward<UniqueKeyT>(value));
111 return *this;
112 }
114
116
120 inline int GetDataExpiry() const { return m_dataExpiry; }
121 inline bool DataExpiryHasBeenSet() const { return m_dataExpiryHasBeenSet; }
122 inline void SetDataExpiry(int value) {
123 m_dataExpiryHasBeenSet = true;
124 m_dataExpiry = value;
125 }
127 SetDataExpiry(value);
128 return *this;
129 }
131 private:
132 Aws::String m_domainName;
133
134 Aws::String m_displayName;
135
137
138 Aws::String m_uniqueKey;
139
140 int m_dataExpiry{0};
141 bool m_domainNameHasBeenSet = false;
142 bool m_displayNameHasBeenSet = false;
143 bool m_fieldsHasBeenSet = false;
144 bool m_uniqueKeyHasBeenSet = false;
145 bool m_dataExpiryHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace CustomerProfiles
150} // namespace Aws
CreateUploadJobRequest & WithDomainName(DomainNameT &&value)
CreateUploadJobRequest & WithFields(FieldsT &&value)
AWS_CUSTOMERPROFILES_API CreateUploadJobRequest()=default
CreateUploadJobRequest & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
CreateUploadJobRequest & WithDisplayName(DisplayNameT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, ObjectTypeField > & GetFields() const
CreateUploadJobRequest & WithUniqueKey(UniqueKeyT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String