AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
UpdateHealthCheckRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53/Route53Request.h>
10#include <aws/route53/Route53_EXPORTS.h>
11#include <aws/route53/model/AlarmIdentifier.h>
12#include <aws/route53/model/HealthCheckRegion.h>
13#include <aws/route53/model/InsufficientDataHealthStatus.h>
14#include <aws/route53/model/ResettableElementName.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Route53 {
20namespace Model {
21
29 public:
30 AWS_ROUTE53_API UpdateHealthCheckRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateHealthCheck"; }
37
38 AWS_ROUTE53_API Aws::String SerializePayload() const override;
39
41
46 inline const Aws::String& GetHealthCheckId() const { return m_healthCheckId; }
47 inline bool HealthCheckIdHasBeenSet() const { return m_healthCheckIdHasBeenSet; }
48 template <typename HealthCheckIdT = Aws::String>
49 void SetHealthCheckId(HealthCheckIdT&& value) {
50 m_healthCheckIdHasBeenSet = true;
51 m_healthCheckId = std::forward<HealthCheckIdT>(value);
52 }
53 template <typename HealthCheckIdT = Aws::String>
55 SetHealthCheckId(std::forward<HealthCheckIdT>(value));
56 return *this;
57 }
59
61
77 inline long long GetHealthCheckVersion() const { return m_healthCheckVersion; }
78 inline bool HealthCheckVersionHasBeenSet() const { return m_healthCheckVersionHasBeenSet; }
79 inline void SetHealthCheckVersion(long long value) {
80 m_healthCheckVersionHasBeenSet = true;
81 m_healthCheckVersion = value;
82 }
85 return *this;
86 }
88
90
130 inline const Aws::String& GetIPAddress() const { return m_iPAddress; }
131 inline bool IPAddressHasBeenSet() const { return m_iPAddressHasBeenSet; }
132 template <typename IPAddressT = Aws::String>
133 void SetIPAddress(IPAddressT&& value) {
134 m_iPAddressHasBeenSet = true;
135 m_iPAddress = std::forward<IPAddressT>(value);
136 }
137 template <typename IPAddressT = Aws::String>
139 SetIPAddress(std::forward<IPAddressT>(value));
140 return *this;
141 }
143
145
151 inline int GetPort() const { return m_port; }
152 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
153 inline void SetPort(int value) {
154 m_portHasBeenSet = true;
155 m_port = value;
156 }
158 SetPort(value);
159 return *this;
160 }
162
164
172 inline const Aws::String& GetResourcePath() const { return m_resourcePath; }
173 inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
174 template <typename ResourcePathT = Aws::String>
175 void SetResourcePath(ResourcePathT&& value) {
176 m_resourcePathHasBeenSet = true;
177 m_resourcePath = std::forward<ResourcePathT>(value);
178 }
179 template <typename ResourcePathT = Aws::String>
181 SetResourcePath(std::forward<ResourcePathT>(value));
182 return *this;
183 }
185
187
244 inline const Aws::String& GetFullyQualifiedDomainName() const { return m_fullyQualifiedDomainName; }
245 inline bool FullyQualifiedDomainNameHasBeenSet() const { return m_fullyQualifiedDomainNameHasBeenSet; }
246 template <typename FullyQualifiedDomainNameT = Aws::String>
247 void SetFullyQualifiedDomainName(FullyQualifiedDomainNameT&& value) {
248 m_fullyQualifiedDomainNameHasBeenSet = true;
249 m_fullyQualifiedDomainName = std::forward<FullyQualifiedDomainNameT>(value);
250 }
251 template <typename FullyQualifiedDomainNameT = Aws::String>
252 UpdateHealthCheckRequest& WithFullyQualifiedDomainName(FullyQualifiedDomainNameT&& value) {
253 SetFullyQualifiedDomainName(std::forward<FullyQualifiedDomainNameT>(value));
254 return *this;
255 }
257
259
266 inline const Aws::String& GetSearchString() const { return m_searchString; }
267 inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
268 template <typename SearchStringT = Aws::String>
269 void SetSearchString(SearchStringT&& value) {
270 m_searchStringHasBeenSet = true;
271 m_searchString = std::forward<SearchStringT>(value);
272 }
273 template <typename SearchStringT = Aws::String>
275 SetSearchString(std::forward<SearchStringT>(value));
276 return *this;
277 }
279
281
290 inline int GetFailureThreshold() const { return m_failureThreshold; }
291 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
292 inline void SetFailureThreshold(int value) {
293 m_failureThresholdHasBeenSet = true;
294 m_failureThreshold = value;
295 }
297 SetFailureThreshold(value);
298 return *this;
299 }
301
303
308 inline bool GetInverted() const { return m_inverted; }
309 inline bool InvertedHasBeenSet() const { return m_invertedHasBeenSet; }
310 inline void SetInverted(bool value) {
311 m_invertedHasBeenSet = true;
312 m_inverted = value;
313 }
315 SetInverted(value);
316 return *this;
317 }
319
321
339 inline bool GetDisabled() const { return m_disabled; }
340 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
341 inline void SetDisabled(bool value) {
342 m_disabledHasBeenSet = true;
343 m_disabled = value;
344 }
346 SetDisabled(value);
347 return *this;
348 }
350
352
364 inline int GetHealthThreshold() const { return m_healthThreshold; }
365 inline bool HealthThresholdHasBeenSet() const { return m_healthThresholdHasBeenSet; }
366 inline void SetHealthThreshold(int value) {
367 m_healthThresholdHasBeenSet = true;
368 m_healthThreshold = value;
369 }
371 SetHealthThreshold(value);
372 return *this;
373 }
375
377
382 inline const Aws::Vector<Aws::String>& GetChildHealthChecks() const { return m_childHealthChecks; }
383 inline bool ChildHealthChecksHasBeenSet() const { return m_childHealthChecksHasBeenSet; }
384 template <typename ChildHealthChecksT = Aws::Vector<Aws::String>>
385 void SetChildHealthChecks(ChildHealthChecksT&& value) {
386 m_childHealthChecksHasBeenSet = true;
387 m_childHealthChecks = std::forward<ChildHealthChecksT>(value);
388 }
389 template <typename ChildHealthChecksT = Aws::Vector<Aws::String>>
390 UpdateHealthCheckRequest& WithChildHealthChecks(ChildHealthChecksT&& value) {
391 SetChildHealthChecks(std::forward<ChildHealthChecksT>(value));
392 return *this;
393 }
394 template <typename ChildHealthChecksT = Aws::String>
395 UpdateHealthCheckRequest& AddChildHealthChecks(ChildHealthChecksT&& value) {
396 m_childHealthChecksHasBeenSet = true;
397 m_childHealthChecks.emplace_back(std::forward<ChildHealthChecksT>(value));
398 return *this;
399 }
401
403
425 inline bool GetEnableSNI() const { return m_enableSNI; }
426 inline bool EnableSNIHasBeenSet() const { return m_enableSNIHasBeenSet; }
427 inline void SetEnableSNI(bool value) {
428 m_enableSNIHasBeenSet = true;
429 m_enableSNI = value;
430 }
432 SetEnableSNI(value);
433 return *this;
434 }
436
438
443 inline const Aws::Vector<HealthCheckRegion>& GetRegions() const { return m_regions; }
444 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
445 template <typename RegionsT = Aws::Vector<HealthCheckRegion>>
446 void SetRegions(RegionsT&& value) {
447 m_regionsHasBeenSet = true;
448 m_regions = std::forward<RegionsT>(value);
449 }
450 template <typename RegionsT = Aws::Vector<HealthCheckRegion>>
452 SetRegions(std::forward<RegionsT>(value));
453 return *this;
454 }
456 m_regionsHasBeenSet = true;
457 m_regions.push_back(value);
458 return *this;
459 }
461
463
468 inline const AlarmIdentifier& GetAlarmIdentifier() const { return m_alarmIdentifier; }
469 inline bool AlarmIdentifierHasBeenSet() const { return m_alarmIdentifierHasBeenSet; }
470 template <typename AlarmIdentifierT = AlarmIdentifier>
471 void SetAlarmIdentifier(AlarmIdentifierT&& value) {
472 m_alarmIdentifierHasBeenSet = true;
473 m_alarmIdentifier = std::forward<AlarmIdentifierT>(value);
474 }
475 template <typename AlarmIdentifierT = AlarmIdentifier>
477 SetAlarmIdentifier(std::forward<AlarmIdentifierT>(value));
478 return *this;
479 }
481
483
494 inline InsufficientDataHealthStatus GetInsufficientDataHealthStatus() const { return m_insufficientDataHealthStatus; }
495 inline bool InsufficientDataHealthStatusHasBeenSet() const { return m_insufficientDataHealthStatusHasBeenSet; }
497 m_insufficientDataHealthStatusHasBeenSet = true;
498 m_insufficientDataHealthStatus = value;
499 }
502 return *this;
503 }
505
507
523 inline const Aws::Vector<ResettableElementName>& GetResetElements() const { return m_resetElements; }
524 inline bool ResetElementsHasBeenSet() const { return m_resetElementsHasBeenSet; }
525 template <typename ResetElementsT = Aws::Vector<ResettableElementName>>
526 void SetResetElements(ResetElementsT&& value) {
527 m_resetElementsHasBeenSet = true;
528 m_resetElements = std::forward<ResetElementsT>(value);
529 }
530 template <typename ResetElementsT = Aws::Vector<ResettableElementName>>
532 SetResetElements(std::forward<ResetElementsT>(value));
533 return *this;
534 }
536 m_resetElementsHasBeenSet = true;
537 m_resetElements.push_back(value);
538 return *this;
539 }
541 private:
542 Aws::String m_healthCheckId;
543 bool m_healthCheckIdHasBeenSet = false;
544
545 long long m_healthCheckVersion{0};
546 bool m_healthCheckVersionHasBeenSet = false;
547
548 Aws::String m_iPAddress;
549 bool m_iPAddressHasBeenSet = false;
550
551 int m_port{0};
552 bool m_portHasBeenSet = false;
553
554 Aws::String m_resourcePath;
555 bool m_resourcePathHasBeenSet = false;
556
557 Aws::String m_fullyQualifiedDomainName;
558 bool m_fullyQualifiedDomainNameHasBeenSet = false;
559
560 Aws::String m_searchString;
561 bool m_searchStringHasBeenSet = false;
562
563 int m_failureThreshold{0};
564 bool m_failureThresholdHasBeenSet = false;
565
566 bool m_inverted{false};
567 bool m_invertedHasBeenSet = false;
568
569 bool m_disabled{false};
570 bool m_disabledHasBeenSet = false;
571
572 int m_healthThreshold{0};
573 bool m_healthThresholdHasBeenSet = false;
574
575 Aws::Vector<Aws::String> m_childHealthChecks;
576 bool m_childHealthChecksHasBeenSet = false;
577
578 bool m_enableSNI{false};
579 bool m_enableSNIHasBeenSet = false;
580
582 bool m_regionsHasBeenSet = false;
583
584 AlarmIdentifier m_alarmIdentifier;
585 bool m_alarmIdentifierHasBeenSet = false;
586
588 bool m_insufficientDataHealthStatusHasBeenSet = false;
589
591 bool m_resetElementsHasBeenSet = false;
592};
593
594} // namespace Model
595} // namespace Route53
596} // namespace Aws
AWS_ROUTE53_API Aws::String SerializePayload() const override
UpdateHealthCheckRequest & AddRegions(HealthCheckRegion value)
UpdateHealthCheckRequest & WithPort(int value)
UpdateHealthCheckRequest & WithHealthCheckId(HealthCheckIdT &&value)
void SetFullyQualifiedDomainName(FullyQualifiedDomainNameT &&value)
UpdateHealthCheckRequest & WithAlarmIdentifier(AlarmIdentifierT &&value)
UpdateHealthCheckRequest & WithFullyQualifiedDomainName(FullyQualifiedDomainNameT &&value)
UpdateHealthCheckRequest & AddChildHealthChecks(ChildHealthChecksT &&value)
UpdateHealthCheckRequest & WithResourcePath(ResourcePathT &&value)
UpdateHealthCheckRequest & WithFailureThreshold(int value)
InsufficientDataHealthStatus GetInsufficientDataHealthStatus() const
UpdateHealthCheckRequest & WithSearchString(SearchStringT &&value)
UpdateHealthCheckRequest & WithRegions(RegionsT &&value)
AWS_ROUTE53_API UpdateHealthCheckRequest()=default
UpdateHealthCheckRequest & AddResetElements(ResettableElementName value)
UpdateHealthCheckRequest & WithEnableSNI(bool value)
UpdateHealthCheckRequest & WithHealthCheckVersion(long long value)
UpdateHealthCheckRequest & WithInsufficientDataHealthStatus(InsufficientDataHealthStatus value)
UpdateHealthCheckRequest & WithDisabled(bool value)
UpdateHealthCheckRequest & WithInverted(bool value)
const Aws::Vector< HealthCheckRegion > & GetRegions() const
const Aws::Vector< Aws::String > & GetChildHealthChecks() const
UpdateHealthCheckRequest & WithHealthThreshold(int value)
virtual const char * GetServiceRequestName() const override
void SetInsufficientDataHealthStatus(InsufficientDataHealthStatus value)
UpdateHealthCheckRequest & WithChildHealthChecks(ChildHealthChecksT &&value)
UpdateHealthCheckRequest & WithIPAddress(IPAddressT &&value)
UpdateHealthCheckRequest & WithResetElements(ResetElementsT &&value)
const Aws::Vector< ResettableElementName > & GetResetElements() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector