AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
GetHealthCheckStatusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53/Route53_EXPORTS.h>
11#include <aws/route53/model/HealthCheckObservation.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace Route53 {
25namespace Model {
33 public:
34 AWS_ROUTE53_API GetHealthCheckStatusResult() = default;
37
39
44 inline const Aws::Vector<HealthCheckObservation>& GetHealthCheckObservations() const { return m_healthCheckObservations; }
45 template <typename HealthCheckObservationsT = Aws::Vector<HealthCheckObservation>>
46 void SetHealthCheckObservations(HealthCheckObservationsT&& value) {
47 m_healthCheckObservationsHasBeenSet = true;
48 m_healthCheckObservations = std::forward<HealthCheckObservationsT>(value);
49 }
50 template <typename HealthCheckObservationsT = Aws::Vector<HealthCheckObservation>>
51 GetHealthCheckStatusResult& WithHealthCheckObservations(HealthCheckObservationsT&& value) {
52 SetHealthCheckObservations(std::forward<HealthCheckObservationsT>(value));
53 return *this;
54 }
55 template <typename HealthCheckObservationsT = HealthCheckObservation>
56 GetHealthCheckStatusResult& AddHealthCheckObservations(HealthCheckObservationsT&& value) {
57 m_healthCheckObservationsHasBeenSet = true;
58 m_healthCheckObservations.emplace_back(std::forward<HealthCheckObservationsT>(value));
59 return *this;
60 }
62
64
65 inline const Aws::String& GetRequestId() const { return m_requestId; }
66 template <typename RequestIdT = Aws::String>
67 void SetRequestId(RequestIdT&& value) {
68 m_requestIdHasBeenSet = true;
69 m_requestId = std::forward<RequestIdT>(value);
70 }
71 template <typename RequestIdT = Aws::String>
73 SetRequestId(std::forward<RequestIdT>(value));
74 return *this;
75 }
77 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
78
79 private:
80 Aws::Vector<HealthCheckObservation> m_healthCheckObservations;
81
82 Aws::String m_requestId;
83 Aws::Http::HttpResponseCode m_HttpResponseCode;
84 bool m_healthCheckObservationsHasBeenSet = false;
85 bool m_requestIdHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Route53
90} // namespace Aws
GetHealthCheckStatusResult & WithHealthCheckObservations(HealthCheckObservationsT &&value)
AWS_ROUTE53_API GetHealthCheckStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetHealthCheckStatusResult & AddHealthCheckObservations(HealthCheckObservationsT &&value)
void SetHealthCheckObservations(HealthCheckObservationsT &&value)
AWS_ROUTE53_API GetHealthCheckStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< HealthCheckObservation > & GetHealthCheckObservations() const
AWS_ROUTE53_API GetHealthCheckStatusResult()=default
GetHealthCheckStatusResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument