AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TrafficPolicySummary.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
34 {
35 public:
36 AWS_ROUTE53_API TrafficPolicySummary() = default;
37 AWS_ROUTE53_API TrafficPolicySummary(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 TrafficPolicySummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 TrafficPolicySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
73 inline RRType GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(RRType value) { m_typeHasBeenSet = true; m_type = value; }
76 inline TrafficPolicySummary& WithType(RRType value) { SetType(value); return *this;}
78
80
83 inline int GetLatestVersion() const { return m_latestVersion; }
84 inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; }
85 inline void SetLatestVersion(int value) { m_latestVersionHasBeenSet = true; m_latestVersion = value; }
86 inline TrafficPolicySummary& WithLatestVersion(int value) { SetLatestVersion(value); return *this;}
88
90
94 inline int GetTrafficPolicyCount() const { return m_trafficPolicyCount; }
95 inline bool TrafficPolicyCountHasBeenSet() const { return m_trafficPolicyCountHasBeenSet; }
96 inline void SetTrafficPolicyCount(int value) { m_trafficPolicyCountHasBeenSet = true; m_trafficPolicyCount = value; }
97 inline TrafficPolicySummary& WithTrafficPolicyCount(int value) { SetTrafficPolicyCount(value); return *this;}
99 private:
100
101 Aws::String m_id;
102 bool m_idHasBeenSet = false;
103
104 Aws::String m_name;
105 bool m_nameHasBeenSet = false;
106
107 RRType m_type{RRType::NOT_SET};
108 bool m_typeHasBeenSet = false;
109
110 int m_latestVersion{0};
111 bool m_latestVersionHasBeenSet = false;
112
113 int m_trafficPolicyCount{0};
114 bool m_trafficPolicyCountHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Route53
119} // 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