AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
BatchPutProfileObjectRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/customer-profiles/CustomerProfilesRequest.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/BatchPutProfileObjectRequestItem.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CustomerProfiles {
17namespace Model {
18
22 public:
23 AWS_CUSTOMERPROFILES_API BatchPutProfileObjectRequest() = 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 "BatchPutProfileObject"; }
30
31 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDomainName() const { return m_domainName; }
38 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
39 template <typename DomainNameT = Aws::String>
40 void SetDomainName(DomainNameT&& value) {
41 m_domainNameHasBeenSet = true;
42 m_domainName = std::forward<DomainNameT>(value);
43 }
44 template <typename DomainNameT = Aws::String>
46 SetDomainName(std::forward<DomainNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetObjectTypeName() const { return m_objectTypeName; }
56 inline bool ObjectTypeNameHasBeenSet() const { return m_objectTypeNameHasBeenSet; }
57 template <typename ObjectTypeNameT = Aws::String>
58 void SetObjectTypeName(ObjectTypeNameT&& value) {
59 m_objectTypeNameHasBeenSet = true;
60 m_objectTypeName = std::forward<ObjectTypeNameT>(value);
61 }
62 template <typename ObjectTypeNameT = Aws::String>
64 SetObjectTypeName(std::forward<ObjectTypeNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::Vector<BatchPutProfileObjectRequestItem>& GetItems() const { return m_items; }
74 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
75 template <typename ItemsT = Aws::Vector<BatchPutProfileObjectRequestItem>>
76 void SetItems(ItemsT&& value) {
77 m_itemsHasBeenSet = true;
78 m_items = std::forward<ItemsT>(value);
79 }
80 template <typename ItemsT = Aws::Vector<BatchPutProfileObjectRequestItem>>
82 SetItems(std::forward<ItemsT>(value));
83 return *this;
84 }
85 template <typename ItemsT = BatchPutProfileObjectRequestItem>
87 m_itemsHasBeenSet = true;
88 m_items.emplace_back(std::forward<ItemsT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_domainName;
94
95 Aws::String m_objectTypeName;
96
98 bool m_domainNameHasBeenSet = false;
99 bool m_objectTypeNameHasBeenSet = false;
100 bool m_itemsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CustomerProfiles
105} // namespace Aws
BatchPutProfileObjectRequest & WithDomainName(DomainNameT &&value)
BatchPutProfileObjectRequest & WithObjectTypeName(ObjectTypeNameT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
const Aws::Vector< BatchPutProfileObjectRequestItem > & GetItems() const
AWS_CUSTOMERPROFILES_API BatchPutProfileObjectRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector