AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeConfigurationTemplatesRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/logs/model/DeliveryDestinationType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API DescribeConfigurationTemplatesRequest() = default;
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 "DescribeConfigurationTemplates"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::String& GetService() const { return m_service; }
46 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
47 template<typename ServiceT = Aws::String>
48 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
49 template<typename ServiceT = Aws::String>
50 DescribeConfigurationTemplatesRequest& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
52
54
58 inline const Aws::Vector<Aws::String>& GetLogTypes() const { return m_logTypes; }
59 inline bool LogTypesHasBeenSet() const { return m_logTypesHasBeenSet; }
60 template<typename LogTypesT = Aws::Vector<Aws::String>>
61 void SetLogTypes(LogTypesT&& value) { m_logTypesHasBeenSet = true; m_logTypes = std::forward<LogTypesT>(value); }
62 template<typename LogTypesT = Aws::Vector<Aws::String>>
63 DescribeConfigurationTemplatesRequest& WithLogTypes(LogTypesT&& value) { SetLogTypes(std::forward<LogTypesT>(value)); return *this;}
64 template<typename LogTypesT = Aws::String>
65 DescribeConfigurationTemplatesRequest& AddLogTypes(LogTypesT&& value) { m_logTypesHasBeenSet = true; m_logTypes.emplace_back(std::forward<LogTypesT>(value)); return *this; }
67
69
73 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
74 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
75 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
76 void SetResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::forward<ResourceTypesT>(value); }
77 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
78 DescribeConfigurationTemplatesRequest& WithResourceTypes(ResourceTypesT&& value) { SetResourceTypes(std::forward<ResourceTypesT>(value)); return *this;}
79 template<typename ResourceTypesT = Aws::String>
80 DescribeConfigurationTemplatesRequest& AddResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value)); return *this; }
82
84
89 inline const Aws::Vector<DeliveryDestinationType>& GetDeliveryDestinationTypes() const { return m_deliveryDestinationTypes; }
90 inline bool DeliveryDestinationTypesHasBeenSet() const { return m_deliveryDestinationTypesHasBeenSet; }
91 template<typename DeliveryDestinationTypesT = Aws::Vector<DeliveryDestinationType>>
92 void SetDeliveryDestinationTypes(DeliveryDestinationTypesT&& value) { m_deliveryDestinationTypesHasBeenSet = true; m_deliveryDestinationTypes = std::forward<DeliveryDestinationTypesT>(value); }
93 template<typename DeliveryDestinationTypesT = Aws::Vector<DeliveryDestinationType>>
94 DescribeConfigurationTemplatesRequest& WithDeliveryDestinationTypes(DeliveryDestinationTypesT&& value) { SetDeliveryDestinationTypes(std::forward<DeliveryDestinationTypesT>(value)); return *this;}
95 inline DescribeConfigurationTemplatesRequest& AddDeliveryDestinationTypes(DeliveryDestinationType value) { m_deliveryDestinationTypesHasBeenSet = true; m_deliveryDestinationTypes.push_back(value); return *this; }
97
99
100 inline const Aws::String& GetNextToken() const { return m_nextToken; }
101 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
102 template<typename NextTokenT = Aws::String>
103 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
104 template<typename NextTokenT = Aws::String>
105 DescribeConfigurationTemplatesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
107
109
113 inline int GetLimit() const { return m_limit; }
114 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
115 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
116 inline DescribeConfigurationTemplatesRequest& WithLimit(int value) { SetLimit(value); return *this;}
118 private:
119
120 Aws::String m_service;
121 bool m_serviceHasBeenSet = false;
122
123 Aws::Vector<Aws::String> m_logTypes;
124 bool m_logTypesHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_resourceTypes;
127 bool m_resourceTypesHasBeenSet = false;
128
129 Aws::Vector<DeliveryDestinationType> m_deliveryDestinationTypes;
130 bool m_deliveryDestinationTypesHasBeenSet = false;
131
132 Aws::String m_nextToken;
133 bool m_nextTokenHasBeenSet = false;
134
135 int m_limit{0};
136 bool m_limitHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CloudWatchLogs
141} // 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