AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateHealthCheckRequest.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/route53/Route53Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53/model/AlarmIdentifier.h>
12#include <aws/route53/model/InsufficientDataHealthStatus.h>
13#include <aws/route53/model/HealthCheckRegion.h>
14#include <aws/route53/model/ResettableElementName.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Route53
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_ROUTE53_API UpdateHealthCheckRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "UpdateHealthCheck"; }
40
41 AWS_ROUTE53_API Aws::String SerializePayload() const override;
42
43
45
50 inline const Aws::String& GetHealthCheckId() const { return m_healthCheckId; }
51 inline bool HealthCheckIdHasBeenSet() const { return m_healthCheckIdHasBeenSet; }
52 template<typename HealthCheckIdT = Aws::String>
53 void SetHealthCheckId(HealthCheckIdT&& value) { m_healthCheckIdHasBeenSet = true; m_healthCheckId = std::forward<HealthCheckIdT>(value); }
54 template<typename HealthCheckIdT = Aws::String>
55 UpdateHealthCheckRequest& WithHealthCheckId(HealthCheckIdT&& value) { SetHealthCheckId(std::forward<HealthCheckIdT>(value)); return *this;}
57
59
75 inline long long GetHealthCheckVersion() const { return m_healthCheckVersion; }
76 inline bool HealthCheckVersionHasBeenSet() const { return m_healthCheckVersionHasBeenSet; }
77 inline void SetHealthCheckVersion(long long value) { m_healthCheckVersionHasBeenSet = true; m_healthCheckVersion = value; }
78 inline UpdateHealthCheckRequest& WithHealthCheckVersion(long long value) { SetHealthCheckVersion(value); return *this;}
80
82
122 inline const Aws::String& GetIPAddress() const { return m_iPAddress; }
123 inline bool IPAddressHasBeenSet() const { return m_iPAddressHasBeenSet; }
124 template<typename IPAddressT = Aws::String>
125 void SetIPAddress(IPAddressT&& value) { m_iPAddressHasBeenSet = true; m_iPAddress = std::forward<IPAddressT>(value); }
126 template<typename IPAddressT = Aws::String>
127 UpdateHealthCheckRequest& WithIPAddress(IPAddressT&& value) { SetIPAddress(std::forward<IPAddressT>(value)); return *this;}
129
131
137 inline int GetPort() const { return m_port; }
138 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
139 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
140 inline UpdateHealthCheckRequest& WithPort(int value) { SetPort(value); return *this;}
142
144
152 inline const Aws::String& GetResourcePath() const { return m_resourcePath; }
153 inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
154 template<typename ResourcePathT = Aws::String>
155 void SetResourcePath(ResourcePathT&& value) { m_resourcePathHasBeenSet = true; m_resourcePath = std::forward<ResourcePathT>(value); }
156 template<typename ResourcePathT = Aws::String>
157 UpdateHealthCheckRequest& WithResourcePath(ResourcePathT&& value) { SetResourcePath(std::forward<ResourcePathT>(value)); return *this;}
159
161
218 inline const Aws::String& GetFullyQualifiedDomainName() const { return m_fullyQualifiedDomainName; }
219 inline bool FullyQualifiedDomainNameHasBeenSet() const { return m_fullyQualifiedDomainNameHasBeenSet; }
220 template<typename FullyQualifiedDomainNameT = Aws::String>
221 void SetFullyQualifiedDomainName(FullyQualifiedDomainNameT&& value) { m_fullyQualifiedDomainNameHasBeenSet = true; m_fullyQualifiedDomainName = std::forward<FullyQualifiedDomainNameT>(value); }
222 template<typename FullyQualifiedDomainNameT = Aws::String>
223 UpdateHealthCheckRequest& WithFullyQualifiedDomainName(FullyQualifiedDomainNameT&& value) { SetFullyQualifiedDomainName(std::forward<FullyQualifiedDomainNameT>(value)); return *this;}
225
227
234 inline const Aws::String& GetSearchString() const { return m_searchString; }
235 inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
236 template<typename SearchStringT = Aws::String>
237 void SetSearchString(SearchStringT&& value) { m_searchStringHasBeenSet = true; m_searchString = std::forward<SearchStringT>(value); }
238 template<typename SearchStringT = Aws::String>
239 UpdateHealthCheckRequest& WithSearchString(SearchStringT&& value) { SetSearchString(std::forward<SearchStringT>(value)); return *this;}
241
243
252 inline int GetFailureThreshold() const { return m_failureThreshold; }
253 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
254 inline void SetFailureThreshold(int value) { m_failureThresholdHasBeenSet = true; m_failureThreshold = value; }
255 inline UpdateHealthCheckRequest& WithFailureThreshold(int value) { SetFailureThreshold(value); return *this;}
257
259
264 inline bool GetInverted() const { return m_inverted; }
265 inline bool InvertedHasBeenSet() const { return m_invertedHasBeenSet; }
266 inline void SetInverted(bool value) { m_invertedHasBeenSet = true; m_inverted = value; }
267 inline UpdateHealthCheckRequest& WithInverted(bool value) { SetInverted(value); return *this;}
269
271
288 inline bool GetDisabled() const { return m_disabled; }
289 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
290 inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; }
291 inline UpdateHealthCheckRequest& WithDisabled(bool value) { SetDisabled(value); return *this;}
293
295
307 inline int GetHealthThreshold() const { return m_healthThreshold; }
308 inline bool HealthThresholdHasBeenSet() const { return m_healthThresholdHasBeenSet; }
309 inline void SetHealthThreshold(int value) { m_healthThresholdHasBeenSet = true; m_healthThreshold = value; }
310 inline UpdateHealthCheckRequest& WithHealthThreshold(int value) { SetHealthThreshold(value); return *this;}
312
314
319 inline const Aws::Vector<Aws::String>& GetChildHealthChecks() const { return m_childHealthChecks; }
320 inline bool ChildHealthChecksHasBeenSet() const { return m_childHealthChecksHasBeenSet; }
321 template<typename ChildHealthChecksT = Aws::Vector<Aws::String>>
322 void SetChildHealthChecks(ChildHealthChecksT&& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks = std::forward<ChildHealthChecksT>(value); }
323 template<typename ChildHealthChecksT = Aws::Vector<Aws::String>>
324 UpdateHealthCheckRequest& WithChildHealthChecks(ChildHealthChecksT&& value) { SetChildHealthChecks(std::forward<ChildHealthChecksT>(value)); return *this;}
325 template<typename ChildHealthChecksT = Aws::String>
326 UpdateHealthCheckRequest& AddChildHealthChecks(ChildHealthChecksT&& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks.emplace_back(std::forward<ChildHealthChecksT>(value)); return *this; }
328
330
352 inline bool GetEnableSNI() const { return m_enableSNI; }
353 inline bool EnableSNIHasBeenSet() const { return m_enableSNIHasBeenSet; }
354 inline void SetEnableSNI(bool value) { m_enableSNIHasBeenSet = true; m_enableSNI = value; }
355 inline UpdateHealthCheckRequest& WithEnableSNI(bool value) { SetEnableSNI(value); return *this;}
357
359
364 inline const Aws::Vector<HealthCheckRegion>& GetRegions() const { return m_regions; }
365 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
366 template<typename RegionsT = Aws::Vector<HealthCheckRegion>>
367 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
368 template<typename RegionsT = Aws::Vector<HealthCheckRegion>>
369 UpdateHealthCheckRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
370 inline UpdateHealthCheckRequest& AddRegions(HealthCheckRegion value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
372
374
379 inline const AlarmIdentifier& GetAlarmIdentifier() const { return m_alarmIdentifier; }
380 inline bool AlarmIdentifierHasBeenSet() const { return m_alarmIdentifierHasBeenSet; }
381 template<typename AlarmIdentifierT = AlarmIdentifier>
382 void SetAlarmIdentifier(AlarmIdentifierT&& value) { m_alarmIdentifierHasBeenSet = true; m_alarmIdentifier = std::forward<AlarmIdentifierT>(value); }
383 template<typename AlarmIdentifierT = AlarmIdentifier>
384 UpdateHealthCheckRequest& WithAlarmIdentifier(AlarmIdentifierT&& value) { SetAlarmIdentifier(std::forward<AlarmIdentifierT>(value)); return *this;}
386
388
399 inline InsufficientDataHealthStatus GetInsufficientDataHealthStatus() const { return m_insufficientDataHealthStatus; }
400 inline bool InsufficientDataHealthStatusHasBeenSet() const { return m_insufficientDataHealthStatusHasBeenSet; }
401 inline void SetInsufficientDataHealthStatus(InsufficientDataHealthStatus value) { m_insufficientDataHealthStatusHasBeenSet = true; m_insufficientDataHealthStatus = value; }
404
406
422 inline const Aws::Vector<ResettableElementName>& GetResetElements() const { return m_resetElements; }
423 inline bool ResetElementsHasBeenSet() const { return m_resetElementsHasBeenSet; }
424 template<typename ResetElementsT = Aws::Vector<ResettableElementName>>
425 void SetResetElements(ResetElementsT&& value) { m_resetElementsHasBeenSet = true; m_resetElements = std::forward<ResetElementsT>(value); }
426 template<typename ResetElementsT = Aws::Vector<ResettableElementName>>
427 UpdateHealthCheckRequest& WithResetElements(ResetElementsT&& value) { SetResetElements(std::forward<ResetElementsT>(value)); return *this;}
428 inline UpdateHealthCheckRequest& AddResetElements(ResettableElementName value) { m_resetElementsHasBeenSet = true; m_resetElements.push_back(value); return *this; }
430 private:
431
432 Aws::String m_healthCheckId;
433 bool m_healthCheckIdHasBeenSet = false;
434
435 long long m_healthCheckVersion{0};
436 bool m_healthCheckVersionHasBeenSet = false;
437
438 Aws::String m_iPAddress;
439 bool m_iPAddressHasBeenSet = false;
440
441 int m_port{0};
442 bool m_portHasBeenSet = false;
443
444 Aws::String m_resourcePath;
445 bool m_resourcePathHasBeenSet = false;
446
447 Aws::String m_fullyQualifiedDomainName;
448 bool m_fullyQualifiedDomainNameHasBeenSet = false;
449
450 Aws::String m_searchString;
451 bool m_searchStringHasBeenSet = false;
452
453 int m_failureThreshold{0};
454 bool m_failureThresholdHasBeenSet = false;
455
456 bool m_inverted{false};
457 bool m_invertedHasBeenSet = false;
458
459 bool m_disabled{false};
460 bool m_disabledHasBeenSet = false;
461
462 int m_healthThreshold{0};
463 bool m_healthThresholdHasBeenSet = false;
464
465 Aws::Vector<Aws::String> m_childHealthChecks;
466 bool m_childHealthChecksHasBeenSet = false;
467
468 bool m_enableSNI{false};
469 bool m_enableSNIHasBeenSet = false;
470
472 bool m_regionsHasBeenSet = false;
473
474 AlarmIdentifier m_alarmIdentifier;
475 bool m_alarmIdentifierHasBeenSet = false;
476
478 bool m_insufficientDataHealthStatusHasBeenSet = false;
479
481 bool m_resetElementsHasBeenSet = false;
482 };
483
484} // namespace Model
485} // namespace Route53
486} // 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