AWS SDK for C++  1.9.109
AWS SDK for C++
ListInventoryEntriesRequest.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 "ListInventoryEntries"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
43 
47  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 
52  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
53 
57  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
58 
62  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
63 
67  inline ListInventoryEntriesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
68 
72  inline ListInventoryEntriesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
73 
77  inline ListInventoryEntriesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
78 
79 
83  inline const Aws::String& GetTypeName() const{ return m_typeName; }
84 
88  inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
89 
93  inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
94 
98  inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
99 
103  inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
104 
108  inline ListInventoryEntriesRequest& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
109 
113  inline ListInventoryEntriesRequest& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
114 
118  inline ListInventoryEntriesRequest& WithTypeName(const char* value) { SetTypeName(value); return *this;}
119 
120 
125  inline const Aws::Vector<InventoryFilter>& GetFilters() const{ return m_filters; }
126 
131  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
132 
137  inline void SetFilters(const Aws::Vector<InventoryFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
138 
143  inline void SetFilters(Aws::Vector<InventoryFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
144 
149  inline ListInventoryEntriesRequest& WithFilters(const Aws::Vector<InventoryFilter>& value) { SetFilters(value); return *this;}
150 
155  inline ListInventoryEntriesRequest& WithFilters(Aws::Vector<InventoryFilter>&& value) { SetFilters(std::move(value)); return *this;}
156 
161  inline ListInventoryEntriesRequest& AddFilters(const InventoryFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
162 
167  inline ListInventoryEntriesRequest& AddFilters(InventoryFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
168 
169 
174  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
175 
180  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
181 
186  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
187 
192  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
193 
198  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
199 
204  inline ListInventoryEntriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
205 
210  inline ListInventoryEntriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
211 
216  inline ListInventoryEntriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
217 
218 
224  inline int GetMaxResults() const{ return m_maxResults; }
225 
231  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
232 
238  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
239 
245  inline ListInventoryEntriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
246 
247  private:
248 
249  Aws::String m_instanceId;
250  bool m_instanceIdHasBeenSet;
251 
252  Aws::String m_typeName;
253  bool m_typeNameHasBeenSet;
254 
256  bool m_filtersHasBeenSet;
257 
258  Aws::String m_nextToken;
259  bool m_nextTokenHasBeenSet;
260 
261  int m_maxResults;
262  bool m_maxResultsHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace SSM
267 } // namespace Aws
Aws::SSM::Model::ListInventoryEntriesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListInventoryEntriesRequest.h:174
Aws::SSM::Model::ListInventoryEntriesRequest::SetTypeName
void SetTypeName(const Aws::String &value)
Definition: ListInventoryEntriesRequest.h:93
Aws::SSM::Model::ListInventoryEntriesRequest::WithFilters
ListInventoryEntriesRequest & WithFilters(Aws::Vector< InventoryFilter > &&value)
Definition: ListInventoryEntriesRequest.h:155
Aws::SSM::Model::ListInventoryEntriesRequest::SetTypeName
void SetTypeName(Aws::String &&value)
Definition: ListInventoryEntriesRequest.h:98
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSM::Model::ListInventoryEntriesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListInventoryEntriesRequest.h:180
Aws::SSM::Model::ListInventoryEntriesRequest::WithInstanceId
ListInventoryEntriesRequest & WithInstanceId(Aws::String &&value)
Definition: ListInventoryEntriesRequest.h:72
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::ListInventoryEntriesRequest::WithInstanceId
ListInventoryEntriesRequest & WithInstanceId(const char *value)
Definition: ListInventoryEntriesRequest.h:77
Aws::SSM::Model::ListInventoryEntriesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::ListInventoryEntriesRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ListInventoryEntriesRequest.h:52
Aws::SSM::Model::ListInventoryEntriesRequest::SetFilters
void SetFilters(Aws::Vector< InventoryFilter > &&value)
Definition: ListInventoryEntriesRequest.h:143
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SSM::Model::ListInventoryEntriesRequest::WithTypeName
ListInventoryEntriesRequest & WithTypeName(const char *value)
Definition: ListInventoryEntriesRequest.h:118
SSM_EXPORTS.h
AWSVector.h
Aws::SSM::Model::InventoryFilter
Definition: InventoryFilter.h:35
Aws::SSM::Model::ListInventoryEntriesRequest::WithTypeName
ListInventoryEntriesRequest & WithTypeName(const Aws::String &value)
Definition: ListInventoryEntriesRequest.h:108
Aws::SSM::Model::ListInventoryEntriesRequest
Definition: ListInventoryEntriesRequest.h:24
InventoryFilter.h
Aws::SSM::Model::ListInventoryEntriesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListInventoryEntriesRequest.h:238
Aws::SSM::Model::ListInventoryEntriesRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: ListInventoryEntriesRequest.h:62
Aws::SSM::Model::ListInventoryEntriesRequest::WithTypeName
ListInventoryEntriesRequest & WithTypeName(Aws::String &&value)
Definition: ListInventoryEntriesRequest.h:113
Aws::SSM::Model::ListInventoryEntriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListInventoryEntriesRequest.h:32
Aws::SSM::Model::ListInventoryEntriesRequest::WithMaxResults
ListInventoryEntriesRequest & WithMaxResults(int value)
Definition: ListInventoryEntriesRequest.h:245
Aws::SSM::Model::ListInventoryEntriesRequest::SetTypeName
void SetTypeName(const char *value)
Definition: ListInventoryEntriesRequest.h:103
Aws::SSM::Model::ListInventoryEntriesRequest::GetTypeName
const Aws::String & GetTypeName() const
Definition: ListInventoryEntriesRequest.h:83
Aws::SSM::Model::ListInventoryEntriesRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ListInventoryEntriesRequest.h:47
Aws::SSM::Model::ListInventoryEntriesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListInventoryEntriesRequest.h:131
Aws::SSM::Model::ListInventoryEntriesRequest::AddFilters
ListInventoryEntriesRequest & AddFilters(InventoryFilter &&value)
Definition: ListInventoryEntriesRequest.h:167
Aws::SSM::Model::ListInventoryEntriesRequest::ListInventoryEntriesRequest
ListInventoryEntriesRequest()
Aws::SSM::Model::ListInventoryEntriesRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ListInventoryEntriesRequest.h:42
Aws::SSM::Model::ListInventoryEntriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::ListInventoryEntriesRequest::GetFilters
const Aws::Vector< InventoryFilter > & GetFilters() const
Definition: ListInventoryEntriesRequest.h:125
Aws::SSM::Model::ListInventoryEntriesRequest::WithInstanceId
ListInventoryEntriesRequest & WithInstanceId(const Aws::String &value)
Definition: ListInventoryEntriesRequest.h:67
Aws::SSM::Model::ListInventoryEntriesRequest::WithNextToken
ListInventoryEntriesRequest & WithNextToken(const Aws::String &value)
Definition: ListInventoryEntriesRequest.h:204
Aws::SSM::Model::ListInventoryEntriesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListInventoryEntriesRequest.h:198
Aws::SSM::Model::ListInventoryEntriesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListInventoryEntriesRequest.h:186
AWSString.h
Aws::SSM::Model::ListInventoryEntriesRequest::SetFilters
void SetFilters(const Aws::Vector< InventoryFilter > &value)
Definition: ListInventoryEntriesRequest.h:137
Aws::SSM::Model::ListInventoryEntriesRequest::WithNextToken
ListInventoryEntriesRequest & WithNextToken(const char *value)
Definition: ListInventoryEntriesRequest.h:216
Aws::SSM::Model::ListInventoryEntriesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListInventoryEntriesRequest.h:231
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::ListInventoryEntriesRequest::TypeNameHasBeenSet
bool TypeNameHasBeenSet() const
Definition: ListInventoryEntriesRequest.h:88
Aws::SSM::Model::ListInventoryEntriesRequest::AddFilters
ListInventoryEntriesRequest & AddFilters(const InventoryFilter &value)
Definition: ListInventoryEntriesRequest.h:161
Aws::SSM::Model::ListInventoryEntriesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListInventoryEntriesRequest.h:224
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::ListInventoryEntriesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListInventoryEntriesRequest.h:192
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::ListInventoryEntriesRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ListInventoryEntriesRequest.h:57
SSMRequest.h
Aws::SSM::Model::ListInventoryEntriesRequest::WithNextToken
ListInventoryEntriesRequest & WithNextToken(Aws::String &&value)
Definition: ListInventoryEntriesRequest.h:210
Aws::SSM::Model::ListInventoryEntriesRequest::WithFilters
ListInventoryEntriesRequest & WithFilters(const Aws::Vector< InventoryFilter > &value)
Definition: ListInventoryEntriesRequest.h:149