AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeRulesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11#include <aws/elasticloadbalancingv2/model/ResponseMetadata.h>
12#include <aws/elasticloadbalancingv2/model/Rule.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace ElasticLoadBalancingv2 {
26namespace Model {
28 public:
29 AWS_ELASTICLOADBALANCINGV2_API DescribeRulesResult() = default;
32
34
37 inline const Aws::Vector<Rule>& GetRules() const { return m_rules; }
38 template <typename RulesT = Aws::Vector<Rule>>
39 void SetRules(RulesT&& value) {
40 m_rulesHasBeenSet = true;
41 m_rules = std::forward<RulesT>(value);
42 }
43 template <typename RulesT = Aws::Vector<Rule>>
44 DescribeRulesResult& WithRules(RulesT&& value) {
45 SetRules(std::forward<RulesT>(value));
46 return *this;
47 }
48 template <typename RulesT = Rule>
49 DescribeRulesResult& AddRules(RulesT&& value) {
50 m_rulesHasBeenSet = true;
51 m_rules.emplace_back(std::forward<RulesT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
62 template <typename NextMarkerT = Aws::String>
63 void SetNextMarker(NextMarkerT&& value) {
64 m_nextMarkerHasBeenSet = true;
65 m_nextMarker = std::forward<NextMarkerT>(value);
66 }
67 template <typename NextMarkerT = Aws::String>
68 DescribeRulesResult& WithNextMarker(NextMarkerT&& value) {
69 SetNextMarker(std::forward<NextMarkerT>(value));
70 return *this;
71 }
73
75
76 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
77 template <typename ResponseMetadataT = ResponseMetadata>
78 void SetResponseMetadata(ResponseMetadataT&& value) {
79 m_responseMetadataHasBeenSet = true;
80 m_responseMetadata = std::forward<ResponseMetadataT>(value);
81 }
82 template <typename ResponseMetadataT = ResponseMetadata>
83 DescribeRulesResult& WithResponseMetadata(ResponseMetadataT&& value) {
84 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
85 return *this;
86 }
88 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
89
90 private:
91 Aws::Vector<Rule> m_rules;
92
93 Aws::String m_nextMarker;
94
95 ResponseMetadata m_responseMetadata;
96 Aws::Http::HttpResponseCode m_HttpResponseCode;
97 bool m_rulesHasBeenSet = false;
98 bool m_nextMarkerHasBeenSet = false;
99 bool m_responseMetadataHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace ElasticLoadBalancingv2
104} // 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