AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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
289 inline bool GetDisabled() const { return m_disabled; }
290 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
291 inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; }
292 inline UpdateHealthCheckRequest& WithDisabled(bool value) { SetDisabled(value); return *this;}
294
296
308 inline int GetHealthThreshold() const { return m_healthThreshold; }
309 inline bool HealthThresholdHasBeenSet() const { return m_healthThresholdHasBeenSet; }
310 inline void SetHealthThreshold(int value) { m_healthThresholdHasBeenSet = true; m_healthThreshold = value; }
311 inline UpdateHealthCheckRequest& WithHealthThreshold(int value) { SetHealthThreshold(value); return *this;}
313
315
320 inline const Aws::Vector<Aws::String>& GetChildHealthChecks() const { return m_childHealthChecks; }
321 inline bool ChildHealthChecksHasBeenSet() const { return m_childHealthChecksHasBeenSet; }
322 template<typename ChildHealthChecksT = Aws::Vector<Aws::String>>
323 void SetChildHealthChecks(ChildHealthChecksT&& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks = std::forward<ChildHealthChecksT>(value); }
324 template<typename ChildHealthChecksT = Aws::Vector<Aws::String>>
325 UpdateHealthCheckRequest& WithChildHealthChecks(ChildHealthChecksT&& value) { SetChildHealthChecks(std::forward<ChildHealthChecksT>(value)); return *this;}
326 template<typename ChildHealthChecksT = Aws::String>
327 UpdateHealthCheckRequest& AddChildHealthChecks(ChildHealthChecksT&& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks.emplace_back(std::forward<ChildHealthChecksT>(value)); return *this; }
329
331
353 inline bool GetEnableSNI() const { return m_enableSNI; }
354 inline bool EnableSNIHasBeenSet() const { return m_enableSNIHasBeenSet; }
355 inline void SetEnableSNI(bool value) { m_enableSNIHasBeenSet = true; m_enableSNI = value; }
356 inline UpdateHealthCheckRequest& WithEnableSNI(bool value) { SetEnableSNI(value); return *this;}
358
360
365 inline const Aws::Vector<HealthCheckRegion>& GetRegions() const { return m_regions; }
366 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
367 template<typename RegionsT = Aws::Vector<HealthCheckRegion>>
368 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
369 template<typename RegionsT = Aws::Vector<HealthCheckRegion>>
370 UpdateHealthCheckRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
371 inline UpdateHealthCheckRequest& AddRegions(HealthCheckRegion value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
373
375
380 inline const AlarmIdentifier& GetAlarmIdentifier() const { return m_alarmIdentifier; }
381 inline bool AlarmIdentifierHasBeenSet() const { return m_alarmIdentifierHasBeenSet; }
382 template<typename AlarmIdentifierT = AlarmIdentifier>
383 void SetAlarmIdentifier(AlarmIdentifierT&& value) { m_alarmIdentifierHasBeenSet = true; m_alarmIdentifier = std::forward<AlarmIdentifierT>(value); }
384 template<typename AlarmIdentifierT = AlarmIdentifier>
385 UpdateHealthCheckRequest& WithAlarmIdentifier(AlarmIdentifierT&& value) { SetAlarmIdentifier(std::forward<AlarmIdentifierT>(value)); return *this;}
387
389
400 inline InsufficientDataHealthStatus GetInsufficientDataHealthStatus() const { return m_insufficientDataHealthStatus; }
401 inline bool InsufficientDataHealthStatusHasBeenSet() const { return m_insufficientDataHealthStatusHasBeenSet; }
402 inline void SetInsufficientDataHealthStatus(InsufficientDataHealthStatus value) { m_insufficientDataHealthStatusHasBeenSet = true; m_insufficientDataHealthStatus = value; }
405
407
423 inline const Aws::Vector<ResettableElementName>& GetResetElements() const { return m_resetElements; }
424 inline bool ResetElementsHasBeenSet() const { return m_resetElementsHasBeenSet; }
425 template<typename ResetElementsT = Aws::Vector<ResettableElementName>>
426 void SetResetElements(ResetElementsT&& value) { m_resetElementsHasBeenSet = true; m_resetElements = std::forward<ResetElementsT>(value); }
427 template<typename ResetElementsT = Aws::Vector<ResettableElementName>>
428 UpdateHealthCheckRequest& WithResetElements(ResetElementsT&& value) { SetResetElements(std::forward<ResetElementsT>(value)); return *this;}
429 inline UpdateHealthCheckRequest& AddResetElements(ResettableElementName value) { m_resetElementsHasBeenSet = true; m_resetElements.push_back(value); return *this; }
431 private:
432
433 Aws::String m_healthCheckId;
434 bool m_healthCheckIdHasBeenSet = false;
435
436 long long m_healthCheckVersion{0};
437 bool m_healthCheckVersionHasBeenSet = false;
438
439 Aws::String m_iPAddress;
440 bool m_iPAddressHasBeenSet = false;
441
442 int m_port{0};
443 bool m_portHasBeenSet = false;
444
445 Aws::String m_resourcePath;
446 bool m_resourcePathHasBeenSet = false;
447
448 Aws::String m_fullyQualifiedDomainName;
449 bool m_fullyQualifiedDomainNameHasBeenSet = false;
450
451 Aws::String m_searchString;
452 bool m_searchStringHasBeenSet = false;
453
454 int m_failureThreshold{0};
455 bool m_failureThresholdHasBeenSet = false;
456
457 bool m_inverted{false};
458 bool m_invertedHasBeenSet = false;
459
460 bool m_disabled{false};
461 bool m_disabledHasBeenSet = false;
462
463 int m_healthThreshold{0};
464 bool m_healthThresholdHasBeenSet = false;
465
466 Aws::Vector<Aws::String> m_childHealthChecks;
467 bool m_childHealthChecksHasBeenSet = false;
468
469 bool m_enableSNI{false};
470 bool m_enableSNIHasBeenSet = false;
471
473 bool m_regionsHasBeenSet = false;
474
475 AlarmIdentifier m_alarmIdentifier;
476 bool m_alarmIdentifierHasBeenSet = false;
477
479 bool m_insufficientDataHealthStatusHasBeenSet = false;
480
482 bool m_resetElementsHasBeenSet = false;
483 };
484
485} // namespace Model
486} // namespace Route53
487} // 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