AWS SDK for C++  0.12.9
AWS SDK for C++
ListCommandInvocationsRequest.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 ListCommandInvocationsRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
63 
67  inline ListCommandInvocationsRequest& WithCommandId(Aws::String&& value) { SetCommandId(value); return *this;}
68 
72  inline ListCommandInvocationsRequest& 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 ListCommandInvocationsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
98 
102  inline ListCommandInvocationsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
103 
107  inline ListCommandInvocationsRequest& 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 ListCommandInvocationsRequest& 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 ListCommandInvocationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
159 
164  inline ListCommandInvocationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
165 
170  inline ListCommandInvocationsRequest& 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 ListCommandInvocationsRequest& WithFilters(const Aws::Vector<CommandFilter>& value) { SetFilters(value); return *this;}
195 
200  inline ListCommandInvocationsRequest& WithFilters(Aws::Vector<CommandFilter>&& value) { SetFilters(value); return *this;}
201 
206  inline ListCommandInvocationsRequest& AddFilters(const CommandFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
207 
212  inline ListCommandInvocationsRequest& AddFilters(CommandFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
213 
218  inline bool GetDetails() const{ return m_details; }
219 
224  inline void SetDetails(bool value) { m_detailsHasBeenSet = true; m_details = value; }
225 
230  inline ListCommandInvocationsRequest& WithDetails(bool value) { SetDetails(value); return *this;}
231 
232  private:
233  Aws::String m_commandId;
234  bool m_commandIdHasBeenSet;
235  Aws::String m_instanceId;
236  bool m_instanceIdHasBeenSet;
237  long m_maxResults;
238  bool m_maxResultsHasBeenSet;
239  Aws::String m_nextToken;
240  bool m_nextTokenHasBeenSet;
241  Aws::Vector<CommandFilter> m_filters;
242  bool m_filtersHasBeenSet;
243  bool m_details;
244  bool m_detailsHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace SSM
249 } // namespace Aws
ListCommandInvocationsRequest & WithNextToken(Aws::String &&value)
ListCommandInvocationsRequest & WithCommandId(const char *value)
ListCommandInvocationsRequest & WithNextToken(const char *value)
ListCommandInvocationsRequest & WithFilters(const Aws::Vector< CommandFilter > &value)
void SetFilters(const Aws::Vector< CommandFilter > &value)
ListCommandInvocationsRequest & WithInstanceId(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ListCommandInvocationsRequest & WithCommandId(const Aws::String &value)
ListCommandInvocationsRequest & WithCommandId(Aws::String &&value)
ListCommandInvocationsRequest & WithInstanceId(const char *value)
ListCommandInvocationsRequest & WithDetails(bool value)
ListCommandInvocationsRequest & WithFilters(Aws::Vector< CommandFilter > &&value)
ListCommandInvocationsRequest & WithMaxResults(long value)
void SetFilters(Aws::Vector< CommandFilter > &&value)
ListCommandInvocationsRequest & WithInstanceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< CommandFilter > & GetFilters() const
ListCommandInvocationsRequest & WithNextToken(const Aws::String &value)
ListCommandInvocationsRequest & AddFilters(const CommandFilter &value)
ListCommandInvocationsRequest & AddFilters(CommandFilter &&value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:34
JSON (JavaScript Object Notation).