AWS SDK for C++

AWS SDK for C++ Version 1.11.680

Loading...
Searching...
No Matches
ListRulesRequest.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/rbin/RecycleBinRequest.h>
10#include <aws/rbin/RecycleBin_EXPORTS.h>
11#include <aws/rbin/model/LockState.h>
12#include <aws/rbin/model/ResourceTag.h>
13#include <aws/rbin/model/ResourceType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace RecycleBin {
19namespace Model {
20
24 public:
25 AWS_RECYCLEBIN_API ListRulesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListRules"; }
32
33 AWS_RECYCLEBIN_API Aws::String SerializePayload() const override;
34
36
41 inline int GetMaxResults() const { return m_maxResults; }
42 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
43 inline void SetMaxResults(int value) {
44 m_maxResultsHasBeenSet = true;
45 m_maxResults = value;
46 }
47 inline ListRulesRequest& WithMaxResults(int value) {
48 SetMaxResults(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
65 ListRulesRequest& WithNextToken(NextTokenT&& value) {
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
79 inline ResourceType GetResourceType() const { return m_resourceType; }
80 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
81 inline void SetResourceType(ResourceType value) {
82 m_resourceTypeHasBeenSet = true;
83 m_resourceType = value;
84 }
86 SetResourceType(value);
87 return *this;
88 }
90
92
96 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
97 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
98 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
99 void SetResourceTags(ResourceTagsT&& value) {
100 m_resourceTagsHasBeenSet = true;
101 m_resourceTags = std::forward<ResourceTagsT>(value);
102 }
103 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
104 ListRulesRequest& WithResourceTags(ResourceTagsT&& value) {
105 SetResourceTags(std::forward<ResourceTagsT>(value));
106 return *this;
107 }
108 template <typename ResourceTagsT = ResourceTag>
109 ListRulesRequest& AddResourceTags(ResourceTagsT&& value) {
110 m_resourceTagsHasBeenSet = true;
111 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
112 return *this;
113 }
115
117
121 inline LockState GetLockState() const { return m_lockState; }
122 inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; }
123 inline void SetLockState(LockState value) {
124 m_lockStateHasBeenSet = true;
125 m_lockState = value;
126 }
128 SetLockState(value);
129 return *this;
130 }
132
134
139 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
140 inline bool ExcludeResourceTagsHasBeenSet() const { return m_excludeResourceTagsHasBeenSet; }
141 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
142 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
143 m_excludeResourceTagsHasBeenSet = true;
144 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
145 }
146 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
147 ListRulesRequest& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
148 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
149 return *this;
150 }
151 template <typename ExcludeResourceTagsT = ResourceTag>
152 ListRulesRequest& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
153 m_excludeResourceTagsHasBeenSet = true;
154 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
155 return *this;
156 }
158 private:
159 int m_maxResults{0};
160 bool m_maxResultsHasBeenSet = false;
161
162 Aws::String m_nextToken;
163 bool m_nextTokenHasBeenSet = false;
164
165 ResourceType m_resourceType{ResourceType::NOT_SET};
166 bool m_resourceTypeHasBeenSet = false;
167
168 Aws::Vector<ResourceTag> m_resourceTags;
169 bool m_resourceTagsHasBeenSet = false;
170
171 LockState m_lockState{LockState::NOT_SET};
172 bool m_lockStateHasBeenSet = false;
173
174 Aws::Vector<ResourceTag> m_excludeResourceTags;
175 bool m_excludeResourceTagsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace RecycleBin
180} // namespace Aws
ListRulesRequest & WithResourceType(ResourceType value)
virtual const char * GetServiceRequestName() const override
ListRulesRequest & WithMaxResults(int value)
ListRulesRequest & WithNextToken(NextTokenT &&value)
ListRulesRequest & WithResourceTags(ResourceTagsT &&value)
ListRulesRequest & AddExcludeResourceTags(ExcludeResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetExcludeResourceTags() const
ListRulesRequest & AddResourceTags(ResourceTagsT &&value)
const Aws::String & GetNextToken() const
const Aws::Vector< ResourceTag > & GetResourceTags() const
ListRulesRequest & WithExcludeResourceTags(ExcludeResourceTagsT &&value)
AWS_RECYCLEBIN_API Aws::String SerializePayload() const override
AWS_RECYCLEBIN_API ListRulesRequest()=default
void SetResourceTags(ResourceTagsT &&value)
ListRulesRequest & WithLockState(LockState value)
void SetExcludeResourceTags(ExcludeResourceTagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector