AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeleteAttributesRequest.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/Attribute.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 DeleteAttributesRequest() = 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 "DeleteAttributes"; }
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>
51 SetDomainName(std::forward<DomainNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetItemName() const { return m_itemName; }
62 inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
63 template <typename ItemNameT = Aws::String>
64 void SetItemName(ItemNameT&& value) {
65 m_itemNameHasBeenSet = true;
66 m_itemName = std::forward<ItemNameT>(value);
67 }
68 template <typename ItemNameT = Aws::String>
70 SetItemName(std::forward<ItemNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
81 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
82 template <typename AttributesT = Aws::Vector<Attribute>>
83 void SetAttributes(AttributesT&& value) {
84 m_attributesHasBeenSet = true;
85 m_attributes = std::forward<AttributesT>(value);
86 }
87 template <typename AttributesT = Aws::Vector<Attribute>>
89 SetAttributes(std::forward<AttributesT>(value));
90 return *this;
91 }
92 template <typename AttributesT = Attribute>
93 DeleteAttributesRequest& AddAttributes(AttributesT&& value) {
94 m_attributesHasBeenSet = true;
95 m_attributes.emplace_back(std::forward<AttributesT>(value));
96 return *this;
97 }
99
101
106 inline const UpdateCondition& GetExpected() const { return m_expected; }
107 inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
108 template <typename ExpectedT = UpdateCondition>
109 void SetExpected(ExpectedT&& value) {
110 m_expectedHasBeenSet = true;
111 m_expected = std::forward<ExpectedT>(value);
112 }
113 template <typename ExpectedT = UpdateCondition>
115 SetExpected(std::forward<ExpectedT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_domainName;
121
122 Aws::String m_itemName;
123
124 Aws::Vector<Attribute> m_attributes;
125
126 UpdateCondition m_expected;
127 bool m_domainNameHasBeenSet = false;
128 bool m_itemNameHasBeenSet = false;
129 bool m_attributesHasBeenSet = false;
130 bool m_expectedHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace SimpleDB
135} // namespace Aws
virtual const char * GetServiceRequestName() const override
DeleteAttributesRequest & AddAttributes(AttributesT &&value)
const Aws::Vector< Attribute > & GetAttributes() const
AWS_SIMPLEDB_API DeleteAttributesRequest()=default
DeleteAttributesRequest & WithDomainName(DomainNameT &&value)
DeleteAttributesRequest & WithItemName(ItemNameT &&value)
DeleteAttributesRequest & WithAttributes(AttributesT &&value)
AWS_SIMPLEDB_API Aws::String SerializePayload() const override
AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteAttributesRequest & WithExpected(ExpectedT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector