AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateHealthCheckRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53/Route53Request.h>
9#include <aws/route53/Route53_EXPORTS.h>
10#include <aws/route53/model/HealthCheckConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Route53 {
16namespace Model {
17
25 public:
26 AWS_ROUTE53_API CreateHealthCheckRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateHealthCheck"; }
33
34 AWS_ROUTE53_API Aws::String SerializePayload() const override;
35
37
59 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
60 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
61 template <typename CallerReferenceT = Aws::String>
62 void SetCallerReference(CallerReferenceT&& value) {
63 m_callerReferenceHasBeenSet = true;
64 m_callerReference = std::forward<CallerReferenceT>(value);
65 }
66 template <typename CallerReferenceT = Aws::String>
67 CreateHealthCheckRequest& WithCallerReference(CallerReferenceT&& value) {
68 SetCallerReference(std::forward<CallerReferenceT>(value));
69 return *this;
70 }
72
74
77 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
78 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
79 template <typename HealthCheckConfigT = HealthCheckConfig>
80 void SetHealthCheckConfig(HealthCheckConfigT&& value) {
81 m_healthCheckConfigHasBeenSet = true;
82 m_healthCheckConfig = std::forward<HealthCheckConfigT>(value);
83 }
84 template <typename HealthCheckConfigT = HealthCheckConfig>
85 CreateHealthCheckRequest& WithHealthCheckConfig(HealthCheckConfigT&& value) {
86 SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_callerReference;
92
93 HealthCheckConfig m_healthCheckConfig;
94 bool m_callerReferenceHasBeenSet = false;
95 bool m_healthCheckConfigHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Route53
100} // namespace Aws
const HealthCheckConfig & GetHealthCheckConfig() const
void SetHealthCheckConfig(HealthCheckConfigT &&value)
CreateHealthCheckRequest & WithHealthCheckConfig(HealthCheckConfigT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ROUTE53_API CreateHealthCheckRequest()=default
AWS_ROUTE53_API Aws::String SerializePayload() const override
CreateHealthCheckRequest & WithCallerReference(CallerReferenceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String