AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
DescribeTargetHealthResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10#include <aws/elasticloadbalancingv2/model/ResponseMetadata.h>
11#include <aws/elasticloadbalancingv2/model/TargetHealthDescription.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 ElasticLoadBalancingv2 {
25namespace Model {
27 public:
28 AWS_ELASTICLOADBALANCINGV2_API DescribeTargetHealthResult() = default;
30 AWS_ELASTICLOADBALANCINGV2_API DescribeTargetHealthResult& operator=(
32
34
37 inline const Aws::Vector<TargetHealthDescription>& GetTargetHealthDescriptions() const { return m_targetHealthDescriptions; }
38 template <typename TargetHealthDescriptionsT = Aws::Vector<TargetHealthDescription>>
39 void SetTargetHealthDescriptions(TargetHealthDescriptionsT&& value) {
40 m_targetHealthDescriptionsHasBeenSet = true;
41 m_targetHealthDescriptions = std::forward<TargetHealthDescriptionsT>(value);
42 }
43 template <typename TargetHealthDescriptionsT = Aws::Vector<TargetHealthDescription>>
44 DescribeTargetHealthResult& WithTargetHealthDescriptions(TargetHealthDescriptionsT&& value) {
45 SetTargetHealthDescriptions(std::forward<TargetHealthDescriptionsT>(value));
46 return *this;
47 }
48 template <typename TargetHealthDescriptionsT = TargetHealthDescription>
49 DescribeTargetHealthResult& AddTargetHealthDescriptions(TargetHealthDescriptionsT&& value) {
50 m_targetHealthDescriptionsHasBeenSet = true;
51 m_targetHealthDescriptions.emplace_back(std::forward<TargetHealthDescriptionsT>(value));
52 return *this;
53 }
55
57
58 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
59 template <typename ResponseMetadataT = ResponseMetadata>
60 void SetResponseMetadata(ResponseMetadataT&& value) {
61 m_responseMetadataHasBeenSet = true;
62 m_responseMetadata = std::forward<ResponseMetadataT>(value);
63 }
64 template <typename ResponseMetadataT = ResponseMetadata>
66 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
67 return *this;
68 }
70 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
71
72 private:
73 Aws::Vector<TargetHealthDescription> m_targetHealthDescriptions;
74
75 ResponseMetadata m_responseMetadata;
76 Aws::Http::HttpResponseCode m_HttpResponseCode;
77 bool m_targetHealthDescriptionsHasBeenSet = false;
78 bool m_responseMetadataHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace ElasticLoadBalancingv2
83} // namespace Aws
const Aws::Vector< TargetHealthDescription > & GetTargetHealthDescriptions() const
AWS_ELASTICLOADBALANCINGV2_API DescribeTargetHealthResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_ELASTICLOADBALANCINGV2_API DescribeTargetHealthResult()=default
DescribeTargetHealthResult & WithTargetHealthDescriptions(TargetHealthDescriptionsT &&value)
DescribeTargetHealthResult & AddTargetHealthDescriptions(TargetHealthDescriptionsT &&value)
DescribeTargetHealthResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICLOADBALANCINGV2_API DescribeTargetHealthResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument