AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateHealthCheckSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53/Route53Request.h>
11#include <aws/route53/Route53_EXPORTS.h>
12#include <aws/route53/model/HealthCheckSourceConfig.h>
13#include <aws/route53/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Route53 {
19namespace Model {
20
29 public:
30 AWS_ROUTE53_API CreateHealthCheckSourceRequest() = 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 "CreateHealthCheckSource"; }
37
38 AWS_ROUTE53_API Aws::String SerializePayload() const override;
39
41
53 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
54 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
55 template <typename CallerReferenceT = Aws::String>
56 void SetCallerReference(CallerReferenceT&& value) {
57 m_callerReferenceHasBeenSet = true;
58 m_callerReference = std::forward<CallerReferenceT>(value);
59 }
60 template <typename CallerReferenceT = Aws::String>
62 SetCallerReference(std::forward<CallerReferenceT>(value));
63 return *this;
64 }
66
68
72 inline const HealthCheckSourceConfig& GetHealthCheckSourceConfig() const { return m_healthCheckSourceConfig; }
73 inline bool HealthCheckSourceConfigHasBeenSet() const { return m_healthCheckSourceConfigHasBeenSet; }
74 template <typename HealthCheckSourceConfigT = HealthCheckSourceConfig>
75 void SetHealthCheckSourceConfig(HealthCheckSourceConfigT&& value) {
76 m_healthCheckSourceConfigHasBeenSet = true;
77 m_healthCheckSourceConfig = std::forward<HealthCheckSourceConfigT>(value);
78 }
79 template <typename HealthCheckSourceConfigT = HealthCheckSourceConfig>
81 SetHealthCheckSourceConfig(std::forward<HealthCheckSourceConfigT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template <typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) {
95 m_tagsHasBeenSet = true;
96 m_tags = std::forward<TagsT>(value);
97 }
98 template <typename TagsT = Aws::Vector<Tag>>
100 SetTags(std::forward<TagsT>(value));
101 return *this;
102 }
103 template <typename TagsT = Tag>
105 m_tagsHasBeenSet = true;
106 m_tags.emplace_back(std::forward<TagsT>(value));
107 return *this;
108 }
110 private:
112
113 HealthCheckSourceConfig m_healthCheckSourceConfig;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_callerReferenceHasBeenSet = true;
117 bool m_healthCheckSourceConfigHasBeenSet = false;
118 bool m_tagsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Route53
123} // namespace Aws
CreateHealthCheckSourceRequest & WithCallerReference(CallerReferenceT &&value)
CreateHealthCheckSourceRequest & WithTags(TagsT &&value)
CreateHealthCheckSourceRequest & AddTags(TagsT &&value)
AWS_ROUTE53_API Aws::String SerializePayload() const override
CreateHealthCheckSourceRequest & WithHealthCheckSourceConfig(HealthCheckSourceConfigT &&value)
AWS_ROUTE53_API CreateHealthCheckSourceRequest()=default
const HealthCheckSourceConfig & GetHealthCheckSourceConfig() const
void SetHealthCheckSourceConfig(HealthCheckSourceConfigT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector