AWS SDK for C++  0.14.3
AWS SDK for C++
DeletableItem.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace SimpleDB
32 {
33 namespace Model
34 {
35 
37  {
38  public:
39  DeletableItem();
41  DeletableItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
49 
50  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 
52 
53  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
54 
55 
56  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 
58 
59  inline DeletableItem& WithName(const Aws::String& value) { SetName(value); return *this;}
60 
61 
62  inline DeletableItem& WithName(Aws::String&& value) { SetName(value); return *this;}
63 
64 
65  inline DeletableItem& WithName(const char* value) { SetName(value); return *this;}
66 
67 
68  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
69 
70 
71  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
72 
73 
74  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = value; }
75 
76 
77  inline DeletableItem& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
78 
79 
80  inline DeletableItem& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(value); return *this;}
81 
82 
83  inline DeletableItem& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
84 
85 
86  inline DeletableItem& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
87 
88  private:
89  Aws::String m_name;
90  bool m_nameHasBeenSet;
91  Aws::Vector<Attribute> m_attributes;
92  bool m_attributesHasBeenSet;
93  };
94 
95 } // namespace Model
96 } // namespace SimpleDB
97 } // namespace Aws
void SetName(const char *value)
Definition: DeletableItem.h:56
DeletableItem & WithName(const char *value)
Definition: DeletableItem.h:65
DeletableItem & WithName(const Aws::String &value)
Definition: DeletableItem.h:59
const Aws::String & GetName() const
Definition: DeletableItem.h:47
DeletableItem & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: DeletableItem.h:77
DeletableItem & AddAttributes(const Attribute &value)
Definition: DeletableItem.h:83
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: DeletableItem.h:74
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: DeletableItem.h:71
DeletableItem & AddAttributes(Attribute &&value)
Definition: DeletableItem.h:86
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetName(Aws::String &&value)
Definition: DeletableItem.h:53
#define AWS_SIMPLEDB_API
const Aws::Vector< Attribute > & GetAttributes() const
Definition: DeletableItem.h:68
DeletableItem & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: DeletableItem.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetName(const Aws::String &value)
Definition: DeletableItem.h:50
DeletableItem & WithName(Aws::String &&value)
Definition: DeletableItem.h:62
JSON (JavaScript Object Notation).