AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateExportTaskRequest.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 <utility>
11
12namespace Aws
13{
14namespace CloudWatchLogs
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CLOUDWATCHLOGS_API CreateExportTaskRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateExportTask"; }
31
32 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetTaskName() const { return m_taskName; }
42 inline bool TaskNameHasBeenSet() const { return m_taskNameHasBeenSet; }
43 template<typename TaskNameT = Aws::String>
44 void SetTaskName(TaskNameT&& value) { m_taskNameHasBeenSet = true; m_taskName = std::forward<TaskNameT>(value); }
45 template<typename TaskNameT = Aws::String>
46 CreateExportTaskRequest& WithTaskName(TaskNameT&& value) { SetTaskName(std::forward<TaskNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
54 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
55 template<typename LogGroupNameT = Aws::String>
56 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
57 template<typename LogGroupNameT = Aws::String>
58 CreateExportTaskRequest& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
60
62
66 inline const Aws::String& GetLogStreamNamePrefix() const { return m_logStreamNamePrefix; }
67 inline bool LogStreamNamePrefixHasBeenSet() const { return m_logStreamNamePrefixHasBeenSet; }
68 template<typename LogStreamNamePrefixT = Aws::String>
69 void SetLogStreamNamePrefix(LogStreamNamePrefixT&& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = std::forward<LogStreamNamePrefixT>(value); }
70 template<typename LogStreamNamePrefixT = Aws::String>
71 CreateExportTaskRequest& WithLogStreamNamePrefix(LogStreamNamePrefixT&& value) { SetLogStreamNamePrefix(std::forward<LogStreamNamePrefixT>(value)); return *this;}
73
75
80 inline long long GetFrom() const { return m_from; }
81 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
82 inline void SetFrom(long long value) { m_fromHasBeenSet = true; m_from = value; }
83 inline CreateExportTaskRequest& WithFrom(long long value) { SetFrom(value); return *this;}
85
87
93 inline long long GetTo() const { return m_to; }
94 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
95 inline void SetTo(long long value) { m_toHasBeenSet = true; m_to = value; }
96 inline CreateExportTaskRequest& WithTo(long long value) { SetTo(value); return *this;}
98
100
104 inline const Aws::String& GetDestination() const { return m_destination; }
105 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
106 template<typename DestinationT = Aws::String>
107 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
108 template<typename DestinationT = Aws::String>
109 CreateExportTaskRequest& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
111
113
120 inline const Aws::String& GetDestinationPrefix() const { return m_destinationPrefix; }
121 inline bool DestinationPrefixHasBeenSet() const { return m_destinationPrefixHasBeenSet; }
122 template<typename DestinationPrefixT = Aws::String>
123 void SetDestinationPrefix(DestinationPrefixT&& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = std::forward<DestinationPrefixT>(value); }
124 template<typename DestinationPrefixT = Aws::String>
125 CreateExportTaskRequest& WithDestinationPrefix(DestinationPrefixT&& value) { SetDestinationPrefix(std::forward<DestinationPrefixT>(value)); return *this;}
127 private:
128
129 Aws::String m_taskName;
130 bool m_taskNameHasBeenSet = false;
131
132 Aws::String m_logGroupName;
133 bool m_logGroupNameHasBeenSet = false;
134
135 Aws::String m_logStreamNamePrefix;
136 bool m_logStreamNamePrefixHasBeenSet = false;
137
138 long long m_from{0};
139 bool m_fromHasBeenSet = false;
140
141 long long m_to{0};
142 bool m_toHasBeenSet = false;
143
144 Aws::String m_destination;
145 bool m_destinationHasBeenSet = false;
146
147 Aws::String m_destinationPrefix;
148 bool m_destinationPrefixHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace CloudWatchLogs
153} // 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