AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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