AWS SDK for C++  0.12.9
AWS SDK for C++
ChangeBatchRecord.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
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace Route53
33 {
34 namespace Model
35 {
36 
41  {
42  public:
45  ChangeBatchRecord& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48 
53  inline const Aws::String& GetId() const{ return m_id; }
54 
59  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 
65  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
66 
71  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
72 
77  inline ChangeBatchRecord& WithId(const Aws::String& value) { SetId(value); return *this;}
78 
83  inline ChangeBatchRecord& WithId(Aws::String&& value) { SetId(value); return *this;}
84 
89  inline ChangeBatchRecord& WithId(const char* value) { SetId(value); return *this;}
90 
97  inline const Aws::Utils::DateTime& GetSubmittedAt() const{ return m_submittedAt; }
98 
105  inline void SetSubmittedAt(const Aws::Utils::DateTime& value) { m_submittedAtHasBeenSet = true; m_submittedAt = value; }
106 
113  inline void SetSubmittedAt(Aws::Utils::DateTime&& value) { m_submittedAtHasBeenSet = true; m_submittedAt = value; }
114 
121  inline ChangeBatchRecord& WithSubmittedAt(const Aws::Utils::DateTime& value) { SetSubmittedAt(value); return *this;}
122 
129  inline ChangeBatchRecord& WithSubmittedAt(Aws::Utils::DateTime&& value) { SetSubmittedAt(value); return *this;}
130 
136  inline const ChangeStatus& GetStatus() const{ return m_status; }
137 
143  inline void SetStatus(const ChangeStatus& value) { m_statusHasBeenSet = true; m_status = value; }
144 
150  inline void SetStatus(ChangeStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
151 
157  inline ChangeBatchRecord& WithStatus(const ChangeStatus& value) { SetStatus(value); return *this;}
158 
164  inline ChangeBatchRecord& WithStatus(ChangeStatus&& value) { SetStatus(value); return *this;}
165 
171  inline const Aws::String& GetComment() const{ return m_comment; }
172 
178  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
179 
185  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
186 
192  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
193 
199  inline ChangeBatchRecord& WithComment(const Aws::String& value) { SetComment(value); return *this;}
200 
206  inline ChangeBatchRecord& WithComment(Aws::String&& value) { SetComment(value); return *this;}
207 
213  inline ChangeBatchRecord& WithComment(const char* value) { SetComment(value); return *this;}
214 
218  inline const Aws::String& GetSubmitter() const{ return m_submitter; }
219 
223  inline void SetSubmitter(const Aws::String& value) { m_submitterHasBeenSet = true; m_submitter = value; }
224 
228  inline void SetSubmitter(Aws::String&& value) { m_submitterHasBeenSet = true; m_submitter = value; }
229 
233  inline void SetSubmitter(const char* value) { m_submitterHasBeenSet = true; m_submitter.assign(value); }
234 
238  inline ChangeBatchRecord& WithSubmitter(const Aws::String& value) { SetSubmitter(value); return *this;}
239 
243  inline ChangeBatchRecord& WithSubmitter(Aws::String&& value) { SetSubmitter(value); return *this;}
244 
248  inline ChangeBatchRecord& WithSubmitter(const char* value) { SetSubmitter(value); return *this;}
249 
253  inline const Aws::Vector<Change>& GetChanges() const{ return m_changes; }
254 
258  inline void SetChanges(const Aws::Vector<Change>& value) { m_changesHasBeenSet = true; m_changes = value; }
259 
263  inline void SetChanges(Aws::Vector<Change>&& value) { m_changesHasBeenSet = true; m_changes = value; }
264 
268  inline ChangeBatchRecord& WithChanges(const Aws::Vector<Change>& value) { SetChanges(value); return *this;}
269 
273  inline ChangeBatchRecord& WithChanges(Aws::Vector<Change>&& value) { SetChanges(value); return *this;}
274 
278  inline ChangeBatchRecord& AddChanges(const Change& value) { m_changesHasBeenSet = true; m_changes.push_back(value); return *this; }
279 
283  inline ChangeBatchRecord& AddChanges(Change&& value) { m_changesHasBeenSet = true; m_changes.push_back(value); return *this; }
284 
285  private:
286  Aws::String m_id;
287  bool m_idHasBeenSet;
288  Aws::Utils::DateTime m_submittedAt;
289  bool m_submittedAtHasBeenSet;
290  ChangeStatus m_status;
291  bool m_statusHasBeenSet;
292  Aws::String m_comment;
293  bool m_commentHasBeenSet;
294  Aws::String m_submitter;
295  bool m_submitterHasBeenSet;
296  Aws::Vector<Change> m_changes;
297  bool m_changesHasBeenSet;
298  };
299 
300 } // namespace Model
301 } // namespace Route53
302 } // namespace Aws
void SetSubmitter(const Aws::String &value)
const Aws::String & GetId() const
const ChangeStatus & GetStatus() const
ChangeBatchRecord & WithSubmitter(Aws::String &&value)
void SetComment(const Aws::String &value)
ChangeBatchRecord & WithComment(Aws::String &&value)
ChangeBatchRecord & WithSubmittedAt(Aws::Utils::DateTime &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetSubmittedAt(const Aws::Utils::DateTime &value)
void SetStatus(ChangeStatus &&value)
ChangeBatchRecord & WithSubmitter(const char *value)
void SetSubmitter(Aws::String &&value)
ChangeBatchRecord & WithComment(const char *value)
ChangeBatchRecord & WithStatus(ChangeStatus &&value)
ChangeBatchRecord & WithStatus(const ChangeStatus &value)
ChangeBatchRecord & WithId(Aws::String &&value)
const Aws::Vector< Change > & GetChanges() const
ChangeBatchRecord & AddChanges(const Change &value)
ChangeBatchRecord & WithChanges(Aws::Vector< Change > &&value)
const Aws::String & GetComment() const
ChangeBatchRecord & WithId(const char *value)
ChangeBatchRecord & WithId(const Aws::String &value)
ChangeBatchRecord & WithSubmittedAt(const Aws::Utils::DateTime &value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetId(const Aws::String &value)
void SetChanges(const Aws::Vector< Change > &value)
ChangeBatchRecord & AddChanges(Change &&value)
ChangeBatchRecord & WithComment(const Aws::String &value)
void SetSubmittedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetSubmitter() const
const Aws::Utils::DateTime & GetSubmittedAt() const
void SetChanges(Aws::Vector< Change > &&value)
ChangeBatchRecord & WithSubmitter(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetStatus(const ChangeStatus &value)
ChangeBatchRecord & WithChanges(const Aws::Vector< Change > &value)