AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetInventoryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/InventoryAggregator.h>
12#include <aws/ssm/model/InventoryFilter.h>
13#include <aws/ssm/model/ResultAttribute.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SSM {
19namespace Model {
20
24 public:
25 AWS_SSM_API GetInventoryRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetInventory"; }
32
33 AWS_SSM_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::Vector<InventoryFilter>& GetFilters() const { return m_filters; }
43 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
44 template <typename FiltersT = Aws::Vector<InventoryFilter>>
45 void SetFilters(FiltersT&& value) {
46 m_filtersHasBeenSet = true;
47 m_filters = std::forward<FiltersT>(value);
48 }
49 template <typename FiltersT = Aws::Vector<InventoryFilter>>
50 GetInventoryRequest& WithFilters(FiltersT&& value) {
51 SetFilters(std::forward<FiltersT>(value));
52 return *this;
53 }
54 template <typename FiltersT = InventoryFilter>
55 GetInventoryRequest& AddFilters(FiltersT&& value) {
56 m_filtersHasBeenSet = true;
57 m_filters.emplace_back(std::forward<FiltersT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::Vector<InventoryAggregator>& GetAggregators() const { return m_aggregators; }
70 inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; }
71 template <typename AggregatorsT = Aws::Vector<InventoryAggregator>>
72 void SetAggregators(AggregatorsT&& value) {
73 m_aggregatorsHasBeenSet = true;
74 m_aggregators = std::forward<AggregatorsT>(value);
75 }
76 template <typename AggregatorsT = Aws::Vector<InventoryAggregator>>
77 GetInventoryRequest& WithAggregators(AggregatorsT&& value) {
78 SetAggregators(std::forward<AggregatorsT>(value));
79 return *this;
80 }
81 template <typename AggregatorsT = InventoryAggregator>
82 GetInventoryRequest& AddAggregators(AggregatorsT&& value) {
83 m_aggregatorsHasBeenSet = true;
84 m_aggregators.emplace_back(std::forward<AggregatorsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<ResultAttribute>& GetResultAttributes() const { return m_resultAttributes; }
94 inline bool ResultAttributesHasBeenSet() const { return m_resultAttributesHasBeenSet; }
95 template <typename ResultAttributesT = Aws::Vector<ResultAttribute>>
96 void SetResultAttributes(ResultAttributesT&& value) {
97 m_resultAttributesHasBeenSet = true;
98 m_resultAttributes = std::forward<ResultAttributesT>(value);
99 }
100 template <typename ResultAttributesT = Aws::Vector<ResultAttribute>>
101 GetInventoryRequest& WithResultAttributes(ResultAttributesT&& value) {
102 SetResultAttributes(std::forward<ResultAttributesT>(value));
103 return *this;
104 }
105 template <typename ResultAttributesT = ResultAttribute>
106 GetInventoryRequest& AddResultAttributes(ResultAttributesT&& value) {
107 m_resultAttributesHasBeenSet = true;
108 m_resultAttributes.emplace_back(std::forward<ResultAttributesT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetNextToken() const { return m_nextToken; }
119 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 template <typename NextTokenT = Aws::String>
121 void SetNextToken(NextTokenT&& value) {
122 m_nextTokenHasBeenSet = true;
123 m_nextToken = std::forward<NextTokenT>(value);
124 }
125 template <typename NextTokenT = Aws::String>
126 GetInventoryRequest& WithNextToken(NextTokenT&& value) {
127 SetNextToken(std::forward<NextTokenT>(value));
128 return *this;
129 }
131
133
138 inline int GetMaxResults() const { return m_maxResults; }
139 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
140 inline void SetMaxResults(int value) {
141 m_maxResultsHasBeenSet = true;
142 m_maxResults = value;
143 }
145 SetMaxResults(value);
146 return *this;
147 }
149 private:
151
153
154 Aws::Vector<ResultAttribute> m_resultAttributes;
155
156 Aws::String m_nextToken;
157
158 int m_maxResults{0};
159 bool m_filtersHasBeenSet = false;
160 bool m_aggregatorsHasBeenSet = false;
161 bool m_resultAttributesHasBeenSet = false;
162 bool m_nextTokenHasBeenSet = false;
163 bool m_maxResultsHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace SSM
168} // namespace Aws
void SetAggregators(AggregatorsT &&value)
const Aws::String & GetNextToken() const
GetInventoryRequest & AddAggregators(AggregatorsT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetInventoryRequest & WithMaxResults(int value)
AWS_SSM_API GetInventoryRequest()=default
const Aws::Vector< ResultAttribute > & GetResultAttributes() const
GetInventoryRequest & AddFilters(FiltersT &&value)
GetInventoryRequest & AddResultAttributes(ResultAttributesT &&value)
const Aws::Vector< InventoryFilter > & GetFilters() const
const Aws::Vector< InventoryAggregator > & GetAggregators() const
GetInventoryRequest & WithFilters(FiltersT &&value)
GetInventoryRequest & WithResultAttributes(ResultAttributesT &&value)
void SetResultAttributes(ResultAttributesT &&value)
virtual const char * GetServiceRequestName() const override
GetInventoryRequest & WithAggregators(AggregatorsT &&value)
GetInventoryRequest & WithNextToken(NextTokenT &&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