AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PutAttributesRequest.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/ReplaceableAttribute.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SimpleDB
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SIMPLEDB_API PutAttributesRequest() = 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 "PutAttributes"; }
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 PutAttributesRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetItemName() const { return m_itemName; }
59 inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
60 template<typename ItemNameT = Aws::String>
61 void SetItemName(ItemNameT&& value) { m_itemNameHasBeenSet = true; m_itemName = std::forward<ItemNameT>(value); }
62 template<typename ItemNameT = Aws::String>
63 PutAttributesRequest& WithItemName(ItemNameT&& value) { SetItemName(std::forward<ItemNameT>(value)); return *this;}
65
67
70 inline const Aws::Vector<ReplaceableAttribute>& GetAttributes() const { return m_attributes; }
71 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
72 template<typename AttributesT = Aws::Vector<ReplaceableAttribute>>
73 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
74 template<typename AttributesT = Aws::Vector<ReplaceableAttribute>>
75 PutAttributesRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
76 template<typename AttributesT = ReplaceableAttribute>
77 PutAttributesRequest& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
79
81
86 inline const UpdateCondition& GetExpected() const { return m_expected; }
87 inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
88 template<typename ExpectedT = UpdateCondition>
89 void SetExpected(ExpectedT&& value) { m_expectedHasBeenSet = true; m_expected = std::forward<ExpectedT>(value); }
90 template<typename ExpectedT = UpdateCondition>
91 PutAttributesRequest& WithExpected(ExpectedT&& value) { SetExpected(std::forward<ExpectedT>(value)); return *this;}
93 private:
94
95 Aws::String m_domainName;
96 bool m_domainNameHasBeenSet = false;
97
98 Aws::String m_itemName;
99 bool m_itemNameHasBeenSet = false;
100
102 bool m_attributesHasBeenSet = false;
103
104 UpdateCondition m_expected;
105 bool m_expectedHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace SimpleDB
110} // namespace Aws
virtual const char * GetServiceRequestName() const override
PutAttributesRequest & WithItemName(ItemNameT &&value)
PutAttributesRequest & WithAttributes(AttributesT &&value)
const UpdateCondition & GetExpected() const
const Aws::Vector< ReplaceableAttribute > & GetAttributes() const
AWS_SIMPLEDB_API Aws::String SerializePayload() const override
PutAttributesRequest & WithExpected(ExpectedT &&value)
PutAttributesRequest & WithDomainName(DomainNameT &&value)
AWS_SIMPLEDB_API PutAttributesRequest()=default
AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutAttributesRequest & AddAttributes(AttributesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector