AWS SDK for C++  0.14.3
AWS SDK for C++
DBClusterSnapshotAttributesResult.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:
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 
57  inline const Aws::String& GetDBClusterSnapshotIdentifier() const{ return m_dBClusterSnapshotIdentifier; }
58 
63  inline void SetDBClusterSnapshotIdentifier(const Aws::String& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
64 
69  inline void SetDBClusterSnapshotIdentifier(Aws::String&& value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier = value; }
70 
75  inline void SetDBClusterSnapshotIdentifier(const char* value) { m_dBClusterSnapshotIdentifierHasBeenSet = true; m_dBClusterSnapshotIdentifier.assign(value); }
76 
81  inline DBClusterSnapshotAttributesResult& WithDBClusterSnapshotIdentifier(const Aws::String& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
82 
87  inline DBClusterSnapshotAttributesResult& WithDBClusterSnapshotIdentifier(Aws::String&& value) { SetDBClusterSnapshotIdentifier(value); return *this;}
88 
93  inline DBClusterSnapshotAttributesResult& WithDBClusterSnapshotIdentifier(const char* value) { SetDBClusterSnapshotIdentifier(value); return *this;}
94 
98  inline const Aws::Vector<DBClusterSnapshotAttribute>& GetDBClusterSnapshotAttributes() const{ return m_dBClusterSnapshotAttributes; }
99 
103  inline void SetDBClusterSnapshotAttributes(const Aws::Vector<DBClusterSnapshotAttribute>& value) { m_dBClusterSnapshotAttributesHasBeenSet = true; m_dBClusterSnapshotAttributes = value; }
104 
108  inline void SetDBClusterSnapshotAttributes(Aws::Vector<DBClusterSnapshotAttribute>&& value) { m_dBClusterSnapshotAttributesHasBeenSet = true; m_dBClusterSnapshotAttributes = value; }
109 
113  inline DBClusterSnapshotAttributesResult& WithDBClusterSnapshotAttributes(const Aws::Vector<DBClusterSnapshotAttribute>& value) { SetDBClusterSnapshotAttributes(value); return *this;}
114 
118  inline DBClusterSnapshotAttributesResult& WithDBClusterSnapshotAttributes(Aws::Vector<DBClusterSnapshotAttribute>&& value) { SetDBClusterSnapshotAttributes(value); return *this;}
119 
123  inline DBClusterSnapshotAttributesResult& AddDBClusterSnapshotAttributes(const DBClusterSnapshotAttribute& value) { m_dBClusterSnapshotAttributesHasBeenSet = true; m_dBClusterSnapshotAttributes.push_back(value); return *this; }
124 
128  inline DBClusterSnapshotAttributesResult& AddDBClusterSnapshotAttributes(DBClusterSnapshotAttribute&& value) { m_dBClusterSnapshotAttributesHasBeenSet = true; m_dBClusterSnapshotAttributes.push_back(value); return *this; }
129 
130  private:
131  Aws::String m_dBClusterSnapshotIdentifier;
132  bool m_dBClusterSnapshotIdentifierHasBeenSet;
133  Aws::Vector<DBClusterSnapshotAttribute> m_dBClusterSnapshotAttributes;
134  bool m_dBClusterSnapshotAttributesHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace RDS
139 } // namespace Aws
DBClusterSnapshotAttributesResult & AddDBClusterSnapshotAttributes(DBClusterSnapshotAttribute &&value)
void SetDBClusterSnapshotAttributes(Aws::Vector< DBClusterSnapshotAttribute > &&value)
DBClusterSnapshotAttributesResult & WithDBClusterSnapshotIdentifier(const char *value)
DBClusterSnapshotAttributesResult & WithDBClusterSnapshotIdentifier(const Aws::String &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DBClusterSnapshotAttributesResult & AddDBClusterSnapshotAttributes(const DBClusterSnapshotAttribute &value)
DBClusterSnapshotAttributesResult & WithDBClusterSnapshotAttributes(const Aws::Vector< DBClusterSnapshotAttribute > &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
DBClusterSnapshotAttributesResult & WithDBClusterSnapshotAttributes(Aws::Vector< DBClusterSnapshotAttribute > &&value)
void SetDBClusterSnapshotAttributes(const Aws::Vector< DBClusterSnapshotAttribute > &value)
DBClusterSnapshotAttributesResult & WithDBClusterSnapshotIdentifier(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< DBClusterSnapshotAttribute > & GetDBClusterSnapshotAttributes() const
JSON (JavaScript Object Notation).