AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListGroupsRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace QBusiness
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_QBUSINESS_API ListGroupsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListGroups"; }
36
37 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
38
39 AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
47 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
48 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
49 template<typename ApplicationIdT = Aws::String>
50 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
51 template<typename ApplicationIdT = Aws::String>
52 ListGroupsRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetIndexId() const { return m_indexId; }
60 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
61 template<typename IndexIdT = Aws::String>
62 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
63 template<typename IndexIdT = Aws::String>
64 ListGroupsRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
66
68
72 inline const Aws::Utils::DateTime& GetUpdatedEarlierThan() const { return m_updatedEarlierThan; }
73 inline bool UpdatedEarlierThanHasBeenSet() const { return m_updatedEarlierThanHasBeenSet; }
74 template<typename UpdatedEarlierThanT = Aws::Utils::DateTime>
75 void SetUpdatedEarlierThan(UpdatedEarlierThanT&& value) { m_updatedEarlierThanHasBeenSet = true; m_updatedEarlierThan = std::forward<UpdatedEarlierThanT>(value); }
76 template<typename UpdatedEarlierThanT = Aws::Utils::DateTime>
77 ListGroupsRequest& WithUpdatedEarlierThan(UpdatedEarlierThanT&& value) { SetUpdatedEarlierThan(std::forward<UpdatedEarlierThanT>(value)); return *this;}
79
81
85 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
86 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
87 template<typename DataSourceIdT = Aws::String>
88 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
89 template<typename DataSourceIdT = Aws::String>
90 ListGroupsRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
92
94
100 inline const Aws::String& GetNextToken() const { return m_nextToken; }
101 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
102 template<typename NextTokenT = Aws::String>
103 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
104 template<typename NextTokenT = Aws::String>
105 ListGroupsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
107
109
112 inline int GetMaxResults() const { return m_maxResults; }
113 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
114 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
115 inline ListGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
117 private:
118
119 Aws::String m_applicationId;
120 bool m_applicationIdHasBeenSet = false;
121
122 Aws::String m_indexId;
123 bool m_indexIdHasBeenSet = false;
124
125 Aws::Utils::DateTime m_updatedEarlierThan{};
126 bool m_updatedEarlierThanHasBeenSet = false;
127
128 Aws::String m_dataSourceId;
129 bool m_dataSourceIdHasBeenSet = false;
130
131 Aws::String m_nextToken;
132 bool m_nextTokenHasBeenSet = false;
133
134 int m_maxResults{0};
135 bool m_maxResultsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace QBusiness
140} // namespace Aws
ListGroupsRequest & WithIndexId(IndexIdT &&value)
void SetDataSourceId(DataSourceIdT &&value)
const Aws::String & GetDataSourceId() const
AWS_QBUSINESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListGroupsRequest & WithNextToken(NextTokenT &&value)
ListGroupsRequest & WithApplicationId(ApplicationIdT &&value)
virtual const char * GetServiceRequestName() const override
void SetUpdatedEarlierThan(UpdatedEarlierThanT &&value)
void SetApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
ListGroupsRequest & WithDataSourceId(DataSourceIdT &&value)
ListGroupsRequest & WithMaxResults(int value)
AWS_QBUSINESS_API ListGroupsRequest()=default
ListGroupsRequest & WithUpdatedEarlierThan(UpdatedEarlierThanT &&value)
const Aws::Utils::DateTime & GetUpdatedEarlierThan() const
const Aws::String & GetApplicationId() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String