AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteAttributesRequest.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 "DeleteAttributes"; }
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 DeleteAttributesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
71 
75  inline DeleteAttributesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
76 
80  inline DeleteAttributesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
81 
82 
87  inline const Aws::String& GetItemName() const{ return m_itemName; }
88 
93  inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
94 
99  inline void SetItemName(const Aws::String& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
100 
105  inline void SetItemName(Aws::String&& value) { m_itemNameHasBeenSet = true; m_itemName = std::move(value); }
106 
111  inline void SetItemName(const char* value) { m_itemNameHasBeenSet = true; m_itemName.assign(value); }
112 
117  inline DeleteAttributesRequest& WithItemName(const Aws::String& value) { SetItemName(value); return *this;}
118 
123  inline DeleteAttributesRequest& WithItemName(Aws::String&& value) { SetItemName(std::move(value)); return *this;}
124 
129  inline DeleteAttributesRequest& WithItemName(const char* value) { SetItemName(value); return *this;}
130 
131 
136  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
137 
142  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
143 
148  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
149 
154  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
155 
160  inline DeleteAttributesRequest& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
161 
166  inline DeleteAttributesRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
167 
172  inline DeleteAttributesRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
173 
178  inline DeleteAttributesRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
179 
180 
186  inline const UpdateCondition& GetExpected() const{ return m_expected; }
187 
193  inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
194 
200  inline void SetExpected(const UpdateCondition& value) { m_expectedHasBeenSet = true; m_expected = value; }
201 
207  inline void SetExpected(UpdateCondition&& value) { m_expectedHasBeenSet = true; m_expected = std::move(value); }
208 
214  inline DeleteAttributesRequest& WithExpected(const UpdateCondition& value) { SetExpected(value); return *this;}
215 
221  inline DeleteAttributesRequest& WithExpected(UpdateCondition&& value) { SetExpected(std::move(value)); return *this;}
222 
223  private:
224 
225  Aws::String m_domainName;
226  bool m_domainNameHasBeenSet;
227 
228  Aws::String m_itemName;
229  bool m_itemNameHasBeenSet;
230 
231  Aws::Vector<Attribute> m_attributes;
232  bool m_attributesHasBeenSet;
233 
234  UpdateCondition m_expected;
235  bool m_expectedHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace SimpleDB
240 } // namespace Aws
Aws::SimpleDB::Model::DeleteAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SimpleDB::Model::UpdateCondition
Definition: UpdateCondition.h:36
Aws::Http::URI
Definition: URI.h:32
Aws::SimpleDB::Model::DeleteAttributesRequest::WithAttributes
DeleteAttributesRequest & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: DeleteAttributesRequest.h:160
Aws::SimpleDB::Model::DeleteAttributesRequest::GetItemName
const Aws::String & GetItemName() const
Definition: DeleteAttributesRequest.h:87
Aws::SimpleDB::Model::DeleteAttributesRequest::SetDomainName
void SetDomainName(const char *value)
Definition: DeleteAttributesRequest.h:65
SimpleDBRequest.h
Aws::SimpleDB::Model::Attribute
Definition: Attribute.h:32
Aws::SimpleDB::Model::DeleteAttributesRequest::WithDomainName
DeleteAttributesRequest & WithDomainName(const char *value)
Definition: DeleteAttributesRequest.h:80
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SimpleDB::Model::DeleteAttributesRequest::AddAttributes
DeleteAttributesRequest & AddAttributes(const Attribute &value)
Definition: DeleteAttributesRequest.h:172
Aws::SimpleDB::Model::DeleteAttributesRequest::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: DeleteAttributesRequest.h:154
AWSVector.h
Aws::SimpleDB::Model::DeleteAttributesRequest::ExpectedHasBeenSet
bool ExpectedHasBeenSet() const
Definition: DeleteAttributesRequest.h:193
Aws::SimpleDB::Model::DeleteAttributesRequest
Definition: DeleteAttributesRequest.h:25
Aws::SimpleDB::Model::DeleteAttributesRequest::WithItemName
DeleteAttributesRequest & WithItemName(const Aws::String &value)
Definition: DeleteAttributesRequest.h:117
Aws::SimpleDB::Model::DeleteAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteAttributesRequest.h:33
Aws::SimpleDB::Model::DeleteAttributesRequest::SetExpected
void SetExpected(UpdateCondition &&value)
Definition: DeleteAttributesRequest.h:207
Aws::SimpleDB::Model::DeleteAttributesRequest::SetItemName
void SetItemName(Aws::String &&value)
Definition: DeleteAttributesRequest.h:105
Attribute.h
Aws::SimpleDB::Model::DeleteAttributesRequest::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: DeleteAttributesRequest.h:148
Aws::SimpleDB::Model::DeleteAttributesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: DeleteAttributesRequest.h:142
AWSString.h
Aws::SimpleDB::Model::DeleteAttributesRequest::GetExpected
const UpdateCondition & GetExpected() const
Definition: DeleteAttributesRequest.h:186
Aws::SimpleDB::Model::DeleteAttributesRequest::SetItemName
void SetItemName(const char *value)
Definition: DeleteAttributesRequest.h:111
Aws::SimpleDB::Model::DeleteAttributesRequest::WithDomainName
DeleteAttributesRequest & WithDomainName(const Aws::String &value)
Definition: DeleteAttributesRequest.h:70
Aws::SimpleDB::Model::DeleteAttributesRequest::WithDomainName
DeleteAttributesRequest & WithDomainName(Aws::String &&value)
Definition: DeleteAttributesRequest.h:75
Aws::SimpleDB::Model::DeleteAttributesRequest::WithItemName
DeleteAttributesRequest & WithItemName(Aws::String &&value)
Definition: DeleteAttributesRequest.h:123
Aws::SimpleDB::Model::DeleteAttributesRequest::WithExpected
DeleteAttributesRequest & WithExpected(UpdateCondition &&value)
Definition: DeleteAttributesRequest.h:221
Aws::SimpleDB::Model::DeleteAttributesRequest::AddAttributes
DeleteAttributesRequest & AddAttributes(Attribute &&value)
Definition: DeleteAttributesRequest.h:178
Aws::SimpleDB::Model::DeleteAttributesRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: DeleteAttributesRequest.h:45
Aws::SimpleDB::Model::DeleteAttributesRequest::WithAttributes
DeleteAttributesRequest & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: DeleteAttributesRequest.h:166
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::DeleteAttributesRequest::SetExpected
void SetExpected(const UpdateCondition &value)
Definition: DeleteAttributesRequest.h:200
Aws::SimpleDB::Model::DeleteAttributesRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: DeleteAttributesRequest.h:60
Aws::SimpleDB::Model::DeleteAttributesRequest::SetItemName
void SetItemName(const Aws::String &value)
Definition: DeleteAttributesRequest.h:99
Aws::SimpleDB::Model::DeleteAttributesRequest::ItemNameHasBeenSet
bool ItemNameHasBeenSet() const
Definition: DeleteAttributesRequest.h:93
Aws::SimpleDB::Model::DeleteAttributesRequest::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: DeleteAttributesRequest.h:136
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::DeleteAttributesRequest::WithItemName
DeleteAttributesRequest & WithItemName(const char *value)
Definition: DeleteAttributesRequest.h:129
Aws::SimpleDB::Model::DeleteAttributesRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: DeleteAttributesRequest.h:50
Aws::SimpleDB::Model::DeleteAttributesRequest::DeleteAttributesRequest
DeleteAttributesRequest()
Aws::SimpleDB::Model::DeleteAttributesRequest::WithExpected
DeleteAttributesRequest & WithExpected(const UpdateCondition &value)
Definition: DeleteAttributesRequest.h:214
Aws::SimpleDB::Model::DeleteAttributesRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: DeleteAttributesRequest.h:55
Aws::SimpleDB::Model::DeleteAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SimpleDB::SimpleDBRequest
Definition: SimpleDBRequest.h:17