AWS SDK for C++  0.12.9
AWS SDK for C++
ListCommandsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ssm/SSM_EXPORTS.h>
17 #include <aws/ssm/SSMRequest.h>
21 
22 namespace Aws
23 {
24 namespace SSM
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetCommandId() const{ return m_commandId; }
43 
47  inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
48 
52  inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
53 
57  inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
58 
62  inline ListCommandsRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
63 
67  inline ListCommandsRequest& WithCommandId(Aws::String&& value) { SetCommandId(value); return *this;}
68 
72  inline ListCommandsRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;}
73 
77  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
78 
82  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
83 
87  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
88 
92  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
93 
97  inline ListCommandsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
98 
102  inline ListCommandsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
103 
107  inline ListCommandsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
108 
114  inline long GetMaxResults() const{ return m_maxResults; }
115 
121  inline void SetMaxResults(long value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
122 
128  inline ListCommandsRequest& WithMaxResults(long value) { SetMaxResults(value); return *this;}
129 
134  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
135 
140  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
141 
146  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
147 
152  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
153 
158  inline ListCommandsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
159 
164  inline ListCommandsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
165 
170  inline ListCommandsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
171 
176  inline const Aws::Vector<CommandFilter>& GetFilters() const{ return m_filters; }
177 
182  inline void SetFilters(const Aws::Vector<CommandFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
183 
188  inline void SetFilters(Aws::Vector<CommandFilter>&& value) { m_filtersHasBeenSet = true; m_filters = value; }
189 
194  inline ListCommandsRequest& WithFilters(const Aws::Vector<CommandFilter>& value) { SetFilters(value); return *this;}
195 
200  inline ListCommandsRequest& WithFilters(Aws::Vector<CommandFilter>&& value) { SetFilters(value); return *this;}
201 
206  inline ListCommandsRequest& AddFilters(const CommandFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
207 
212  inline ListCommandsRequest& AddFilters(CommandFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
213 
214  private:
215  Aws::String m_commandId;
216  bool m_commandIdHasBeenSet;
217  Aws::String m_instanceId;
218  bool m_instanceIdHasBeenSet;
219  long m_maxResults;
220  bool m_maxResultsHasBeenSet;
221  Aws::String m_nextToken;
222  bool m_nextTokenHasBeenSet;
223  Aws::Vector<CommandFilter> m_filters;
224  bool m_filtersHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace SSM
229 } // namespace Aws
ListCommandsRequest & WithFilters(Aws::Vector< CommandFilter > &&value)
void SetInstanceId(const Aws::String &value)
void SetNextToken(Aws::String &&value)
ListCommandsRequest & WithInstanceId(const Aws::String &value)
void SetCommandId(Aws::String &&value)
void SetFilters(Aws::Vector< CommandFilter > &&value)
const Aws::String & GetCommandId() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ListCommandsRequest & AddFilters(const CommandFilter &value)
ListCommandsRequest & WithMaxResults(long value)
ListCommandsRequest & WithInstanceId(const char *value)
ListCommandsRequest & WithNextToken(const char *value)
void SetFilters(const Aws::Vector< CommandFilter > &value)
ListCommandsRequest & WithCommandId(Aws::String &&value)
ListCommandsRequest & WithInstanceId(Aws::String &&value)
const Aws::Vector< CommandFilter > & GetFilters() const
void SetCommandId(const Aws::String &value)
ListCommandsRequest & WithNextToken(const Aws::String &value)
ListCommandsRequest & WithFilters(const Aws::Vector< CommandFilter > &value)
const Aws::String & GetNextToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetNextToken(const Aws::String &value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:34
ListCommandsRequest & AddFilters(CommandFilter &&value)
void SetInstanceId(Aws::String &&value)
const Aws::String & GetInstanceId() const
ListCommandsRequest & WithCommandId(const Aws::String &value)
ListCommandsRequest & WithNextToken(Aws::String &&value)
JSON (JavaScript Object Notation).
ListCommandsRequest & WithCommandId(const char *value)