AWS SDK for C++  0.12.9
AWS SDK for C++
PutAttributesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 
23 namespace Aws
24 {
25 namespace SimpleDB
26 {
27 namespace Model
28 {
29 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetDomainName() const{ return m_domainName; }
42 
46  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
47 
51  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
52 
56  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
57 
61  inline PutAttributesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
62 
66  inline PutAttributesRequest& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
67 
71  inline PutAttributesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
72 
76  inline const Aws::String& GetItemName() const{ return m_itemName; }
77 
81  inline void SetItemName(const Aws::String& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
82 
86  inline void SetItemName(Aws::String&& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
87 
91  inline void SetItemName(const char* value) { m_itemNameHasBeenSet = true; m_itemName.assign(value); }
92 
96  inline PutAttributesRequest& WithItemName(const Aws::String& value) { SetItemName(value); return *this;}
97 
101  inline PutAttributesRequest& WithItemName(Aws::String&& value) { SetItemName(value); return *this;}
102 
106  inline PutAttributesRequest& WithItemName(const char* value) { SetItemName(value); return *this;}
107 
111  inline const Aws::Vector<ReplaceableAttribute>& GetAttributes() const{ return m_attributes; }
112 
116  inline void SetAttributes(const Aws::Vector<ReplaceableAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
117 
121  inline void SetAttributes(Aws::Vector<ReplaceableAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
122 
126  inline PutAttributesRequest& WithAttributes(const Aws::Vector<ReplaceableAttribute>& value) { SetAttributes(value); return *this;}
127 
131  inline PutAttributesRequest& WithAttributes(Aws::Vector<ReplaceableAttribute>&& value) { SetAttributes(value); return *this;}
132 
136  inline PutAttributesRequest& AddAttributes(const ReplaceableAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
137 
141  inline PutAttributesRequest& AddAttributes(ReplaceableAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
142 
148  inline const UpdateCondition& GetExpected() const{ return m_expected; }
149 
155  inline void SetExpected(const UpdateCondition& value) { m_expectedHasBeenSet = true; m_expected = value; }
156 
162  inline void SetExpected(UpdateCondition&& value) { m_expectedHasBeenSet = true; m_expected = value; }
163 
169  inline PutAttributesRequest& WithExpected(const UpdateCondition& value) { SetExpected(value); return *this;}
170 
176  inline PutAttributesRequest& WithExpected(UpdateCondition&& value) { SetExpected(value); return *this;}
177 
178  private:
179  Aws::String m_domainName;
180  bool m_domainNameHasBeenSet;
181  Aws::String m_itemName;
182  bool m_itemNameHasBeenSet;
184  bool m_attributesHasBeenSet;
185  UpdateCondition m_expected;
186  bool m_expectedHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace SimpleDB
191 } // namespace Aws
PutAttributesRequest & WithDomainName(const Aws::String &value)
PutAttributesRequest & WithExpected(UpdateCondition &&value)
PutAttributesRequest & WithExpected(const UpdateCondition &value)
void SetAttributes(const Aws::Vector< ReplaceableAttribute > &value)
PutAttributesRequest & WithAttributes(const Aws::Vector< ReplaceableAttribute > &value)
void SetItemName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetAttributes(Aws::Vector< ReplaceableAttribute > &&value)
PutAttributesRequest & AddAttributes(ReplaceableAttribute &&value)
void SetDomainName(const Aws::String &value)
PutAttributesRequest & WithDomainName(const char *value)
#define AWS_SIMPLEDB_API
PutAttributesRequest & WithItemName(const Aws::String &value)
PutAttributesRequest & WithItemName(Aws::String &&value)
void SetExpected(const UpdateCondition &value)
const UpdateCondition & GetExpected() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutAttributesRequest & WithDomainName(Aws::String &&value)
PutAttributesRequest & WithItemName(const char *value)
PutAttributesRequest & WithAttributes(Aws::Vector< ReplaceableAttribute > &&value)
PutAttributesRequest & AddAttributes(const ReplaceableAttribute &value)
JSON (JavaScript Object Notation).
const Aws::Vector< ReplaceableAttribute > & GetAttributes() const