AWS SDK for C++  0.12.9
AWS SDK for C++
DBSnapshotAttributesResult.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>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace RDS
32 {
33 namespace Model
34 {
35 
44  {
45  public:
48  DBSnapshotAttributesResult& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49 
50  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51  void OutputToStream(Aws::OStream& oStream, const char* location) const;
52 
56  inline const Aws::String& GetDBSnapshotIdentifier() const{ return m_dBSnapshotIdentifier; }
57 
61  inline void SetDBSnapshotIdentifier(const Aws::String& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
62 
66  inline void SetDBSnapshotIdentifier(Aws::String&& value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier = value; }
67 
71  inline void SetDBSnapshotIdentifier(const char* value) { m_dBSnapshotIdentifierHasBeenSet = true; m_dBSnapshotIdentifier.assign(value); }
72 
76  inline DBSnapshotAttributesResult& WithDBSnapshotIdentifier(const Aws::String& value) { SetDBSnapshotIdentifier(value); return *this;}
77 
81  inline DBSnapshotAttributesResult& WithDBSnapshotIdentifier(Aws::String&& value) { SetDBSnapshotIdentifier(value); return *this;}
82 
86  inline DBSnapshotAttributesResult& WithDBSnapshotIdentifier(const char* value) { SetDBSnapshotIdentifier(value); return *this;}
87 
91  inline const Aws::Vector<DBSnapshotAttribute>& GetDBSnapshotAttributes() const{ return m_dBSnapshotAttributes; }
92 
96  inline void SetDBSnapshotAttributes(const Aws::Vector<DBSnapshotAttribute>& value) { m_dBSnapshotAttributesHasBeenSet = true; m_dBSnapshotAttributes = value; }
97 
101  inline void SetDBSnapshotAttributes(Aws::Vector<DBSnapshotAttribute>&& value) { m_dBSnapshotAttributesHasBeenSet = true; m_dBSnapshotAttributes = value; }
102 
106  inline DBSnapshotAttributesResult& WithDBSnapshotAttributes(const Aws::Vector<DBSnapshotAttribute>& value) { SetDBSnapshotAttributes(value); return *this;}
107 
111  inline DBSnapshotAttributesResult& WithDBSnapshotAttributes(Aws::Vector<DBSnapshotAttribute>&& value) { SetDBSnapshotAttributes(value); return *this;}
112 
116  inline DBSnapshotAttributesResult& AddDBSnapshotAttributes(const DBSnapshotAttribute& value) { m_dBSnapshotAttributesHasBeenSet = true; m_dBSnapshotAttributes.push_back(value); return *this; }
117 
121  inline DBSnapshotAttributesResult& AddDBSnapshotAttributes(DBSnapshotAttribute&& value) { m_dBSnapshotAttributesHasBeenSet = true; m_dBSnapshotAttributes.push_back(value); return *this; }
122 
123  private:
124  Aws::String m_dBSnapshotIdentifier;
125  bool m_dBSnapshotIdentifierHasBeenSet;
126  Aws::Vector<DBSnapshotAttribute> m_dBSnapshotAttributes;
127  bool m_dBSnapshotAttributesHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace RDS
132 } // namespace Aws
void SetDBSnapshotIdentifier(const Aws::String &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:34
DBSnapshotAttributesResult & WithDBSnapshotAttributes(const Aws::Vector< DBSnapshotAttribute > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DBSnapshotAttributesResult & AddDBSnapshotAttributes(DBSnapshotAttribute &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::Vector< DBSnapshotAttribute > & GetDBSnapshotAttributes() const
DBSnapshotAttributesResult & WithDBSnapshotIdentifier(const Aws::String &value)
void SetDBSnapshotAttributes(const Aws::Vector< DBSnapshotAttribute > &value)
DBSnapshotAttributesResult & AddDBSnapshotAttributes(const DBSnapshotAttribute &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DBSnapshotAttributesResult & WithDBSnapshotIdentifier(Aws::String &&value)
DBSnapshotAttributesResult & WithDBSnapshotAttributes(Aws::Vector< DBSnapshotAttribute > &&value)
DBSnapshotAttributesResult & WithDBSnapshotIdentifier(const char *value)
JSON (JavaScript Object Notation).
void SetDBSnapshotAttributes(Aws::Vector< DBSnapshotAttribute > &&value)