AWS SDK for C++  1.9.104
AWS SDK for C++
PutAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SimpleDB
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "PutAttributes"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetDomainName() const{ return m_domainName; }
46 
50  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
51 
55  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
56 
60  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
61 
65  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
66 
70  inline PutAttributesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
71 
75  inline PutAttributesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
76 
80  inline PutAttributesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
81 
82 
86  inline const Aws::String& GetItemName() const{ return m_itemName; }
87 
91  inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
92 
96  inline void SetItemName(const Aws::String& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
97 
101  inline void SetItemName(Aws::String&& value) { m_itemNameHasBeenSet = true; m_itemName = std::move(value); }
102 
106  inline void SetItemName(const char* value) { m_itemNameHasBeenSet = true; m_itemName.assign(value); }
107 
111  inline PutAttributesRequest& WithItemName(const Aws::String& value) { SetItemName(value); return *this;}
112 
116  inline PutAttributesRequest& WithItemName(Aws::String&& value) { SetItemName(std::move(value)); return *this;}
117 
121  inline PutAttributesRequest& WithItemName(const char* value) { SetItemName(value); return *this;}
122 
123 
127  inline const Aws::Vector<ReplaceableAttribute>& GetAttributes() const{ return m_attributes; }
128 
132  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
133 
137  inline void SetAttributes(const Aws::Vector<ReplaceableAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
138 
142  inline void SetAttributes(Aws::Vector<ReplaceableAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
143 
147  inline PutAttributesRequest& WithAttributes(const Aws::Vector<ReplaceableAttribute>& value) { SetAttributes(value); return *this;}
148 
152  inline PutAttributesRequest& WithAttributes(Aws::Vector<ReplaceableAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
153 
157  inline PutAttributesRequest& AddAttributes(const ReplaceableAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
158 
162  inline PutAttributesRequest& AddAttributes(ReplaceableAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
163 
164 
170  inline const UpdateCondition& GetExpected() const{ return m_expected; }
171 
177  inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
178 
184  inline void SetExpected(const UpdateCondition& value) { m_expectedHasBeenSet = true; m_expected = value; }
185 
191  inline void SetExpected(UpdateCondition&& value) { m_expectedHasBeenSet = true; m_expected = std::move(value); }
192 
198  inline PutAttributesRequest& WithExpected(const UpdateCondition& value) { SetExpected(value); return *this;}
199 
205  inline PutAttributesRequest& WithExpected(UpdateCondition&& value) { SetExpected(std::move(value)); return *this;}
206 
207  private:
208 
209  Aws::String m_domainName;
210  bool m_domainNameHasBeenSet;
211 
212  Aws::String m_itemName;
213  bool m_itemNameHasBeenSet;
214 
216  bool m_attributesHasBeenSet;
217 
218  UpdateCondition m_expected;
219  bool m_expectedHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace SimpleDB
224 } // namespace Aws
Aws::SimpleDB::Model::PutAttributesRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: PutAttributesRequest.h:55
Aws::SimpleDB::Model::UpdateCondition
Definition: UpdateCondition.h:36
Aws::SimpleDB::Model::PutAttributesRequest::ItemNameHasBeenSet
bool ItemNameHasBeenSet() const
Definition: PutAttributesRequest.h:91
Aws::Http::URI
Definition: URI.h:32
Aws::SimpleDB::Model::PutAttributesRequest::ExpectedHasBeenSet
bool ExpectedHasBeenSet() const
Definition: PutAttributesRequest.h:177
SimpleDBRequest.h
Aws::SimpleDB::Model::PutAttributesRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: PutAttributesRequest.h:60
Aws::SimpleDB::Model::PutAttributesRequest::WithDomainName
PutAttributesRequest & WithDomainName(Aws::String &&value)
Definition: PutAttributesRequest.h:75
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SimpleDB::Model::PutAttributesRequest::SetItemName
void SetItemName(const Aws::String &value)
Definition: PutAttributesRequest.h:96
Aws::SimpleDB::Model::PutAttributesRequest::AddAttributes
PutAttributesRequest & AddAttributes(ReplaceableAttribute &&value)
Definition: PutAttributesRequest.h:162
Aws::SimpleDB::Model::PutAttributesRequest::WithExpected
PutAttributesRequest & WithExpected(const UpdateCondition &value)
Definition: PutAttributesRequest.h:198
Aws::SimpleDB::Model::PutAttributesRequest::SetItemName
void SetItemName(const char *value)
Definition: PutAttributesRequest.h:106
AWSVector.h
Aws::SimpleDB::Model::PutAttributesRequest::WithAttributes
PutAttributesRequest & WithAttributes(const Aws::Vector< ReplaceableAttribute > &value)
Definition: PutAttributesRequest.h:147
Aws::SimpleDB::Model::PutAttributesRequest::SetExpected
void SetExpected(const UpdateCondition &value)
Definition: PutAttributesRequest.h:184
Aws::SimpleDB::Model::PutAttributesRequest::GetItemName
const Aws::String & GetItemName() const
Definition: PutAttributesRequest.h:86
Aws::SimpleDB::Model::PutAttributesRequest::WithDomainName
PutAttributesRequest & WithDomainName(const Aws::String &value)
Definition: PutAttributesRequest.h:70
ReplaceableAttribute.h
Aws::SimpleDB::Model::PutAttributesRequest::WithItemName
PutAttributesRequest & WithItemName(const char *value)
Definition: PutAttributesRequest.h:121
Aws::SimpleDB::Model::PutAttributesRequest::PutAttributesRequest
PutAttributesRequest()
Aws::SimpleDB::Model::ReplaceableAttribute
Definition: ReplaceableAttribute.h:32
Aws::SimpleDB::Model::PutAttributesRequest::SetAttributes
void SetAttributes(const Aws::Vector< ReplaceableAttribute > &value)
Definition: PutAttributesRequest.h:137
Aws::SimpleDB::Model::PutAttributesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: PutAttributesRequest.h:132
Aws::SimpleDB::Model::PutAttributesRequest::GetExpected
const UpdateCondition & GetExpected() const
Definition: PutAttributesRequest.h:170
Aws::SimpleDB::Model::PutAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutAttributesRequest.h:33
Aws::SimpleDB::Model::PutAttributesRequest::SetExpected
void SetExpected(UpdateCondition &&value)
Definition: PutAttributesRequest.h:191
AWSString.h
Aws::SimpleDB::Model::PutAttributesRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: PutAttributesRequest.h:50
Aws::SimpleDB::Model::PutAttributesRequest::GetAttributes
const Aws::Vector< ReplaceableAttribute > & GetAttributes() const
Definition: PutAttributesRequest.h:127
Aws::SimpleDB::Model::PutAttributesRequest::SetAttributes
void SetAttributes(Aws::Vector< ReplaceableAttribute > &&value)
Definition: PutAttributesRequest.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::PutAttributesRequest
Definition: PutAttributesRequest.h:25
Aws::SimpleDB::Model::PutAttributesRequest::SetDomainName
void SetDomainName(const char *value)
Definition: PutAttributesRequest.h:65
Aws::SimpleDB::Model::PutAttributesRequest::WithItemName
PutAttributesRequest & WithItemName(const Aws::String &value)
Definition: PutAttributesRequest.h:111
AWS_SIMPLEDB_API
#define AWS_SIMPLEDB_API
Definition: SimpleDB_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SimpleDB_EXPORTS.h
UpdateCondition.h
Aws::SimpleDB::Model::PutAttributesRequest::WithAttributes
PutAttributesRequest & WithAttributes(Aws::Vector< ReplaceableAttribute > &&value)
Definition: PutAttributesRequest.h:152
Aws::SimpleDB::Model::PutAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SimpleDB::Model::PutAttributesRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: PutAttributesRequest.h:45
Aws::SimpleDB::Model::PutAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SimpleDB::Model::PutAttributesRequest::SetItemName
void SetItemName(Aws::String &&value)
Definition: PutAttributesRequest.h:101
Aws::SimpleDB::Model::PutAttributesRequest::WithDomainName
PutAttributesRequest & WithDomainName(const char *value)
Definition: PutAttributesRequest.h:80
Aws::SimpleDB::Model::PutAttributesRequest::WithExpected
PutAttributesRequest & WithExpected(UpdateCondition &&value)
Definition: PutAttributesRequest.h:205
Aws::SimpleDB::Model::PutAttributesRequest::AddAttributes
PutAttributesRequest & AddAttributes(const ReplaceableAttribute &value)
Definition: PutAttributesRequest.h:157
Aws::SimpleDB::SimpleDBRequest
Definition: SimpleDBRequest.h:17
Aws::SimpleDB::Model::PutAttributesRequest::WithItemName
PutAttributesRequest & WithItemName(Aws::String &&value)
Definition: PutAttributesRequest.h:116