AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
DescribeTargetGroupsResult.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/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/ResponseMetadata.h>
12#include <aws/elasticloadbalancingv2/model/TargetGroup.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace ElasticLoadBalancingv2 {
26namespace Model {
28 public:
29 AWS_ELASTICLOADBALANCINGV2_API DescribeTargetGroupsResult() = default;
31 AWS_ELASTICLOADBALANCINGV2_API DescribeTargetGroupsResult& operator=(
33
35
38 inline const Aws::Vector<TargetGroup>& GetTargetGroups() const { return m_targetGroups; }
39 template <typename TargetGroupsT = Aws::Vector<TargetGroup>>
40 void SetTargetGroups(TargetGroupsT&& value) {
41 m_targetGroupsHasBeenSet = true;
42 m_targetGroups = std::forward<TargetGroupsT>(value);
43 }
44 template <typename TargetGroupsT = Aws::Vector<TargetGroup>>
46 SetTargetGroups(std::forward<TargetGroupsT>(value));
47 return *this;
48 }
49 template <typename TargetGroupsT = TargetGroup>
51 m_targetGroupsHasBeenSet = true;
52 m_targetGroups.emplace_back(std::forward<TargetGroupsT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
63 template <typename NextMarkerT = Aws::String>
64 void SetNextMarker(NextMarkerT&& value) {
65 m_nextMarkerHasBeenSet = true;
66 m_nextMarker = std::forward<NextMarkerT>(value);
67 }
68 template <typename NextMarkerT = Aws::String>
70 SetNextMarker(std::forward<NextMarkerT>(value));
71 return *this;
72 }
74
76
77 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
78 template <typename ResponseMetadataT = ResponseMetadata>
79 void SetResponseMetadata(ResponseMetadataT&& value) {
80 m_responseMetadataHasBeenSet = true;
81 m_responseMetadata = std::forward<ResponseMetadataT>(value);
82 }
83 template <typename ResponseMetadataT = ResponseMetadata>
85 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
86 return *this;
87 }
89 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
90
91 private:
92 Aws::Vector<TargetGroup> m_targetGroups;
93
94 Aws::String m_nextMarker;
95
96 ResponseMetadata m_responseMetadata;
97 Aws::Http::HttpResponseCode m_HttpResponseCode;
98 bool m_targetGroupsHasBeenSet = false;
99 bool m_nextMarkerHasBeenSet = false;
100 bool m_responseMetadataHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ElasticLoadBalancingv2
105} // namespace Aws
DescribeTargetGroupsResult & WithTargetGroups(TargetGroupsT &&value)
DescribeTargetGroupsResult & AddTargetGroups(TargetGroupsT &&value)
AWS_ELASTICLOADBALANCINGV2_API DescribeTargetGroupsResult()=default
DescribeTargetGroupsResult & WithResponseMetadata(ResponseMetadataT &&value)
DescribeTargetGroupsResult & WithNextMarker(NextMarkerT &&value)
AWS_ELASTICLOADBALANCINGV2_API DescribeTargetGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_ELASTICLOADBALANCINGV2_API DescribeTargetGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument