AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ChangeBatch.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53/model/Change.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Route53
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ROUTE53_API ChangeBatch();
36 AWS_ROUTE53_API ChangeBatch(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ROUTE53_API ChangeBatch& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
47 inline const Aws::String& GetComment() const{ return m_comment; }
48 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
49 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
50 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
51 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
52 inline ChangeBatch& WithComment(const Aws::String& value) { SetComment(value); return *this;}
53 inline ChangeBatch& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
54 inline ChangeBatch& WithComment(const char* value) { SetComment(value); return *this;}
56
58
61 inline const Aws::Vector<Change>& GetChanges() const{ return m_changes; }
62 inline bool ChangesHasBeenSet() const { return m_changesHasBeenSet; }
63 inline void SetChanges(const Aws::Vector<Change>& value) { m_changesHasBeenSet = true; m_changes = value; }
64 inline void SetChanges(Aws::Vector<Change>&& value) { m_changesHasBeenSet = true; m_changes = std::move(value); }
65 inline ChangeBatch& WithChanges(const Aws::Vector<Change>& value) { SetChanges(value); return *this;}
66 inline ChangeBatch& WithChanges(Aws::Vector<Change>&& value) { SetChanges(std::move(value)); return *this;}
67 inline ChangeBatch& AddChanges(const Change& value) { m_changesHasBeenSet = true; m_changes.push_back(value); return *this; }
68 inline ChangeBatch& AddChanges(Change&& value) { m_changesHasBeenSet = true; m_changes.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_comment;
73 bool m_commentHasBeenSet = false;
74
75 Aws::Vector<Change> m_changes;
76 bool m_changesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Route53
81} // namespace Aws
void SetComment(const char *value)
Definition ChangeBatch.h:51
const Aws::Vector< Change > & GetChanges() const
Definition ChangeBatch.h:61
ChangeBatch & WithComment(Aws::String &&value)
Definition ChangeBatch.h:53
const Aws::String & GetComment() const
Definition ChangeBatch.h:47
AWS_ROUTE53_API ChangeBatch(const Aws::Utils::Xml::XmlNode &xmlNode)
ChangeBatch & WithComment(const Aws::String &value)
Definition ChangeBatch.h:52
void SetChanges(Aws::Vector< Change > &&value)
Definition ChangeBatch.h:64
AWS_ROUTE53_API ChangeBatch & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ChangeBatch & WithChanges(const Aws::Vector< Change > &value)
Definition ChangeBatch.h:65
ChangeBatch & WithComment(const char *value)
Definition ChangeBatch.h:54
ChangeBatch & AddChanges(Change &&value)
Definition ChangeBatch.h:68
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ChangeBatch & AddChanges(const Change &value)
Definition ChangeBatch.h:67
void SetChanges(const Aws::Vector< Change > &value)
Definition ChangeBatch.h:63
void SetComment(const Aws::String &value)
Definition ChangeBatch.h:49
void SetComment(Aws::String &&value)
Definition ChangeBatch.h:50
ChangeBatch & WithChanges(Aws::Vector< Change > &&value)
Definition ChangeBatch.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector