AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateExportTaskRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudWatchLogs {
15namespace Model {
16
20 public:
21 AWS_CLOUDWATCHLOGS_API CreateExportTaskRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateExportTask"; }
28
29 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetTaskName() const { return m_taskName; }
38 inline bool TaskNameHasBeenSet() const { return m_taskNameHasBeenSet; }
39 template <typename TaskNameT = Aws::String>
40 void SetTaskName(TaskNameT&& value) {
41 m_taskNameHasBeenSet = true;
42 m_taskName = std::forward<TaskNameT>(value);
43 }
44 template <typename TaskNameT = Aws::String>
46 SetTaskName(std::forward<TaskNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
56 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
57 template <typename LogGroupNameT = Aws::String>
58 void SetLogGroupName(LogGroupNameT&& value) {
59 m_logGroupNameHasBeenSet = true;
60 m_logGroupName = std::forward<LogGroupNameT>(value);
61 }
62 template <typename LogGroupNameT = Aws::String>
63 CreateExportTaskRequest& WithLogGroupName(LogGroupNameT&& value) {
64 SetLogGroupName(std::forward<LogGroupNameT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetLogStreamNamePrefix() const { return m_logStreamNamePrefix; }
75 inline bool LogStreamNamePrefixHasBeenSet() const { return m_logStreamNamePrefixHasBeenSet; }
76 template <typename LogStreamNamePrefixT = Aws::String>
77 void SetLogStreamNamePrefix(LogStreamNamePrefixT&& value) {
78 m_logStreamNamePrefixHasBeenSet = true;
79 m_logStreamNamePrefix = std::forward<LogStreamNamePrefixT>(value);
80 }
81 template <typename LogStreamNamePrefixT = Aws::String>
82 CreateExportTaskRequest& WithLogStreamNamePrefix(LogStreamNamePrefixT&& value) {
83 SetLogStreamNamePrefix(std::forward<LogStreamNamePrefixT>(value));
84 return *this;
85 }
87
89
94 inline long long GetFrom() const { return m_from; }
95 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
96 inline void SetFrom(long long value) {
97 m_fromHasBeenSet = true;
98 m_from = value;
99 }
100 inline CreateExportTaskRequest& WithFrom(long long value) {
101 SetFrom(value);
102 return *this;
103 }
105
107
113 inline long long GetTo() const { return m_to; }
114 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
115 inline void SetTo(long long value) {
116 m_toHasBeenSet = true;
117 m_to = value;
118 }
119 inline CreateExportTaskRequest& WithTo(long long value) {
120 SetTo(value);
121 return *this;
122 }
124
126
130 inline const Aws::String& GetDestination() const { return m_destination; }
131 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
132 template <typename DestinationT = Aws::String>
133 void SetDestination(DestinationT&& value) {
134 m_destinationHasBeenSet = true;
135 m_destination = std::forward<DestinationT>(value);
136 }
137 template <typename DestinationT = Aws::String>
139 SetDestination(std::forward<DestinationT>(value));
140 return *this;
141 }
143
145
152 inline const Aws::String& GetDestinationPrefix() const { return m_destinationPrefix; }
153 inline bool DestinationPrefixHasBeenSet() const { return m_destinationPrefixHasBeenSet; }
154 template <typename DestinationPrefixT = Aws::String>
155 void SetDestinationPrefix(DestinationPrefixT&& value) {
156 m_destinationPrefixHasBeenSet = true;
157 m_destinationPrefix = std::forward<DestinationPrefixT>(value);
158 }
159 template <typename DestinationPrefixT = Aws::String>
160 CreateExportTaskRequest& WithDestinationPrefix(DestinationPrefixT&& value) {
161 SetDestinationPrefix(std::forward<DestinationPrefixT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_taskName;
167
168 Aws::String m_logGroupName;
169
170 Aws::String m_logStreamNamePrefix;
171
172 long long m_from{0};
173
174 long long m_to{0};
175
176 Aws::String m_destination;
177
178 Aws::String m_destinationPrefix;
179 bool m_taskNameHasBeenSet = false;
180 bool m_logGroupNameHasBeenSet = false;
181 bool m_logStreamNamePrefixHasBeenSet = false;
182 bool m_fromHasBeenSet = false;
183 bool m_toHasBeenSet = false;
184 bool m_destinationHasBeenSet = false;
185 bool m_destinationPrefixHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace CloudWatchLogs
190} // namespace Aws
AWS_CLOUDWATCHLOGS_API CreateExportTaskRequest()=default
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateExportTaskRequest & WithFrom(long long value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
CreateExportTaskRequest & WithDestinationPrefix(DestinationPrefixT &&value)
CreateExportTaskRequest & WithLogGroupName(LogGroupNameT &&value)
CreateExportTaskRequest & WithTo(long long value)
CreateExportTaskRequest & WithDestination(DestinationT &&value)
CreateExportTaskRequest & WithLogStreamNamePrefix(LogStreamNamePrefixT &&value)
CreateExportTaskRequest & WithTaskName(TaskNameT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String