AWS SDK for C++  0.12.9
AWS SDK for C++
DeleteAttributesRequest.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 DeleteAttributesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
62 
66  inline DeleteAttributesRequest& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
67 
71  inline DeleteAttributesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
72 
77  inline const Aws::String& GetItemName() const{ return m_itemName; }
78 
83  inline void SetItemName(const Aws::String& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
84 
89  inline void SetItemName(Aws::String&& value) { m_itemNameHasBeenSet = true; m_itemName = value; }
90 
95  inline void SetItemName(const char* value) { m_itemNameHasBeenSet = true; m_itemName.assign(value); }
96 
101  inline DeleteAttributesRequest& WithItemName(const Aws::String& value) { SetItemName(value); return *this;}
102 
107  inline DeleteAttributesRequest& WithItemName(Aws::String&& value) { SetItemName(value); return *this;}
108 
113  inline DeleteAttributesRequest& WithItemName(const char* value) { SetItemName(value); return *this;}
114 
119  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
120 
125  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
126 
131  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
132 
137  inline DeleteAttributesRequest& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
138 
143  inline DeleteAttributesRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(value); return *this;}
144 
149  inline DeleteAttributesRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
150 
155  inline DeleteAttributesRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
156 
162  inline const UpdateCondition& GetExpected() const{ return m_expected; }
163 
169  inline void SetExpected(const UpdateCondition& value) { m_expectedHasBeenSet = true; m_expected = value; }
170 
176  inline void SetExpected(UpdateCondition&& value) { m_expectedHasBeenSet = true; m_expected = value; }
177 
183  inline DeleteAttributesRequest& WithExpected(const UpdateCondition& value) { SetExpected(value); return *this;}
184 
190  inline DeleteAttributesRequest& WithExpected(UpdateCondition&& value) { SetExpected(value); return *this;}
191 
192  private:
193  Aws::String m_domainName;
194  bool m_domainNameHasBeenSet;
195  Aws::String m_itemName;
196  bool m_itemNameHasBeenSet;
197  Aws::Vector<Attribute> m_attributes;
198  bool m_attributesHasBeenSet;
199  UpdateCondition m_expected;
200  bool m_expectedHasBeenSet;
201  };
202 
203 } // namespace Model
204 } // namespace SimpleDB
205 } // namespace Aws
const Aws::Vector< Attribute > & GetAttributes() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DeleteAttributesRequest & WithItemName(const Aws::String &value)
DeleteAttributesRequest & WithItemName(Aws::String &&value)
DeleteAttributesRequest & WithExpected(UpdateCondition &&value)
DeleteAttributesRequest & WithDomainName(const char *value)
void SetExpected(const UpdateCondition &value)
void SetAttributes(const Aws::Vector< Attribute > &value)
void SetAttributes(Aws::Vector< Attribute > &&value)
DeleteAttributesRequest & WithAttributes(Aws::Vector< Attribute > &&value)
DeleteAttributesRequest & WithDomainName(const Aws::String &value)
DeleteAttributesRequest & WithExpected(const UpdateCondition &value)
DeleteAttributesRequest & WithDomainName(Aws::String &&value)
#define AWS_SIMPLEDB_API
DeleteAttributesRequest & AddAttributes(Attribute &&value)
DeleteAttributesRequest & WithItemName(const char *value)
DeleteAttributesRequest & WithAttributes(const Aws::Vector< Attribute > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteAttributesRequest & AddAttributes(const Attribute &value)
JSON (JavaScript Object Notation).