AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeRulesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.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/Rule.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 DescribeRulesResult() = default;
31
33
36 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
37 template <typename RulesT = Aws::Vector<Rule>>
38 void SetRules(RulesT&& value) {
39 m_rulesHasBeenSet = true;
40 m_rules = std::forward<RulesT>(value);
41 }
42 template <typename RulesT = Aws::Vector<Rule>>
43 DescribeRulesResult& WithRules(RulesT&& value) {
44 SetRules(std::forward<RulesT>(value));
45 return *this;
46 }
47 template <typename RulesT = Rule>
48 DescribeRulesResult& AddRules(RulesT&& value) {
49 m_rulesHasBeenSet = true;
50 m_rules.emplace_back(std::forward<RulesT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
61 template <typename NextMarkerT = Aws::String>
62 void SetNextMarker(NextMarkerT&& value) {
63 m_nextMarkerHasBeenSet = true;
64 m_nextMarker = std::forward<NextMarkerT>(value);
65 }
66 template <typename NextMarkerT = Aws::String>
67 DescribeRulesResult& WithNextMarker(NextMarkerT&& value) {
68 SetNextMarker(std::forward<NextMarkerT>(value));
69 return *this;
70 }
72
74
75 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
76 template <typename ResponseMetadataT = ResponseMetadata>
77 void SetResponseMetadata(ResponseMetadataT&& value) {
78 m_responseMetadataHasBeenSet = true;
79 m_responseMetadata = std::forward<ResponseMetadataT>(value);
80 }
81 template <typename ResponseMetadataT = ResponseMetadata>
82 DescribeRulesResult& WithResponseMetadata(ResponseMetadataT&& value) {
83 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
84 return *this;
85 }
87 private:
88 Aws::Vector<Rule> m_rules;
89
90 Aws::String m_nextMarker;
91
92 ResponseMetadata m_responseMetadata;
93 bool m_rulesHasBeenSet = false;
94 bool m_nextMarkerHasBeenSet = false;
95 bool m_responseMetadataHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ElasticLoadBalancingv2
100} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API DescribeRulesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_ELASTICLOADBALANCINGV2_API DescribeRulesResult()=default
DescribeRulesResult & WithNextMarker(NextMarkerT &&value)
DescribeRulesResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICLOADBALANCINGV2_API DescribeRulesResult(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