AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetDiscoveredResourceCountsRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ConfigService {
16namespace Model {
17
21 public:
22 AWS_CONFIGSERVICE_API GetDiscoveredResourceCountsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetDiscoveredResourceCounts"; }
29
30 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
31
32 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
46 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
47 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
48 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
49 void SetResourceTypes(ResourceTypesT&& value) {
50 m_resourceTypesHasBeenSet = true;
51 m_resourceTypes = std::forward<ResourceTypesT>(value);
52 }
53 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
55 SetResourceTypes(std::forward<ResourceTypesT>(value));
56 return *this;
57 }
58 template <typename ResourceTypesT = Aws::String>
60 m_resourceTypesHasBeenSet = true;
61 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
62 return *this;
63 }
65
67
72 inline int GetLimit() const { return m_limit; }
73 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
74 inline void SetLimit(int value) {
75 m_limitHasBeenSet = true;
76 m_limit = value;
77 }
79 SetLimit(value);
80 return *this;
81 }
83
85
89 inline const Aws::String& GetNextToken() const { return m_nextToken; }
90 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 template <typename NextTokenT = Aws::String>
92 void SetNextToken(NextTokenT&& value) {
93 m_nextTokenHasBeenSet = true;
94 m_nextToken = std::forward<NextTokenT>(value);
95 }
96 template <typename NextTokenT = Aws::String>
98 SetNextToken(std::forward<NextTokenT>(value));
99 return *this;
100 }
102 private:
103 Aws::Vector<Aws::String> m_resourceTypes;
104
105 int m_limit{0};
106
107 Aws::String m_nextToken;
108 bool m_resourceTypesHasBeenSet = false;
109 bool m_limitHasBeenSet = false;
110 bool m_nextTokenHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace ConfigService
115} // namespace Aws
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetDiscoveredResourceCountsRequest & WithNextToken(NextTokenT &&value)
GetDiscoveredResourceCountsRequest & WithResourceTypes(ResourceTypesT &&value)
AWS_CONFIGSERVICE_API GetDiscoveredResourceCountsRequest()=default
GetDiscoveredResourceCountsRequest & AddResourceTypes(ResourceTypesT &&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