AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DescribeRulesRequest.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/ElasticLoadBalancingv2Request.h>
10#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ElasticLoadBalancingv2 {
16namespace Model {
17
21 public:
22 AWS_ELASTICLOADBALANCINGV2_API DescribeRulesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeRules"; }
29
30 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetListenerArn() const { return m_listenerArn; }
41 inline bool ListenerArnHasBeenSet() const { return m_listenerArnHasBeenSet; }
42 template <typename ListenerArnT = Aws::String>
43 void SetListenerArn(ListenerArnT&& value) {
44 m_listenerArnHasBeenSet = true;
45 m_listenerArn = std::forward<ListenerArnT>(value);
46 }
47 template <typename ListenerArnT = Aws::String>
48 DescribeRulesRequest& WithListenerArn(ListenerArnT&& value) {
49 SetListenerArn(std::forward<ListenerArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetRuleArns() const { return m_ruleArns; }
59 inline bool RuleArnsHasBeenSet() const { return m_ruleArnsHasBeenSet; }
60 template <typename RuleArnsT = Aws::Vector<Aws::String>>
61 void SetRuleArns(RuleArnsT&& value) {
62 m_ruleArnsHasBeenSet = true;
63 m_ruleArns = std::forward<RuleArnsT>(value);
64 }
65 template <typename RuleArnsT = Aws::Vector<Aws::String>>
66 DescribeRulesRequest& WithRuleArns(RuleArnsT&& value) {
67 SetRuleArns(std::forward<RuleArnsT>(value));
68 return *this;
69 }
70 template <typename RuleArnsT = Aws::String>
71 DescribeRulesRequest& AddRuleArns(RuleArnsT&& value) {
72 m_ruleArnsHasBeenSet = true;
73 m_ruleArns.emplace_back(std::forward<RuleArnsT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetMarker() const { return m_marker; }
84 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
85 template <typename MarkerT = Aws::String>
86 void SetMarker(MarkerT&& value) {
87 m_markerHasBeenSet = true;
88 m_marker = std::forward<MarkerT>(value);
89 }
90 template <typename MarkerT = Aws::String>
91 DescribeRulesRequest& WithMarker(MarkerT&& value) {
92 SetMarker(std::forward<MarkerT>(value));
93 return *this;
94 }
96
98
101 inline int GetPageSize() const { return m_pageSize; }
102 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
103 inline void SetPageSize(int value) {
104 m_pageSizeHasBeenSet = true;
105 m_pageSize = value;
106 }
108 SetPageSize(value);
109 return *this;
110 }
112 private:
113 Aws::String m_listenerArn;
114
115 Aws::Vector<Aws::String> m_ruleArns;
116
117 Aws::String m_marker;
118
119 int m_pageSize{0};
120 bool m_listenerArnHasBeenSet = false;
121 bool m_ruleArnsHasBeenSet = false;
122 bool m_markerHasBeenSet = false;
123 bool m_pageSizeHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace ElasticLoadBalancingv2
128} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API DescribeRulesRequest()=default
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
DescribeRulesRequest & AddRuleArns(RuleArnsT &&value)
DescribeRulesRequest & WithRuleArns(RuleArnsT &&value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetRuleArns() const
DescribeRulesRequest & WithListenerArn(ListenerArnT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector