AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 PutAttributesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
52 inline PutAttributesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
53 inline PutAttributesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
55
57
60 inline const Aws::String& GetItemName() const{ return m_itemName; }
61 inline bool ItemNameHasBeenSet() const { return m_itemNameHasBeenSet; }
62 inline void SetItemName(const Aws::String& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
63 inline void SetItemName(Aws::String&& value) { m_itemNameHasBeenSet = true; m_itemName = std::move(value); }
64 inline void SetItemName(const char* value) { m_itemNameHasBeenSet = true; m_itemName.assign(value); }
65 inline PutAttributesRequest& WithItemName(const Aws::String& value) { SetItemName(value); return *this;}
66 inline PutAttributesRequest& WithItemName(Aws::String&& value) { SetItemName(std::move(value)); return *this;}
67 inline PutAttributesRequest& WithItemName(const char* value) { SetItemName(value); return *this;}
69
71
74 inline const Aws::Vector<ReplaceableAttribute>& GetAttributes() const{ return m_attributes; }
75 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
76 inline void SetAttributes(const Aws::Vector<ReplaceableAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
77 inline void SetAttributes(Aws::Vector<ReplaceableAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
79 inline PutAttributesRequest& WithAttributes(Aws::Vector<ReplaceableAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
80 inline PutAttributesRequest& AddAttributes(const ReplaceableAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
81 inline PutAttributesRequest& AddAttributes(ReplaceableAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
83
85
90 inline const UpdateCondition& GetExpected() const{ return m_expected; }
91 inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
92 inline void SetExpected(const UpdateCondition& value) { m_expectedHasBeenSet = true; m_expected = value; }
93 inline void SetExpected(UpdateCondition&& value) { m_expectedHasBeenSet = true; m_expected = std::move(value); }
94 inline PutAttributesRequest& WithExpected(const UpdateCondition& value) { SetExpected(value); return *this;}
95 inline PutAttributesRequest& WithExpected(UpdateCondition&& value) { SetExpected(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_domainName;
100 bool m_domainNameHasBeenSet = false;
101
102 Aws::String m_itemName;
103 bool m_itemNameHasBeenSet = false;
104
106 bool m_attributesHasBeenSet = false;
107
108 UpdateCondition m_expected;
109 bool m_expectedHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SimpleDB
114} // namespace Aws
PutAttributesRequest & WithDomainName(const char *value)
PutAttributesRequest & WithAttributes(const Aws::Vector< ReplaceableAttribute > &value)
virtual const char * GetServiceRequestName() const override
PutAttributesRequest & WithAttributes(Aws::Vector< ReplaceableAttribute > &&value)
void SetExpected(const UpdateCondition &value)
PutAttributesRequest & WithItemName(Aws::String &&value)
PutAttributesRequest & WithExpected(const UpdateCondition &value)
void SetDomainName(const Aws::String &value)
PutAttributesRequest & WithExpected(UpdateCondition &&value)
PutAttributesRequest & WithDomainName(Aws::String &&value)
PutAttributesRequest & WithItemName(const char *value)
const UpdateCondition & GetExpected() const
PutAttributesRequest & AddAttributes(const ReplaceableAttribute &value)
PutAttributesRequest & WithItemName(const Aws::String &value)
void SetAttributes(Aws::Vector< ReplaceableAttribute > &&value)
const Aws::Vector< ReplaceableAttribute > & GetAttributes() const
PutAttributesRequest & WithDomainName(const Aws::String &value)
AWS_SIMPLEDB_API Aws::String SerializePayload() const override
void SetAttributes(const Aws::Vector< ReplaceableAttribute > &value)
AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutAttributesRequest & AddAttributes(ReplaceableAttribute &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector