AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateUploadJobRequest.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/CustomerProfilesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/customer-profiles/model/ObjectTypeField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CustomerProfiles
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CUSTOMERPROFILES_API CreateUploadJobRequest() = 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 "CreateUploadJob"; }
33
34 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetDomainName() const { return m_domainName; }
43 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
44 template<typename DomainNameT = Aws::String>
45 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
46 template<typename DomainNameT = Aws::String>
47 CreateUploadJobRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
49
51
55 inline const Aws::String& GetDisplayName() const { return m_displayName; }
56 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
57 template<typename DisplayNameT = Aws::String>
58 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
59 template<typename DisplayNameT = Aws::String>
60 CreateUploadJobRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
62
64
68 inline const Aws::Map<Aws::String, ObjectTypeField>& GetFields() const { return m_fields; }
69 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
70 template<typename FieldsT = Aws::Map<Aws::String, ObjectTypeField>>
71 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
72 template<typename FieldsT = Aws::Map<Aws::String, ObjectTypeField>>
73 CreateUploadJobRequest& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
74 template<typename FieldsKeyT = Aws::String, typename FieldsValueT = ObjectTypeField>
75 CreateUploadJobRequest& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
76 m_fieldsHasBeenSet = true; m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value)); return *this;
77 }
79
81
85 inline const Aws::String& GetUniqueKey() const { return m_uniqueKey; }
86 inline bool UniqueKeyHasBeenSet() const { return m_uniqueKeyHasBeenSet; }
87 template<typename UniqueKeyT = Aws::String>
88 void SetUniqueKey(UniqueKeyT&& value) { m_uniqueKeyHasBeenSet = true; m_uniqueKey = std::forward<UniqueKeyT>(value); }
89 template<typename UniqueKeyT = Aws::String>
90 CreateUploadJobRequest& WithUniqueKey(UniqueKeyT&& value) { SetUniqueKey(std::forward<UniqueKeyT>(value)); return *this;}
92
94
98 inline int GetDataExpiry() const { return m_dataExpiry; }
99 inline bool DataExpiryHasBeenSet() const { return m_dataExpiryHasBeenSet; }
100 inline void SetDataExpiry(int value) { m_dataExpiryHasBeenSet = true; m_dataExpiry = value; }
101 inline CreateUploadJobRequest& WithDataExpiry(int value) { SetDataExpiry(value); return *this;}
103 private:
104
105 Aws::String m_domainName;
106 bool m_domainNameHasBeenSet = false;
107
108 Aws::String m_displayName;
109 bool m_displayNameHasBeenSet = false;
110
112 bool m_fieldsHasBeenSet = false;
113
114 Aws::String m_uniqueKey;
115 bool m_uniqueKeyHasBeenSet = false;
116
117 int m_dataExpiry{0};
118 bool m_dataExpiryHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CustomerProfiles
123} // 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