AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListRulesRequest.h
1
6#pragma once
7#include <aws/rbin/RecycleBin_EXPORTS.h>
8#include <aws/rbin/RecycleBinRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rbin/model/ResourceType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rbin/model/LockState.h>
13#include <aws/rbin/model/ResourceTag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace RecycleBin
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_RECYCLEBIN_API ListRulesRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListRules"; }
35
36 AWS_RECYCLEBIN_API Aws::String SerializePayload() const override;
37
38
40
45 inline int GetMaxResults() const { return m_maxResults; }
46 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
47 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
48 inline ListRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
50
52
55 inline const Aws::String& GetNextToken() const { return m_nextToken; }
56 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
57 template<typename NextTokenT = Aws::String>
58 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
59 template<typename NextTokenT = Aws::String>
60 ListRulesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
62
64
71 inline ResourceType GetResourceType() const { return m_resourceType; }
72 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
73 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
74 inline ListRulesRequest& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
76
78
82 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
83 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
84 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
85 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
86 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
87 ListRulesRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
88 template<typename ResourceTagsT = ResourceTag>
89 ListRulesRequest& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
91
93
97 inline LockState GetLockState() const { return m_lockState; }
98 inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; }
99 inline void SetLockState(LockState value) { m_lockStateHasBeenSet = true; m_lockState = value; }
100 inline ListRulesRequest& WithLockState(LockState value) { SetLockState(value); return *this;}
102
104
109 inline const Aws::Vector<ResourceTag>& GetExcludeResourceTags() const { return m_excludeResourceTags; }
110 inline bool ExcludeResourceTagsHasBeenSet() const { return m_excludeResourceTagsHasBeenSet; }
111 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
112 void SetExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags = std::forward<ExcludeResourceTagsT>(value); }
113 template<typename ExcludeResourceTagsT = Aws::Vector<ResourceTag>>
114 ListRulesRequest& WithExcludeResourceTags(ExcludeResourceTagsT&& value) { SetExcludeResourceTags(std::forward<ExcludeResourceTagsT>(value)); return *this;}
115 template<typename ExcludeResourceTagsT = ResourceTag>
116 ListRulesRequest& AddExcludeResourceTags(ExcludeResourceTagsT&& value) { m_excludeResourceTagsHasBeenSet = true; m_excludeResourceTags.emplace_back(std::forward<ExcludeResourceTagsT>(value)); return *this; }
118 private:
119
120 int m_maxResults{0};
121 bool m_maxResultsHasBeenSet = false;
122
123 Aws::String m_nextToken;
124 bool m_nextTokenHasBeenSet = false;
125
126 ResourceType m_resourceType{ResourceType::NOT_SET};
127 bool m_resourceTypeHasBeenSet = false;
128
129 Aws::Vector<ResourceTag> m_resourceTags;
130 bool m_resourceTagsHasBeenSet = false;
131
132 LockState m_lockState{LockState::NOT_SET};
133 bool m_lockStateHasBeenSet = false;
134
135 Aws::Vector<ResourceTag> m_excludeResourceTags;
136 bool m_excludeResourceTagsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace RecycleBin
141} // 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