AWS SDK for C++  0.14.3
AWS SDK for C++
ChangeBatch.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace Route53
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  ChangeBatch();
43  ChangeBatch(const Aws::Utils::Xml::XmlNode& xmlNode);
44  ChangeBatch& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47 
52  inline const Aws::String& GetComment() const{ return m_comment; }
53 
58  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
59 
64  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
65 
70  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
71 
76  inline ChangeBatch& WithComment(const Aws::String& value) { SetComment(value); return *this;}
77 
82  inline ChangeBatch& WithComment(Aws::String&& value) { SetComment(value); return *this;}
83 
88  inline ChangeBatch& WithComment(const char* value) { SetComment(value); return *this;}
89 
94  inline const Aws::Vector<Change>& GetChanges() const{ return m_changes; }
95 
100  inline void SetChanges(const Aws::Vector<Change>& value) { m_changesHasBeenSet = true; m_changes = value; }
101 
106  inline void SetChanges(Aws::Vector<Change>&& value) { m_changesHasBeenSet = true; m_changes = value; }
107 
112  inline ChangeBatch& WithChanges(const Aws::Vector<Change>& value) { SetChanges(value); return *this;}
113 
118  inline ChangeBatch& WithChanges(Aws::Vector<Change>&& value) { SetChanges(value); return *this;}
119 
124  inline ChangeBatch& AddChanges(const Change& value) { m_changesHasBeenSet = true; m_changes.push_back(value); return *this; }
125 
130  inline ChangeBatch& AddChanges(Change&& value) { m_changesHasBeenSet = true; m_changes.push_back(value); return *this; }
131 
132  private:
133  Aws::String m_comment;
134  bool m_commentHasBeenSet;
135  Aws::Vector<Change> m_changes;
136  bool m_changesHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace Route53
141 } // namespace Aws
ChangeBatch & WithComment(Aws::String &&value)
Definition: ChangeBatch.h:82
void SetChanges(Aws::Vector< Change > &&value)
Definition: ChangeBatch.h:106
void SetComment(Aws::String &&value)
Definition: ChangeBatch.h:64
ChangeBatch & WithChanges(const Aws::Vector< Change > &value)
Definition: ChangeBatch.h:112
ChangeBatch & WithComment(const char *value)
Definition: ChangeBatch.h:88
void SetComment(const char *value)
Definition: ChangeBatch.h:70
ChangeBatch & AddChanges(Change &&value)
Definition: ChangeBatch.h:130
const Aws::Vector< Change > & GetChanges() const
Definition: ChangeBatch.h:94
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ChangeBatch & WithComment(const Aws::String &value)
Definition: ChangeBatch.h:76
ChangeBatch & AddChanges(const Change &value)
Definition: ChangeBatch.h:124
void SetComment(const Aws::String &value)
Definition: ChangeBatch.h:58
ChangeBatch & WithChanges(Aws::Vector< Change > &&value)
Definition: ChangeBatch.h:118
#define AWS_ROUTE53_API
void SetChanges(const Aws::Vector< Change > &value)
Definition: ChangeBatch.h:100
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetComment() const
Definition: ChangeBatch.h:52
JSON (JavaScript Object Notation).