AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ModifyTargetGroupAttributesResult.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/TargetGroupAttribute.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 ModifyTargetGroupAttributesResult() = default;
29 AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupAttributesResult& operator=(
31
33
36 inline const Aws::Vector<TargetGroupAttribute>& GetAttributes() const { return m_attributes; }
37 template <typename AttributesT = Aws::Vector<TargetGroupAttribute>>
38 void SetAttributes(AttributesT&& value) {
39 m_attributesHasBeenSet = true;
40 m_attributes = std::forward<AttributesT>(value);
41 }
42 template <typename AttributesT = Aws::Vector<TargetGroupAttribute>>
44 SetAttributes(std::forward<AttributesT>(value));
45 return *this;
46 }
47 template <typename AttributesT = TargetGroupAttribute>
49 m_attributesHasBeenSet = true;
50 m_attributes.emplace_back(std::forward<AttributesT>(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>
65 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
66 return *this;
67 }
69 private:
71
72 ResponseMetadata m_responseMetadata;
73 bool m_attributesHasBeenSet = false;
74 bool m_responseMetadataHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ElasticLoadBalancingv2
79} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifyTargetGroupAttributesResult & WithAttributes(AttributesT &&value)
AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_ELASTICLOADBALANCINGV2_API ModifyTargetGroupAttributesResult()=default
ModifyTargetGroupAttributesResult & WithResponseMetadata(ResponseMetadataT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument