AWS SDK for C++  0.14.3
AWS SDK for C++
DBSnapshotAttribute.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
16 #include <aws/rds/RDS_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace RDS
31 {
32 namespace Model
33 {
34 
42  {
43  public:
46  DBSnapshotAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
57  inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
58 
65  inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
66 
73  inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
74 
81  inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
82 
89  inline DBSnapshotAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
90 
97  inline DBSnapshotAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(value); return *this;}
98 
105  inline DBSnapshotAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
106 
115  inline const Aws::Vector<Aws::String>& GetAttributeValues() const{ return m_attributeValues; }
116 
125  inline void SetAttributeValues(const Aws::Vector<Aws::String>& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; }
126 
135  inline void SetAttributeValues(Aws::Vector<Aws::String>&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues = value; }
136 
145  inline DBSnapshotAttribute& WithAttributeValues(const Aws::Vector<Aws::String>& value) { SetAttributeValues(value); return *this;}
146 
155  inline DBSnapshotAttribute& WithAttributeValues(Aws::Vector<Aws::String>&& value) { SetAttributeValues(value); return *this;}
156 
165  inline DBSnapshotAttribute& AddAttributeValues(const Aws::String& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
166 
175  inline DBSnapshotAttribute& AddAttributeValues(Aws::String&& value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
176 
185  inline DBSnapshotAttribute& AddAttributeValues(const char* value) { m_attributeValuesHasBeenSet = true; m_attributeValues.push_back(value); return *this; }
186 
187  private:
188  Aws::String m_attributeName;
189  bool m_attributeNameHasBeenSet;
190  Aws::Vector<Aws::String> m_attributeValues;
191  bool m_attributeValuesHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace RDS
196 } // namespace Aws
DBSnapshotAttribute & AddAttributeValues(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
void SetAttributeValues(const Aws::Vector< Aws::String > &value)
void SetAttributeValues(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetAttributeName(Aws::String &&value)
DBSnapshotAttribute & WithAttributeName(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
DBSnapshotAttribute & WithAttributeName(const Aws::String &value)
DBSnapshotAttribute & WithAttributeName(const char *value)
DBSnapshotAttribute & AddAttributeValues(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetAttributeName(const Aws::String &value)
DBSnapshotAttribute & AddAttributeValues(const char *value)
DBSnapshotAttribute & WithAttributeValues(const Aws::Vector< Aws::String > &value)
void SetAttributeName(const char *value)
DBSnapshotAttribute & WithAttributeValues(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAttributeValues() const
JSON (JavaScript Object Notation).
const Aws::String & GetAttributeName() const