AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficPolicy.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53/model/RRType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Route53
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ROUTE53_API TrafficPolicy();
36 AWS_ROUTE53_API TrafficPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ROUTE53_API TrafficPolicy& 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& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline TrafficPolicy& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline TrafficPolicy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline TrafficPolicy& WithId(const char* value) { SetId(value); return *this;}
56
58
62 inline int GetVersion() const{ return m_version; }
63 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
64 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
65 inline TrafficPolicy& WithVersion(int value) { SetVersion(value); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline TrafficPolicy& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline TrafficPolicy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline TrafficPolicy& WithName(const char* value) { SetName(value); return *this;}
81
83
87 inline const RRType& GetType() const{ return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(const RRType& value) { m_typeHasBeenSet = true; m_type = value; }
90 inline void SetType(RRType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
91 inline TrafficPolicy& WithType(const RRType& value) { SetType(value); return *this;}
92 inline TrafficPolicy& WithType(RRType&& value) { SetType(std::move(value)); return *this;}
94
96
103 inline const Aws::String& GetDocument() const{ return m_document; }
104 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
105 inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
106 inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
107 inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
108 inline TrafficPolicy& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
109 inline TrafficPolicy& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;}
110 inline TrafficPolicy& WithDocument(const char* value) { SetDocument(value); return *this;}
112
114
118 inline const Aws::String& GetComment() const{ return m_comment; }
119 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
120 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
121 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
122 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
123 inline TrafficPolicy& WithComment(const Aws::String& value) { SetComment(value); return *this;}
124 inline TrafficPolicy& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
125 inline TrafficPolicy& WithComment(const char* value) { SetComment(value); return *this;}
127 private:
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 int m_version;
133 bool m_versionHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 RRType m_type;
139 bool m_typeHasBeenSet = false;
140
141 Aws::String m_document;
142 bool m_documentHasBeenSet = false;
143
144 Aws::String m_comment;
145 bool m_commentHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Route53
150} // namespace Aws
void SetDocument(const Aws::String &value)
void SetComment(const Aws::String &value)
TrafficPolicy & WithId(Aws::String &&value)
TrafficPolicy & WithComment(const char *value)
const RRType & GetType() const
void SetName(const Aws::String &value)
TrafficPolicy & WithVersion(int value)
AWS_ROUTE53_API TrafficPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetComment(Aws::String &&value)
const Aws::String & GetDocument() const
const Aws::String & GetId() const
void SetId(const Aws::String &value)
void SetId(Aws::String &&value)
const Aws::String & GetName() const
void SetName(Aws::String &&value)
void SetDocument(const char *value)
TrafficPolicy & WithDocument(const Aws::String &value)
void SetId(const char *value)
AWS_ROUTE53_API TrafficPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficPolicy & WithName(const char *value)
TrafficPolicy & WithName(const Aws::String &value)
TrafficPolicy & WithComment(Aws::String &&value)
TrafficPolicy & WithDocument(Aws::String &&value)
void SetDocument(Aws::String &&value)
TrafficPolicy & WithName(Aws::String &&value)
const Aws::String & GetComment() const
TrafficPolicy & WithType(RRType &&value)
TrafficPolicy & WithComment(const Aws::String &value)
void SetType(const RRType &value)
TrafficPolicy & WithType(const RRType &value)
void SetName(const char *value)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
TrafficPolicy & WithId(const char *value)
TrafficPolicy & WithDocument(const char *value)
void SetComment(const char *value)
TrafficPolicy & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String