AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename DomainNameT = Aws::String>
49 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
50 template<typename DomainNameT = Aws::String>
51 DeleteAttributesRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetItemName() const { return m_itemName; }
60 inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
61 template<typename ItemNameT = Aws::String>
62 void SetItemName(ItemNameT&& value) { m_itemNameHasBeenSet = true; m_itemName = std::forward<ItemNameT>(value); }
63 template<typename ItemNameT = Aws::String>
64 DeleteAttributesRequest& WithItemName(ItemNameT&& value) { SetItemName(std::forward<ItemNameT>(value)); return *this;}
66
68
72 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
73 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
74 template<typename AttributesT = Aws::Vector<Attribute>>
75 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
76 template<typename AttributesT = Aws::Vector<Attribute>>
77 DeleteAttributesRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
78 template<typename AttributesT = Attribute>
79 DeleteAttributesRequest& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
81
83
88 inline const UpdateCondition& GetExpected() const { return m_expected; }
89 inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
90 template<typename ExpectedT = UpdateCondition>
91 void SetExpected(ExpectedT&& value) { m_expectedHasBeenSet = true; m_expected = std::forward<ExpectedT>(value); }
92 template<typename ExpectedT = UpdateCondition>
93 DeleteAttributesRequest& WithExpected(ExpectedT&& value) { SetExpected(std::forward<ExpectedT>(value)); return *this;}
95 private:
96
97 Aws::String m_domainName;
98 bool m_domainNameHasBeenSet = false;
99
100 Aws::String m_itemName;
101 bool m_itemNameHasBeenSet = false;
102
103 Aws::Vector<Attribute> m_attributes;
104 bool m_attributesHasBeenSet = false;
105
106 UpdateCondition m_expected;
107 bool m_expectedHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace SimpleDB
112} // 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