AWS SDK for C++  1.9.107
AWS SDK for C++
BatchPutAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SimpleDB
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "BatchPutAttributes"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::String& GetDomainName() const{ return m_domainName; }
45 
49  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
50 
54  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
55 
59  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
60 
64  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
65 
69  inline BatchPutAttributesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
70 
74  inline BatchPutAttributesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
75 
79  inline BatchPutAttributesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
80 
81 
85  inline const Aws::Vector<ReplaceableItem>& GetItems() const{ return m_items; }
86 
90  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
91 
95  inline void SetItems(const Aws::Vector<ReplaceableItem>& value) { m_itemsHasBeenSet = true; m_items = value; }
96 
100  inline void SetItems(Aws::Vector<ReplaceableItem>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
101 
105  inline BatchPutAttributesRequest& WithItems(const Aws::Vector<ReplaceableItem>& value) { SetItems(value); return *this;}
106 
110  inline BatchPutAttributesRequest& WithItems(Aws::Vector<ReplaceableItem>&& value) { SetItems(std::move(value)); return *this;}
111 
115  inline BatchPutAttributesRequest& AddItems(const ReplaceableItem& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
116 
120  inline BatchPutAttributesRequest& AddItems(ReplaceableItem&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
121 
122  private:
123 
124  Aws::String m_domainName;
125  bool m_domainNameHasBeenSet;
126 
128  bool m_itemsHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace SimpleDB
133 } // namespace Aws
Aws::SimpleDB::Model::BatchPutAttributesRequest::AddItems
BatchPutAttributesRequest & AddItems(ReplaceableItem &&value)
Definition: BatchPutAttributesRequest.h:120
Aws::SimpleDB::Model::BatchPutAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchPutAttributesRequest.h:32
Aws::SimpleDB::Model::BatchPutAttributesRequest::WithDomainName
BatchPutAttributesRequest & WithDomainName(const Aws::String &value)
Definition: BatchPutAttributesRequest.h:69
Aws::Http::URI
Definition: URI.h:32
Aws::SimpleDB::Model::BatchPutAttributesRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: BatchPutAttributesRequest.h:44
Aws::SimpleDB::Model::BatchPutAttributesRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: BatchPutAttributesRequest.h:54
Aws::SimpleDB::Model::BatchPutAttributesRequest::WithItems
BatchPutAttributesRequest & WithItems(Aws::Vector< ReplaceableItem > &&value)
Definition: BatchPutAttributesRequest.h:110
SimpleDBRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SimpleDB::Model::BatchPutAttributesRequest::AddItems
BatchPutAttributesRequest & AddItems(const ReplaceableItem &value)
Definition: BatchPutAttributesRequest.h:115
Aws::SimpleDB::Model::BatchPutAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::SimpleDB::Model::BatchPutAttributesRequest::WithDomainName
BatchPutAttributesRequest & WithDomainName(Aws::String &&value)
Definition: BatchPutAttributesRequest.h:74
Aws::SimpleDB::Model::BatchPutAttributesRequest::GetItems
const Aws::Vector< ReplaceableItem > & GetItems() const
Definition: BatchPutAttributesRequest.h:85
Aws::SimpleDB::Model::BatchPutAttributesRequest::SetItems
void SetItems(const Aws::Vector< ReplaceableItem > &value)
Definition: BatchPutAttributesRequest.h:95
Aws::SimpleDB::Model::BatchPutAttributesRequest::WithItems
BatchPutAttributesRequest & WithItems(const Aws::Vector< ReplaceableItem > &value)
Definition: BatchPutAttributesRequest.h:105
AWSString.h
Aws::SimpleDB::Model::BatchPutAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SimpleDB::Model::ReplaceableItem
Definition: ReplaceableItem.h:34
Aws::SimpleDB::Model::BatchPutAttributesRequest::SetDomainName
void SetDomainName(const char *value)
Definition: BatchPutAttributesRequest.h:64
Aws::SimpleDB::Model::BatchPutAttributesRequest
Definition: BatchPutAttributesRequest.h:24
Aws
Definition: AccessManagementClient.h:15
Aws::SimpleDB::Model::BatchPutAttributesRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: BatchPutAttributesRequest.h:59
Aws::SimpleDB::Model::BatchPutAttributesRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: BatchPutAttributesRequest.h:49
ReplaceableItem.h
AWS_SIMPLEDB_API
#define AWS_SIMPLEDB_API
Definition: SimpleDB_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SimpleDB_EXPORTS.h
Aws::SimpleDB::Model::BatchPutAttributesRequest::BatchPutAttributesRequest
BatchPutAttributesRequest()
Aws::SimpleDB::Model::BatchPutAttributesRequest::WithDomainName
BatchPutAttributesRequest & WithDomainName(const char *value)
Definition: BatchPutAttributesRequest.h:79
Aws::SimpleDB::SimpleDBRequest
Definition: SimpleDBRequest.h:17
Aws::SimpleDB::Model::BatchPutAttributesRequest::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: BatchPutAttributesRequest.h:90
Aws::SimpleDB::Model::BatchPutAttributesRequest::SetItems
void SetItems(Aws::Vector< ReplaceableItem > &&value)
Definition: BatchPutAttributesRequest.h:100