AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeTargetGroupsResult.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticloadbalancingv2/model/ResponseMetadata.h>
11#include <aws/elasticloadbalancingv2/model/TargetGroup.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace ElasticLoadBalancingv2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_ELASTICLOADBALANCINGV2_API DescribeTargetGroupsResult() = default;
36
37
39
42 inline const Aws::Vector<TargetGroup>& GetTargetGroups() const { return m_targetGroups; }
43 template<typename TargetGroupsT = Aws::Vector<TargetGroup>>
44 void SetTargetGroups(TargetGroupsT&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups = std::forward<TargetGroupsT>(value); }
45 template<typename TargetGroupsT = Aws::Vector<TargetGroup>>
46 DescribeTargetGroupsResult& WithTargetGroups(TargetGroupsT&& value) { SetTargetGroups(std::forward<TargetGroupsT>(value)); return *this;}
47 template<typename TargetGroupsT = TargetGroup>
48 DescribeTargetGroupsResult& AddTargetGroups(TargetGroupsT&& value) { m_targetGroupsHasBeenSet = true; m_targetGroups.emplace_back(std::forward<TargetGroupsT>(value)); return *this; }
50
52
56 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
57 template<typename NextMarkerT = Aws::String>
58 void SetNextMarker(NextMarkerT&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::forward<NextMarkerT>(value); }
59 template<typename NextMarkerT = Aws::String>
60 DescribeTargetGroupsResult& WithNextMarker(NextMarkerT&& value) { SetNextMarker(std::forward<NextMarkerT>(value)); return *this;}
62
64
65 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
66 template<typename ResponseMetadataT = ResponseMetadata>
67 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
68 template<typename ResponseMetadataT = ResponseMetadata>
69 DescribeTargetGroupsResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
71 private:
72
73 Aws::Vector<TargetGroup> m_targetGroups;
74 bool m_targetGroupsHasBeenSet = false;
75
76 Aws::String m_nextMarker;
77 bool m_nextMarkerHasBeenSet = false;
78
79 ResponseMetadata m_responseMetadata;
80 bool m_responseMetadataHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ElasticLoadBalancingv2
85} // 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