AWS SDK for C++  1.9.126
AWS SDK for C++
ListCommandsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SSM
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ListCommands"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetCommandId() const{ return m_commandId; }
43 
47  inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
48 
52  inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
53 
57  inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
58 
62  inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
63 
67  inline ListCommandsRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
68 
72  inline ListCommandsRequest& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
73 
77  inline ListCommandsRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;}
78 
79 
86  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
87 
94  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
95 
102  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
103 
110  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
111 
118  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
119 
126  inline ListCommandsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
127 
134  inline ListCommandsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
135 
142  inline ListCommandsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
143 
144 
150  inline int GetMaxResults() const{ return m_maxResults; }
151 
157  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
158 
164  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
165 
171  inline ListCommandsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
172 
173 
178  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
179 
184  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
185 
190  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
191 
196  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
197 
202  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
203 
208  inline ListCommandsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
209 
214  inline ListCommandsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
215 
220  inline ListCommandsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
221 
222 
227  inline const Aws::Vector<CommandFilter>& GetFilters() const{ return m_filters; }
228 
233  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
234 
239  inline void SetFilters(const Aws::Vector<CommandFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
240 
245  inline void SetFilters(Aws::Vector<CommandFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
246 
251  inline ListCommandsRequest& WithFilters(const Aws::Vector<CommandFilter>& value) { SetFilters(value); return *this;}
252 
257  inline ListCommandsRequest& WithFilters(Aws::Vector<CommandFilter>&& value) { SetFilters(std::move(value)); return *this;}
258 
263  inline ListCommandsRequest& AddFilters(const CommandFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
264 
269  inline ListCommandsRequest& AddFilters(CommandFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
270 
271  private:
272 
273  Aws::String m_commandId;
274  bool m_commandIdHasBeenSet;
275 
276  Aws::String m_instanceId;
277  bool m_instanceIdHasBeenSet;
278 
279  int m_maxResults;
280  bool m_maxResultsHasBeenSet;
281 
282  Aws::String m_nextToken;
283  bool m_nextTokenHasBeenSet;
284 
285  Aws::Vector<CommandFilter> m_filters;
286  bool m_filtersHasBeenSet;
287  };
288 
289 } // namespace Model
290 } // namespace SSM
291 } // namespace Aws
Aws::SSM::Model::ListCommandsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListCommandsRequest.h:150
Aws::SSM::Model::ListCommandsRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ListCommandsRequest.h:110
Aws::SSM::Model::ListCommandsRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ListCommandsRequest.h:102
Aws::SSM::Model::ListCommandsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::ListCommandsRequest::WithFilters
ListCommandsRequest & WithFilters(const Aws::Vector< CommandFilter > &value)
Definition: ListCommandsRequest.h:251
Aws::SSM::Model::ListCommandsRequest::WithInstanceId
ListCommandsRequest & WithInstanceId(Aws::String &&value)
Definition: ListCommandsRequest.h:134
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::ListCommandsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListCommandsRequest.h:184
Aws::SSM::Model::ListCommandsRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: ListCommandsRequest.h:118
Aws::SSM::Model::ListCommandsRequest::CommandIdHasBeenSet
bool CommandIdHasBeenSet() const
Definition: ListCommandsRequest.h:47
CommandFilter.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::ListCommandsRequest::AddFilters
ListCommandsRequest & AddFilters(CommandFilter &&value)
Definition: ListCommandsRequest.h:269
Aws::SSM::Model::ListCommandsRequest::WithCommandId
ListCommandsRequest & WithCommandId(const Aws::String &value)
Definition: ListCommandsRequest.h:67
Aws::SSM::Model::ListCommandsRequest::WithFilters
ListCommandsRequest & WithFilters(Aws::Vector< CommandFilter > &&value)
Definition: ListCommandsRequest.h:257
AWSVector.h
Aws::SSM::Model::ListCommandsRequest::SetCommandId
void SetCommandId(Aws::String &&value)
Definition: ListCommandsRequest.h:57
Aws::SSM::Model::ListCommandsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListCommandsRequest.h:32
Aws::SSM::Model::ListCommandsRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ListCommandsRequest.h:86
Aws::SSM::Model::ListCommandsRequest::WithNextToken
ListCommandsRequest & WithNextToken(const char *value)
Definition: ListCommandsRequest.h:220
Aws::SSM::Model::ListCommandsRequest::AddFilters
ListCommandsRequest & AddFilters(const CommandFilter &value)
Definition: ListCommandsRequest.h:263
Aws::SSM::Model::CommandFilter
Definition: CommandFilter.h:35
Aws::SSM::Model::ListCommandsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListCommandsRequest.h:164
Aws::SSM::Model::ListCommandsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListCommandsRequest.h:233
Aws::SSM::Model::ListCommandsRequest::WithCommandId
ListCommandsRequest & WithCommandId(const char *value)
Definition: ListCommandsRequest.h:77
AWSString.h
Aws::SSM::Model::ListCommandsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListCommandsRequest.h:202
Aws::SSM::Model::ListCommandsRequest::GetFilters
const Aws::Vector< CommandFilter > & GetFilters() const
Definition: ListCommandsRequest.h:227
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::ListCommandsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListCommandsRequest.h:157
Aws::SSM::Model::ListCommandsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListCommandsRequest.h:190
Aws::SSM::Model::ListCommandsRequest::SetCommandId
void SetCommandId(const Aws::String &value)
Definition: ListCommandsRequest.h:52
Aws::SSM::Model::ListCommandsRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ListCommandsRequest.h:94
Aws::SSM::Model::ListCommandsRequest::SetFilters
void SetFilters(Aws::Vector< CommandFilter > &&value)
Definition: ListCommandsRequest.h:245
Aws::SSM::Model::ListCommandsRequest
Definition: ListCommandsRequest.h:24
Aws::SSM::Model::ListCommandsRequest::WithMaxResults
ListCommandsRequest & WithMaxResults(int value)
Definition: ListCommandsRequest.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::ListCommandsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListCommandsRequest.h:178
Aws::SSM::Model::ListCommandsRequest::WithInstanceId
ListCommandsRequest & WithInstanceId(const Aws::String &value)
Definition: ListCommandsRequest.h:126
Aws::SSM::Model::ListCommandsRequest::SetFilters
void SetFilters(const Aws::Vector< CommandFilter > &value)
Definition: ListCommandsRequest.h:239
Aws::SSM::Model::ListCommandsRequest::WithNextToken
ListCommandsRequest & WithNextToken(const Aws::String &value)
Definition: ListCommandsRequest.h:208
Aws::SSM::Model::ListCommandsRequest::WithNextToken
ListCommandsRequest & WithNextToken(Aws::String &&value)
Definition: ListCommandsRequest.h:214
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::ListCommandsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::ListCommandsRequest::WithInstanceId
ListCommandsRequest & WithInstanceId(const char *value)
Definition: ListCommandsRequest.h:142
Aws::SSM::Model::ListCommandsRequest::WithCommandId
ListCommandsRequest & WithCommandId(Aws::String &&value)
Definition: ListCommandsRequest.h:72
Aws::SSM::Model::ListCommandsRequest::ListCommandsRequest
ListCommandsRequest()
Aws::SSM::Model::ListCommandsRequest::GetCommandId
const Aws::String & GetCommandId() const
Definition: ListCommandsRequest.h:42
Aws::SSM::Model::ListCommandsRequest::SetCommandId
void SetCommandId(const char *value)
Definition: ListCommandsRequest.h:62
Aws::SSM::Model::ListCommandsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListCommandsRequest.h:196
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
SSMRequest.h