AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeConfigurationTemplatesRequest.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/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/DeliveryDestinationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchLogs {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCHLOGS_API DescribeConfigurationTemplatesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeConfigurationTemplates"; }
30
31 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::String& GetService() const { return m_service; }
42 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
43 template <typename ServiceT = Aws::String>
44 void SetService(ServiceT&& value) {
45 m_serviceHasBeenSet = true;
46 m_service = std::forward<ServiceT>(value);
47 }
48 template <typename ServiceT = Aws::String>
50 SetService(std::forward<ServiceT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetLogTypes() const { return m_logTypes; }
61 inline bool LogTypesHasBeenSet() const { return m_logTypesHasBeenSet; }
62 template <typename LogTypesT = Aws::Vector<Aws::String>>
63 void SetLogTypes(LogTypesT&& value) {
64 m_logTypesHasBeenSet = true;
65 m_logTypes = std::forward<LogTypesT>(value);
66 }
67 template <typename LogTypesT = Aws::Vector<Aws::String>>
69 SetLogTypes(std::forward<LogTypesT>(value));
70 return *this;
71 }
72 template <typename LogTypesT = Aws::String>
74 m_logTypesHasBeenSet = true;
75 m_logTypes.emplace_back(std::forward<LogTypesT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
86 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
87 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
88 void SetResourceTypes(ResourceTypesT&& value) {
89 m_resourceTypesHasBeenSet = true;
90 m_resourceTypes = std::forward<ResourceTypesT>(value);
91 }
92 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
94 SetResourceTypes(std::forward<ResourceTypesT>(value));
95 return *this;
96 }
97 template <typename ResourceTypesT = Aws::String>
99 m_resourceTypesHasBeenSet = true;
100 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
101 return *this;
102 }
104
106
111 inline const Aws::Vector<DeliveryDestinationType>& GetDeliveryDestinationTypes() const { return m_deliveryDestinationTypes; }
112 inline bool DeliveryDestinationTypesHasBeenSet() const { return m_deliveryDestinationTypesHasBeenSet; }
113 template <typename DeliveryDestinationTypesT = Aws::Vector<DeliveryDestinationType>>
114 void SetDeliveryDestinationTypes(DeliveryDestinationTypesT&& value) {
115 m_deliveryDestinationTypesHasBeenSet = true;
116 m_deliveryDestinationTypes = std::forward<DeliveryDestinationTypesT>(value);
117 }
118 template <typename DeliveryDestinationTypesT = Aws::Vector<DeliveryDestinationType>>
120 SetDeliveryDestinationTypes(std::forward<DeliveryDestinationTypesT>(value));
121 return *this;
122 }
124 m_deliveryDestinationTypesHasBeenSet = true;
125 m_deliveryDestinationTypes.push_back(value);
126 return *this;
127 }
129
131
132 inline const Aws::String& GetNextToken() const { return m_nextToken; }
133 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
134 template <typename NextTokenT = Aws::String>
135 void SetNextToken(NextTokenT&& value) {
136 m_nextTokenHasBeenSet = true;
137 m_nextToken = std::forward<NextTokenT>(value);
138 }
139 template <typename NextTokenT = Aws::String>
141 SetNextToken(std::forward<NextTokenT>(value));
142 return *this;
143 }
145
147
151 inline int GetLimit() const { return m_limit; }
152 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
153 inline void SetLimit(int value) {
154 m_limitHasBeenSet = true;
155 m_limit = value;
156 }
158 SetLimit(value);
159 return *this;
160 }
162 private:
163 Aws::String m_service;
164
165 Aws::Vector<Aws::String> m_logTypes;
166
167 Aws::Vector<Aws::String> m_resourceTypes;
168
169 Aws::Vector<DeliveryDestinationType> m_deliveryDestinationTypes;
170
171 Aws::String m_nextToken;
172
173 int m_limit{0};
174 bool m_serviceHasBeenSet = false;
175 bool m_logTypesHasBeenSet = false;
176 bool m_resourceTypesHasBeenSet = false;
177 bool m_deliveryDestinationTypesHasBeenSet = false;
178 bool m_nextTokenHasBeenSet = false;
179 bool m_limitHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace CloudWatchLogs
184} // namespace Aws
DescribeConfigurationTemplatesRequest & AddResourceTypes(ResourceTypesT &&value)
DescribeConfigurationTemplatesRequest & AddDeliveryDestinationTypes(DeliveryDestinationType value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
DescribeConfigurationTemplatesRequest & WithLogTypes(LogTypesT &&value)
DescribeConfigurationTemplatesRequest & WithService(ServiceT &&value)
AWS_CLOUDWATCHLOGS_API DescribeConfigurationTemplatesRequest()=default
DescribeConfigurationTemplatesRequest & WithResourceTypes(ResourceTypesT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeConfigurationTemplatesRequest & WithNextToken(NextTokenT &&value)
DescribeConfigurationTemplatesRequest & AddLogTypes(LogTypesT &&value)
const Aws::Vector< DeliveryDestinationType > & GetDeliveryDestinationTypes() const
DescribeConfigurationTemplatesRequest & WithDeliveryDestinationTypes(DeliveryDestinationTypesT &&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