AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
ModifyTargetGroupResult.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/TargetGroup.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 ModifyTargetGroupResult() = default;
30 AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupResult& operator=(
32
34
37 inline const Aws::Vector<TargetGroup>& GetTargetGroups() const { return m_targetGroups; }
38 template <typename TargetGroupsT = Aws::Vector<TargetGroup>>
39 void SetTargetGroups(TargetGroupsT&& value) {
40 m_targetGroupsHasBeenSet = true;
41 m_targetGroups = std::forward<TargetGroupsT>(value);
42 }
43 template <typename TargetGroupsT = Aws::Vector<TargetGroup>>
44 ModifyTargetGroupResult& WithTargetGroups(TargetGroupsT&& value) {
45 SetTargetGroups(std::forward<TargetGroupsT>(value));
46 return *this;
47 }
48 template <typename TargetGroupsT = TargetGroup>
49 ModifyTargetGroupResult& AddTargetGroups(TargetGroupsT&& value) {
50 m_targetGroupsHasBeenSet = true;
51 m_targetGroups.emplace_back(std::forward<TargetGroupsT>(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>
65 ModifyTargetGroupResult& WithResponseMetadata(ResponseMetadataT&& value) {
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<TargetGroup> m_targetGroups;
74
75 ResponseMetadata m_responseMetadata;
76 Aws::Http::HttpResponseCode m_HttpResponseCode;
77 bool m_targetGroupsHasBeenSet = false;
78 bool m_responseMetadataHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace ElasticLoadBalancingv2
83} // namespace Aws
ModifyTargetGroupResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifyTargetGroupResult & AddTargetGroups(TargetGroupsT &&value)
AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifyTargetGroupResult & WithTargetGroups(TargetGroupsT &&value)
AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupResult()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument