AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficPolicyInstance.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 TrafficPolicyInstance();
36 AWS_ROUTE53_API TrafficPolicyInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline TrafficPolicyInstance& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline TrafficPolicyInstance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline TrafficPolicyInstance& WithId(const char* value) { SetId(value); return *this;}
55
57
61 inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
62 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
63 inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
64 inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
65 inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
66 inline TrafficPolicyInstance& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
67 inline TrafficPolicyInstance& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
68 inline TrafficPolicyInstance& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
70
72
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline TrafficPolicyInstance& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline TrafficPolicyInstance& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline TrafficPolicyInstance& WithName(const char* value) { SetName(value); return *this;}
86
88
92 inline long long GetTTL() const{ return m_tTL; }
93 inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
94 inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
95 inline TrafficPolicyInstance& WithTTL(long long value) { SetTTL(value); return *this;}
97
99
111 inline const Aws::String& GetState() const{ return m_state; }
112 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
113 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
114 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
115 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
116 inline TrafficPolicyInstance& WithState(const Aws::String& value) { SetState(value); return *this;}
117 inline TrafficPolicyInstance& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
118 inline TrafficPolicyInstance& WithState(const char* value) { SetState(value); return *this;}
120
122
127 inline const Aws::String& GetMessage() const{ return m_message; }
128 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
129 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
130 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
131 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
132 inline TrafficPolicyInstance& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
133 inline TrafficPolicyInstance& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
134 inline TrafficPolicyInstance& WithMessage(const char* value) { SetMessage(value); return *this;}
136
138
142 inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }
143 inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
144 inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; }
145 inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); }
146 inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); }
147 inline TrafficPolicyInstance& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;}
148 inline TrafficPolicyInstance& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}
149 inline TrafficPolicyInstance& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}
151
153
157 inline int GetTrafficPolicyVersion() const{ return m_trafficPolicyVersion; }
158 inline bool TrafficPolicyVersionHasBeenSet() const { return m_trafficPolicyVersionHasBeenSet; }
159 inline void SetTrafficPolicyVersion(int value) { m_trafficPolicyVersionHasBeenSet = true; m_trafficPolicyVersion = value; }
162
164
168 inline const RRType& GetTrafficPolicyType() const{ return m_trafficPolicyType; }
169 inline bool TrafficPolicyTypeHasBeenSet() const { return m_trafficPolicyTypeHasBeenSet; }
170 inline void SetTrafficPolicyType(const RRType& value) { m_trafficPolicyTypeHasBeenSet = true; m_trafficPolicyType = value; }
171 inline void SetTrafficPolicyType(RRType&& value) { m_trafficPolicyTypeHasBeenSet = true; m_trafficPolicyType = std::move(value); }
172 inline TrafficPolicyInstance& WithTrafficPolicyType(const RRType& value) { SetTrafficPolicyType(value); return *this;}
173 inline TrafficPolicyInstance& WithTrafficPolicyType(RRType&& value) { SetTrafficPolicyType(std::move(value)); return *this;}
175 private:
176
177 Aws::String m_id;
178 bool m_idHasBeenSet = false;
179
180 Aws::String m_hostedZoneId;
181 bool m_hostedZoneIdHasBeenSet = false;
182
183 Aws::String m_name;
184 bool m_nameHasBeenSet = false;
185
186 long long m_tTL;
187 bool m_tTLHasBeenSet = false;
188
189 Aws::String m_state;
190 bool m_stateHasBeenSet = false;
191
192 Aws::String m_message;
193 bool m_messageHasBeenSet = false;
194
195 Aws::String m_trafficPolicyId;
196 bool m_trafficPolicyIdHasBeenSet = false;
197
198 int m_trafficPolicyVersion;
199 bool m_trafficPolicyVersionHasBeenSet = false;
200
201 RRType m_trafficPolicyType;
202 bool m_trafficPolicyTypeHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Route53
207} // namespace Aws
TrafficPolicyInstance & WithState(Aws::String &&value)
AWS_ROUTE53_API TrafficPolicyInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficPolicyInstance & WithTrafficPolicyId(const char *value)
void SetHostedZoneId(const Aws::String &value)
TrafficPolicyInstance & WithName(const Aws::String &value)
TrafficPolicyInstance & WithHostedZoneId(const char *value)
TrafficPolicyInstance & WithTrafficPolicyType(RRType &&value)
TrafficPolicyInstance & WithMessage(Aws::String &&value)
TrafficPolicyInstance & WithTTL(long long value)
TrafficPolicyInstance & WithTrafficPolicyType(const RRType &value)
TrafficPolicyInstance & WithId(Aws::String &&value)
TrafficPolicyInstance & WithHostedZoneId(Aws::String &&value)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
TrafficPolicyInstance & WithTrafficPolicyId(const Aws::String &value)
TrafficPolicyInstance & WithMessage(const char *value)
TrafficPolicyInstance & WithMessage(const Aws::String &value)
TrafficPolicyInstance & WithTrafficPolicyVersion(int value)
TrafficPolicyInstance & WithName(const char *value)
TrafficPolicyInstance & WithState(const char *value)
TrafficPolicyInstance & WithHostedZoneId(const Aws::String &value)
void SetTrafficPolicyId(const Aws::String &value)
TrafficPolicyInstance & WithState(const Aws::String &value)
AWS_ROUTE53_API TrafficPolicyInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrafficPolicyInstance & WithName(Aws::String &&value)
TrafficPolicyInstance & WithId(const char *value)
TrafficPolicyInstance & WithTrafficPolicyId(Aws::String &&value)
TrafficPolicyInstance & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String