AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
TrafficPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53/Route53_EXPORTS.h>
9#include <aws/route53/model/RRType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Route53 {
20namespace Model {
21
29 public:
30 AWS_ROUTE53_API TrafficPolicy() = default;
31 AWS_ROUTE53_API TrafficPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ROUTE53_API TrafficPolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 TrafficPolicy& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
60 inline int GetVersion() const { return m_version; }
61 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
62 inline void SetVersion(int value) {
63 m_versionHasBeenSet = true;
64 m_version = value;
65 }
66 inline TrafficPolicy& WithVersion(int value) {
67 SetVersion(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 TrafficPolicy& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
95 inline RRType GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(RRType value) {
98 m_typeHasBeenSet = true;
99 m_type = value;
100 }
102 SetType(value);
103 return *this;
104 }
106
108
115 inline const Aws::String& GetDocument() const { return m_document; }
116 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
117 template <typename DocumentT = Aws::String>
118 void SetDocument(DocumentT&& value) {
119 m_documentHasBeenSet = true;
120 m_document = std::forward<DocumentT>(value);
121 }
122 template <typename DocumentT = Aws::String>
123 TrafficPolicy& WithDocument(DocumentT&& value) {
124 SetDocument(std::forward<DocumentT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetComment() const { return m_comment; }
135 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
136 template <typename CommentT = Aws::String>
137 void SetComment(CommentT&& value) {
138 m_commentHasBeenSet = true;
139 m_comment = std::forward<CommentT>(value);
140 }
141 template <typename CommentT = Aws::String>
142 TrafficPolicy& WithComment(CommentT&& value) {
143 SetComment(std::forward<CommentT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_id;
149 bool m_idHasBeenSet = false;
150
151 int m_version{0};
152 bool m_versionHasBeenSet = false;
153
154 Aws::String m_name;
155 bool m_nameHasBeenSet = false;
156
157 RRType m_type{RRType::NOT_SET};
158 bool m_typeHasBeenSet = false;
159
160 Aws::String m_document;
161 bool m_documentHasBeenSet = false;
162
163 Aws::String m_comment;
164 bool m_commentHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace Route53
169} // namespace Aws
TrafficPolicy & WithDocument(DocumentT &&value)
TrafficPolicy & WithVersion(int value)
AWS_ROUTE53_API TrafficPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficPolicy & WithType(RRType value)
const Aws::String & GetDocument() const
TrafficPolicy & WithName(NameT &&value)
const Aws::String & GetId() const
const Aws::String & GetName() const
TrafficPolicy & WithComment(CommentT &&value)
AWS_ROUTE53_API TrafficPolicy()=default
void SetDocument(DocumentT &&value)
AWS_ROUTE53_API TrafficPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficPolicy & WithId(IdT &&value)
const Aws::String & GetComment() const
void SetComment(CommentT &&value)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String