AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PutAttributesRequest.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/sdb/SimpleDBRequest.h>
10#include <aws/sdb/SimpleDB_EXPORTS.h>
11#include <aws/sdb/model/ReplaceableAttribute.h>
12#include <aws/sdb/model/UpdateCondition.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SimpleDB {
18namespace Model {
19
23 public:
24 AWS_SIMPLEDB_API PutAttributesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutAttributes"; }
31
32 AWS_SIMPLEDB_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
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) {
46 m_domainNameHasBeenSet = true;
47 m_domainName = std::forward<DomainNameT>(value);
48 }
49 template <typename DomainNameT = Aws::String>
50 PutAttributesRequest& WithDomainName(DomainNameT&& value) {
51 SetDomainName(std::forward<DomainNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetItemName() const { return m_itemName; }
61 inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
62 template <typename ItemNameT = Aws::String>
63 void SetItemName(ItemNameT&& value) {
64 m_itemNameHasBeenSet = true;
65 m_itemName = std::forward<ItemNameT>(value);
66 }
67 template <typename ItemNameT = Aws::String>
68 PutAttributesRequest& WithItemName(ItemNameT&& value) {
69 SetItemName(std::forward<ItemNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<ReplaceableAttribute>& GetAttributes() const { return m_attributes; }
79 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
80 template <typename AttributesT = Aws::Vector<ReplaceableAttribute>>
81 void SetAttributes(AttributesT&& value) {
82 m_attributesHasBeenSet = true;
83 m_attributes = std::forward<AttributesT>(value);
84 }
85 template <typename AttributesT = Aws::Vector<ReplaceableAttribute>>
86 PutAttributesRequest& WithAttributes(AttributesT&& value) {
87 SetAttributes(std::forward<AttributesT>(value));
88 return *this;
89 }
90 template <typename AttributesT = ReplaceableAttribute>
91 PutAttributesRequest& AddAttributes(AttributesT&& value) {
92 m_attributesHasBeenSet = true;
93 m_attributes.emplace_back(std::forward<AttributesT>(value));
94 return *this;
95 }
97
99
104 inline const UpdateCondition& GetExpected() const { return m_expected; }
105 inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
106 template <typename ExpectedT = UpdateCondition>
107 void SetExpected(ExpectedT&& value) {
108 m_expectedHasBeenSet = true;
109 m_expected = std::forward<ExpectedT>(value);
110 }
111 template <typename ExpectedT = UpdateCondition>
112 PutAttributesRequest& WithExpected(ExpectedT&& value) {
113 SetExpected(std::forward<ExpectedT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_domainName;
119
120 Aws::String m_itemName;
121
123
124 UpdateCondition m_expected;
125 bool m_domainNameHasBeenSet = false;
126 bool m_itemNameHasBeenSet = false;
127 bool m_attributesHasBeenSet = false;
128 bool m_expectedHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace SimpleDB
133} // namespace Aws
virtual const char * GetServiceRequestName() const override
PutAttributesRequest & WithItemName(ItemNameT &&value)
PutAttributesRequest & WithAttributes(AttributesT &&value)
const UpdateCondition & GetExpected() const
const Aws::Vector< ReplaceableAttribute > & GetAttributes() const
AWS_SIMPLEDB_API Aws::String SerializePayload() const override
PutAttributesRequest & WithExpected(ExpectedT &&value)
PutAttributesRequest & WithDomainName(DomainNameT &&value)
AWS_SIMPLEDB_API PutAttributesRequest()=default
AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutAttributesRequest & AddAttributes(AttributesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector