AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteAttributesRequest.h
1
6#pragma once
7#include <aws/sdb/SimpleDB_EXPORTS.h>
8#include <aws/sdb/SimpleDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sdb/model/UpdateCondition.h>
12#include <aws/sdb/model/Attribute.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SimpleDB
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SIMPLEDB_API DeleteAttributesRequest();
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_SIMPLEDB_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetDomainName() const{ return m_domainName; }
47 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
48 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
49 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
50 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
51 inline DeleteAttributesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
52 inline DeleteAttributesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
53 inline DeleteAttributesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
55
57
61 inline const Aws::String& GetItemName() const{ return m_itemName; }
62 inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
63 inline void SetItemName(const Aws::String& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
64 inline void SetItemName(Aws::String&& value) { m_itemNameHasBeenSet = true; m_itemName = std::move(value); }
65 inline void SetItemName(const char* value) { m_itemNameHasBeenSet = true; m_itemName.assign(value); }
66 inline DeleteAttributesRequest& WithItemName(const Aws::String& value) { SetItemName(value); return *this;}
67 inline DeleteAttributesRequest& WithItemName(Aws::String&& value) { SetItemName(std::move(value)); return *this;}
68 inline DeleteAttributesRequest& WithItemName(const char* value) { SetItemName(value); return *this;}
70
72
76 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
77 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
78 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
79 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
80 inline DeleteAttributesRequest& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
81 inline DeleteAttributesRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
82 inline DeleteAttributesRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
83 inline DeleteAttributesRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
85
87
92 inline const UpdateCondition& GetExpected() const{ return m_expected; }
93 inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
94 inline void SetExpected(const UpdateCondition& value) { m_expectedHasBeenSet = true; m_expected = value; }
95 inline void SetExpected(UpdateCondition&& value) { m_expectedHasBeenSet = true; m_expected = std::move(value); }
96 inline DeleteAttributesRequest& WithExpected(const UpdateCondition& value) { SetExpected(value); return *this;}
97 inline DeleteAttributesRequest& WithExpected(UpdateCondition&& value) { SetExpected(std::move(value)); return *this;}
99 private:
100
101 Aws::String m_domainName;
102 bool m_domainNameHasBeenSet = false;
103
104 Aws::String m_itemName;
105 bool m_itemNameHasBeenSet = false;
106
107 Aws::Vector<Attribute> m_attributes;
108 bool m_attributesHasBeenSet = false;
109
110 UpdateCondition m_expected;
111 bool m_expectedHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace SimpleDB
116} // namespace Aws
DeleteAttributesRequest & WithDomainName(Aws::String &&value)
void SetAttributes(Aws::Vector< Attribute > &&value)
DeleteAttributesRequest & WithAttributes(const Aws::Vector< Attribute > &value)
virtual const char * GetServiceRequestName() const override
DeleteAttributesRequest & WithDomainName(const char *value)
DeleteAttributesRequest & WithAttributes(Aws::Vector< Attribute > &&value)
DeleteAttributesRequest & WithDomainName(const Aws::String &value)
const Aws::Vector< Attribute > & GetAttributes() const
DeleteAttributesRequest & WithExpected(const UpdateCondition &value)
DeleteAttributesRequest & WithItemName(const Aws::String &value)
DeleteAttributesRequest & WithExpected(UpdateCondition &&value)
void SetAttributes(const Aws::Vector< Attribute > &value)
DeleteAttributesRequest & AddAttributes(const Attribute &value)
DeleteAttributesRequest & WithItemName(const char *value)
AWS_SIMPLEDB_API Aws::String SerializePayload() const override
DeleteAttributesRequest & WithItemName(Aws::String &&value)
AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteAttributesRequest & AddAttributes(Attribute &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector