AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
58 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
59 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
60 inline ListRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
61 inline ListRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
62 inline ListRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
64
66
73 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
74 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
76 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
77 inline ListRulesRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
78 inline ListRulesRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
80
82
86 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
87 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
88 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
89 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
90 inline ListRulesRequest& WithResourceTags(const Aws::Vector<ResourceTag>& value) { SetResourceTags(value); return *this;}
91 inline ListRulesRequest& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
92 inline ListRulesRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
93 inline ListRulesRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
95
97
101 inline const LockState& GetLockState() const{ return m_lockState; }
102 inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; }
103 inline void SetLockState(const LockState& value) { m_lockStateHasBeenSet = true; m_lockState = value; }
104 inline void SetLockState(LockState&& value) { m_lockStateHasBeenSet = true; m_lockState = std::move(value); }
105 inline ListRulesRequest& WithLockState(const LockState& value) { SetLockState(value); return *this;}
106 inline ListRulesRequest& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;}
108 private:
109
110 int m_maxResults;
111 bool m_maxResultsHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115
116 ResourceType m_resourceType;
117 bool m_resourceTypeHasBeenSet = false;
118
119 Aws::Vector<ResourceTag> m_resourceTags;
120 bool m_resourceTagsHasBeenSet = false;
121
122 LockState m_lockState;
123 bool m_lockStateHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace RecycleBin
128} // namespace Aws
ListRulesRequest & AddResourceTags(ResourceTag &&value)
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
ListRulesRequest & WithResourceType(ResourceType &&value)
ListRulesRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetResourceType(const ResourceType &value)
ListRulesRequest & WithResourceTags(const Aws::Vector< ResourceTag > &value)
ListRulesRequest & WithMaxResults(int value)
ListRulesRequest & WithResourceType(const ResourceType &value)
void SetResourceType(ResourceType &&value)
ListRulesRequest & WithLockState(LockState &&value)
void SetResourceTags(Aws::Vector< ResourceTag > &&value)
const ResourceType & GetResourceType() const
ListRulesRequest & AddResourceTags(const ResourceTag &value)
ListRulesRequest & WithNextToken(const Aws::String &value)
void SetLockState(const LockState &value)
const Aws::String & GetNextToken() const
const Aws::Vector< ResourceTag > & GetResourceTags() const
AWS_RECYCLEBIN_API Aws::String SerializePayload() const override
ListRulesRequest & WithLockState(const LockState &value)
ListRulesRequest & WithNextToken(const char *value)
ListRulesRequest & WithResourceTags(Aws::Vector< ResourceTag > &&value)
void SetNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector