AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
TrafficPolicySummary.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
30 public:
31 AWS_ROUTE53_API TrafficPolicySummary() = default;
32 AWS_ROUTE53_API TrafficPolicySummary(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
79 inline RRType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(RRType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
86 SetType(value);
87 return *this;
88 }
90
92
95 inline int GetLatestVersion() const { return m_latestVersion; }
96 inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; }
97 inline void SetLatestVersion(int value) {
98 m_latestVersionHasBeenSet = true;
99 m_latestVersion = value;
100 }
102 SetLatestVersion(value);
103 return *this;
104 }
106
108
112 inline int GetTrafficPolicyCount() const { return m_trafficPolicyCount; }
113 inline bool TrafficPolicyCountHasBeenSet() const { return m_trafficPolicyCountHasBeenSet; }
114 inline void SetTrafficPolicyCount(int value) {
115 m_trafficPolicyCountHasBeenSet = true;
116 m_trafficPolicyCount = value;
117 }
120 return *this;
121 }
123 private:
124 Aws::String m_id;
125 bool m_idHasBeenSet = false;
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 RRType m_type{RRType::NOT_SET};
131 bool m_typeHasBeenSet = false;
132
133 int m_latestVersion{0};
134 bool m_latestVersionHasBeenSet = false;
135
136 int m_trafficPolicyCount{0};
137 bool m_trafficPolicyCountHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Route53
142} // namespace Aws
TrafficPolicySummary & WithId(IdT &&value)
AWS_ROUTE53_API TrafficPolicySummary()=default
AWS_ROUTE53_API TrafficPolicySummary(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficPolicySummary & WithName(NameT &&value)
TrafficPolicySummary & WithType(RRType value)
TrafficPolicySummary & WithTrafficPolicyCount(int value)
TrafficPolicySummary & WithLatestVersion(int value)
AWS_ROUTE53_API TrafficPolicySummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String