AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 TrafficPolicy& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
60 inline int GetVersion() const { return m_version; }
61 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
62 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
63 inline TrafficPolicy& WithVersion(int value) { SetVersion(value); return *this;}
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template<typename NameT = Aws::String>
73 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
74 template<typename NameT = Aws::String>
75 TrafficPolicy& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
77
79
83 inline RRType GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 inline void SetType(RRType value) { m_typeHasBeenSet = true; m_type = value; }
86 inline TrafficPolicy& WithType(RRType value) { SetType(value); return *this;}
88
90
97 inline const Aws::String& GetDocument() const { return m_document; }
98 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
99 template<typename DocumentT = Aws::String>
100 void SetDocument(DocumentT&& value) { m_documentHasBeenSet = true; m_document = std::forward<DocumentT>(value); }
101 template<typename DocumentT = Aws::String>
102 TrafficPolicy& WithDocument(DocumentT&& value) { SetDocument(std::forward<DocumentT>(value)); return *this;}
104
106
110 inline const Aws::String& GetComment() const { return m_comment; }
111 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
112 template<typename CommentT = Aws::String>
113 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
114 template<typename CommentT = Aws::String>
115 TrafficPolicy& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
117 private:
118
119 Aws::String m_id;
120 bool m_idHasBeenSet = false;
121
122 int m_version{0};
123 bool m_versionHasBeenSet = false;
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 RRType m_type{RRType::NOT_SET};
129 bool m_typeHasBeenSet = false;
130
131 Aws::String m_document;
132 bool m_documentHasBeenSet = false;
133
134 Aws::String m_comment;
135 bool m_commentHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Route53
140} // 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