AWS SDK for C++  0.12.9
AWS SDK for C++
CreateExportTaskRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace CloudWatchLogs
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
40  inline const Aws::String& GetTaskName() const{ return m_taskName; }
41 
45  inline void SetTaskName(const Aws::String& value) { m_taskNameHasBeenSet = true; m_taskName = value; }
46 
50  inline void SetTaskName(Aws::String&& value) { m_taskNameHasBeenSet = true; m_taskName = value; }
51 
55  inline void SetTaskName(const char* value) { m_taskNameHasBeenSet = true; m_taskName.assign(value); }
56 
60  inline CreateExportTaskRequest& WithTaskName(const Aws::String& value) { SetTaskName(value); return *this;}
61 
65  inline CreateExportTaskRequest& WithTaskName(Aws::String&& value) { SetTaskName(value); return *this;}
66 
70  inline CreateExportTaskRequest& WithTaskName(const char* value) { SetTaskName(value); return *this;}
71 
75  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
76 
80  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
81 
85  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
86 
90  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
91 
95  inline CreateExportTaskRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
96 
100  inline CreateExportTaskRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(value); return *this;}
101 
105  inline CreateExportTaskRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
106 
111  inline const Aws::String& GetLogStreamNamePrefix() const{ return m_logStreamNamePrefix; }
112 
117  inline void SetLogStreamNamePrefix(const Aws::String& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = value; }
118 
123  inline void SetLogStreamNamePrefix(Aws::String&& value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix = value; }
124 
129  inline void SetLogStreamNamePrefix(const char* value) { m_logStreamNamePrefixHasBeenSet = true; m_logStreamNamePrefix.assign(value); }
130 
135  inline CreateExportTaskRequest& WithLogStreamNamePrefix(const Aws::String& value) { SetLogStreamNamePrefix(value); return *this;}
136 
141  inline CreateExportTaskRequest& WithLogStreamNamePrefix(Aws::String&& value) { SetLogStreamNamePrefix(value); return *this;}
142 
147  inline CreateExportTaskRequest& WithLogStreamNamePrefix(const char* value) { SetLogStreamNamePrefix(value); return *this;}
148 
154  inline long long GetFrom() const{ return m_from; }
155 
161  inline void SetFrom(long long value) { m_fromHasBeenSet = true; m_from = value; }
162 
168  inline CreateExportTaskRequest& WithFrom(long long value) { SetFrom(value); return *this;}
169 
175  inline long long GetTo() const{ return m_to; }
176 
182  inline void SetTo(long long value) { m_toHasBeenSet = true; m_to = value; }
183 
189  inline CreateExportTaskRequest& WithTo(long long value) { SetTo(value); return *this;}
190 
195  inline const Aws::String& GetDestination() const{ return m_destination; }
196 
201  inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
202 
207  inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = value; }
208 
213  inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
214 
219  inline CreateExportTaskRequest& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
220 
225  inline CreateExportTaskRequest& WithDestination(Aws::String&& value) { SetDestination(value); return *this;}
226 
231  inline CreateExportTaskRequest& WithDestination(const char* value) { SetDestination(value); return *this;}
232 
237  inline const Aws::String& GetDestinationPrefix() const{ return m_destinationPrefix; }
238 
243  inline void SetDestinationPrefix(const Aws::String& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = value; }
244 
249  inline void SetDestinationPrefix(Aws::String&& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = value; }
250 
255  inline void SetDestinationPrefix(const char* value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix.assign(value); }
256 
261  inline CreateExportTaskRequest& WithDestinationPrefix(const Aws::String& value) { SetDestinationPrefix(value); return *this;}
262 
267  inline CreateExportTaskRequest& WithDestinationPrefix(Aws::String&& value) { SetDestinationPrefix(value); return *this;}
268 
273  inline CreateExportTaskRequest& WithDestinationPrefix(const char* value) { SetDestinationPrefix(value); return *this;}
274 
275  private:
276  Aws::String m_taskName;
277  bool m_taskNameHasBeenSet;
278  Aws::String m_logGroupName;
279  bool m_logGroupNameHasBeenSet;
280  Aws::String m_logStreamNamePrefix;
281  bool m_logStreamNamePrefixHasBeenSet;
282  long long m_from;
283  bool m_fromHasBeenSet;
284  long long m_to;
285  bool m_toHasBeenSet;
286  Aws::String m_destination;
287  bool m_destinationHasBeenSet;
288  Aws::String m_destinationPrefix;
289  bool m_destinationPrefixHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace CloudWatchLogs
294 } // namespace Aws
CreateExportTaskRequest & WithTaskName(const Aws::String &value)
CreateExportTaskRequest & WithDestination(Aws::String &&value)
CreateExportTaskRequest & WithLogStreamNamePrefix(const char *value)
CreateExportTaskRequest & WithLogGroupName(Aws::String &&value)
CreateExportTaskRequest & WithLogStreamNamePrefix(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateExportTaskRequest & WithDestinationPrefix(const Aws::String &value)
CreateExportTaskRequest & WithDestinationPrefix(Aws::String &&value)
#define AWS_CLOUDWATCHLOGS_API
CreateExportTaskRequest & WithDestination(const Aws::String &value)
CreateExportTaskRequest & WithLogStreamNamePrefix(Aws::String &&value)
CreateExportTaskRequest & WithDestinationPrefix(const char *value)
CreateExportTaskRequest & WithTo(long long value)
CreateExportTaskRequest & WithTaskName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateExportTaskRequest & WithFrom(long long value)
CreateExportTaskRequest & WithLogGroupName(const Aws::String &value)
CreateExportTaskRequest & WithLogGroupName(const char *value)
CreateExportTaskRequest & WithDestination(const char *value)
CreateExportTaskRequest & WithTaskName(Aws::String &&value)
JSON (JavaScript Object Notation).