AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetInventoryRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ssm/model/InventoryFilter.h>
12#include <aws/ssm/model/InventoryAggregator.h>
13#include <aws/ssm/model/ResultAttribute.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SSM
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SSM_API GetInventoryRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetInventory"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::Vector<InventoryFilter>& GetFilters() const{ return m_filters; }
47 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
48 inline void SetFilters(const Aws::Vector<InventoryFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
49 inline void SetFilters(Aws::Vector<InventoryFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
50 inline GetInventoryRequest& WithFilters(const Aws::Vector<InventoryFilter>& value) { SetFilters(value); return *this;}
51 inline GetInventoryRequest& WithFilters(Aws::Vector<InventoryFilter>&& value) { SetFilters(std::move(value)); return *this;}
52 inline GetInventoryRequest& AddFilters(const InventoryFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
53 inline GetInventoryRequest& AddFilters(InventoryFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
55
57
63 inline const Aws::Vector<InventoryAggregator>& GetAggregators() const{ return m_aggregators; }
64 inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; }
65 inline void SetAggregators(const Aws::Vector<InventoryAggregator>& value) { m_aggregatorsHasBeenSet = true; m_aggregators = value; }
66 inline void SetAggregators(Aws::Vector<InventoryAggregator>&& value) { m_aggregatorsHasBeenSet = true; m_aggregators = std::move(value); }
68 inline GetInventoryRequest& WithAggregators(Aws::Vector<InventoryAggregator>&& value) { SetAggregators(std::move(value)); return *this;}
69 inline GetInventoryRequest& AddAggregators(const InventoryAggregator& value) { m_aggregatorsHasBeenSet = true; m_aggregators.push_back(value); return *this; }
70 inline GetInventoryRequest& AddAggregators(InventoryAggregator&& value) { m_aggregatorsHasBeenSet = true; m_aggregators.push_back(std::move(value)); return *this; }
72
74
77 inline const Aws::Vector<ResultAttribute>& GetResultAttributes() const{ return m_resultAttributes; }
78 inline bool ResultAttributesHasBeenSet() const { return m_resultAttributesHasBeenSet; }
79 inline void SetResultAttributes(const Aws::Vector<ResultAttribute>& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes = value; }
80 inline void SetResultAttributes(Aws::Vector<ResultAttribute>&& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes = std::move(value); }
83 inline GetInventoryRequest& AddResultAttributes(const ResultAttribute& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes.push_back(value); return *this; }
84 inline GetInventoryRequest& AddResultAttributes(ResultAttribute&& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes.push_back(std::move(value)); return *this; }
86
88
92 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
96 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
97 inline GetInventoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 inline GetInventoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 inline GetInventoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
101
103
108 inline int GetMaxResults() const{ return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
111 inline GetInventoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
113 private:
114
116 bool m_filtersHasBeenSet = false;
117
119 bool m_aggregatorsHasBeenSet = false;
120
121 Aws::Vector<ResultAttribute> m_resultAttributes;
122 bool m_resultAttributesHasBeenSet = false;
123
124 Aws::String m_nextToken;
125 bool m_nextTokenHasBeenSet = false;
126
127 int m_maxResults;
128 bool m_maxResultsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace SSM
133} // namespace Aws
const Aws::String & GetNextToken() const
GetInventoryRequest & AddFilters(InventoryFilter &&value)
GetInventoryRequest & WithAggregators(Aws::Vector< InventoryAggregator > &&value)
void SetNextToken(const Aws::String &value)
void SetAggregators(const Aws::Vector< InventoryAggregator > &value)
AWS_SSM_API Aws::String SerializePayload() const override
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetInventoryRequest & WithNextToken(const char *value)
void SetAggregators(Aws::Vector< InventoryAggregator > &&value)
GetInventoryRequest & WithNextToken(const Aws::String &value)
GetInventoryRequest & WithResultAttributes(Aws::Vector< ResultAttribute > &&value)
GetInventoryRequest & AddFilters(const InventoryFilter &value)
GetInventoryRequest & AddResultAttributes(ResultAttribute &&value)
GetInventoryRequest & WithResultAttributes(const Aws::Vector< ResultAttribute > &value)
GetInventoryRequest & WithMaxResults(int value)
GetInventoryRequest & AddResultAttributes(const ResultAttribute &value)
GetInventoryRequest & AddAggregators(const InventoryAggregator &value)
GetInventoryRequest & WithNextToken(Aws::String &&value)
void SetFilters(Aws::Vector< InventoryFilter > &&value)
const Aws::Vector< ResultAttribute > & GetResultAttributes() const
const Aws::Vector< InventoryFilter > & GetFilters() const
const Aws::Vector< InventoryAggregator > & GetAggregators() const
GetInventoryRequest & WithFilters(const Aws::Vector< InventoryFilter > &value)
GetInventoryRequest & AddAggregators(InventoryAggregator &&value)
virtual const char * GetServiceRequestName() const override
void SetFilters(const Aws::Vector< InventoryFilter > &value)
void SetResultAttributes(Aws::Vector< ResultAttribute > &&value)
GetInventoryRequest & WithFilters(Aws::Vector< InventoryFilter > &&value)
void SetResultAttributes(const Aws::Vector< ResultAttribute > &value)
GetInventoryRequest & WithAggregators(const Aws::Vector< InventoryAggregator > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector