AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
81 inline ResourceType GetResourceType() const { return m_resourceType; }
82 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
83 inline void SetResourceType(ResourceType value) {
84 m_resourceTypeHasBeenSet = true;
85 m_resourceType = value;
86 }
88 SetResourceType(value);
89 return *this;
90 }
92
94
98 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
99 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
100 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
101 void SetResourceTags(ResourceTagsT&& value) {
102 m_resourceTagsHasBeenSet = true;
103 m_resourceTags = std::forward<ResourceTagsT>(value);
104 }
105 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
106 ListRulesRequest& WithResourceTags(ResourceTagsT&& value) {
107 SetResourceTags(std::forward<ResourceTagsT>(value));
108 return *this;
109 }
110 template <typename ResourceTagsT = ResourceTag>
111 ListRulesRequest& AddResourceTags(ResourceTagsT&& value) {
112 m_resourceTagsHasBeenSet = true;
113 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
114 return *this;
115 }
117
119
123 inline LockState GetLockState() const { return m_lockState; }
124 inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; }
125 inline void SetLockState(LockState value) {
126 m_lockStateHasBeenSet = true;
127 m_lockState = value;
128 }
130 SetLockState(value);
131 return *this;
132 }
134
136
141 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
142 inline bool ExcludeResourceTagsHasBeenSet() const { return m_excludeResourceTagsHasBeenSet; }
143 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
144 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) {
145 m_excludeResourceTagsHasBeenSet = true;
146 m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value);
147 }
148 template <typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
149 ListRulesRequest& WithExcludeResourceTags(ExcludeResourceTagsT&& value) {
150 SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value));
151 return *this;
152 }
153 template <typename ExcludeResourceTagsT = ResourceTag>
154 ListRulesRequest& AddExcludeResourceTags(ExcludeResourceTagsT&& value) {
155 m_excludeResourceTagsHasBeenSet = true;
156 m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value));
157 return *this;
158 }
160 private:
161 int m_maxResults{0};
162 bool m_maxResultsHasBeenSet = false;
163
164 Aws::String m_nextToken;
165 bool m_nextTokenHasBeenSet = false;
166
167 ResourceType m_resourceType{ResourceType::NOT_SET};
168 bool m_resourceTypeHasBeenSet = false;
169
170 Aws::Vector<ResourceTag> m_resourceTags;
171 bool m_resourceTagsHasBeenSet = false;
172
173 LockState m_lockState{LockState::NOT_SET};
174 bool m_lockStateHasBeenSet = false;
175
176 Aws::Vector<ResourceTag> m_excludeResourceTags;
177 bool m_excludeResourceTagsHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace RecycleBin
182} // 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