AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTaskName(const Aws::String& value) { m_taskNameHasBeenSet = true; m_taskName = value; }
44 inline void SetTaskName(Aws::String&& value) { m_taskNameHasBeenSet = true; m_taskName = std::move(value); }
45 inline void SetTaskName(const char* value) { m_taskNameHasBeenSet = true; m_taskName.assign(value); }
46 inline CreateExportTaskRequest& WithTaskName(const Aws::String& value) { SetTaskName(value); return *this;}
47 inline CreateExportTaskRequest& WithTaskName(Aws::String&& value) { SetTaskName(std::move(value)); return *this;}
48 inline CreateExportTaskRequest& WithTaskName(const char* value) { SetTaskName(value); return *this;}
50
52
55 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
56 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
57 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
58 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
59 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
60 inline CreateExportTaskRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
61 inline CreateExportTaskRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
62 inline CreateExportTaskRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
64
66
70 inline const Aws::String& GetLogStreamNamePrefix() const{ return m_logStreamNamePrefix; }
71 inline bool LogStreamNamePrefixHasBeenSet() const { return m_logStreamNamePrefixHasBeenSet; }
72 inline void SetLogStreamNamePrefix(const Aws::String& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = value; }
73 inline void SetLogStreamNamePrefix(Aws::String&& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = std::move(value); }
74 inline void SetLogStreamNamePrefix(const char* value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix.assign(value); }
76 inline CreateExportTaskRequest& WithLogStreamNamePrefix(Aws::String&& value) { SetLogStreamNamePrefix(std::move(value)); return *this;}
77 inline CreateExportTaskRequest& WithLogStreamNamePrefix(const char* value) { SetLogStreamNamePrefix(value); return *this;}
79
81
86 inline long long GetFrom() const{ return m_from; }
87 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
88 inline void SetFrom(long long value) { m_fromHasBeenSet = true; m_from = value; }
89 inline CreateExportTaskRequest& WithFrom(long long value) { SetFrom(value); return *this;}
91
93
99 inline long long GetTo() const{ return m_to; }
100 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
101 inline void SetTo(long long value) { m_toHasBeenSet = true; m_to = value; }
102 inline CreateExportTaskRequest& WithTo(long long value) { SetTo(value); return *this;}
104
106
110 inline const Aws::String& GetDestination() const{ return m_destination; }
111 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
112 inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
113 inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
114 inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
115 inline CreateExportTaskRequest& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
116 inline CreateExportTaskRequest& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
117 inline CreateExportTaskRequest& WithDestination(const char* value) { SetDestination(value); return *this;}
119
121
128 inline const Aws::String& GetDestinationPrefix() const{ return m_destinationPrefix; }
129 inline bool DestinationPrefixHasBeenSet() const { return m_destinationPrefixHasBeenSet; }
130 inline void SetDestinationPrefix(const Aws::String& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = value; }
131 inline void SetDestinationPrefix(Aws::String&& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = std::move(value); }
132 inline void SetDestinationPrefix(const char* value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix.assign(value); }
134 inline CreateExportTaskRequest& WithDestinationPrefix(Aws::String&& value) { SetDestinationPrefix(std::move(value)); return *this;}
135 inline CreateExportTaskRequest& WithDestinationPrefix(const char* value) { SetDestinationPrefix(value); return *this;}
137 private:
138
139 Aws::String m_taskName;
140 bool m_taskNameHasBeenSet = false;
141
142 Aws::String m_logGroupName;
143 bool m_logGroupNameHasBeenSet = false;
144
145 Aws::String m_logStreamNamePrefix;
146 bool m_logStreamNamePrefixHasBeenSet = false;
147
148 long long m_from;
149 bool m_fromHasBeenSet = false;
150
151 long long m_to;
152 bool m_toHasBeenSet = false;
153
154 Aws::String m_destination;
155 bool m_destinationHasBeenSet = false;
156
157 Aws::String m_destinationPrefix;
158 bool m_destinationPrefixHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace CloudWatchLogs
163} // namespace Aws
CreateExportTaskRequest & WithLogGroupName(const char *value)
CreateExportTaskRequest & WithDestination(Aws::String &&value)
CreateExportTaskRequest & WithDestinationPrefix(Aws::String &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateExportTaskRequest & WithDestination(const Aws::String &value)
CreateExportTaskRequest & WithTaskName(Aws::String &&value)
CreateExportTaskRequest & WithTaskName(const Aws::String &value)
CreateExportTaskRequest & WithTaskName(const char *value)
CreateExportTaskRequest & WithLogGroupName(const Aws::String &value)
CreateExportTaskRequest & WithLogStreamNamePrefix(const Aws::String &value)
CreateExportTaskRequest & WithLogStreamNamePrefix(const char *value)
CreateExportTaskRequest & WithDestination(const char *value)
CreateExportTaskRequest & WithFrom(long long value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
CreateExportTaskRequest & WithTo(long long value)
CreateExportTaskRequest & WithDestinationPrefix(const Aws::String &value)
CreateExportTaskRequest & WithLogStreamNamePrefix(Aws::String &&value)
CreateExportTaskRequest & WithDestinationPrefix(const char *value)
CreateExportTaskRequest & WithLogGroupName(Aws::String &&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