7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogsRequest.h>
11#include <aws/logs/CloudWatchLogs_EXPORTS.h>
12#include <aws/logs/model/DestinationConfiguration.h>
13#include <aws/logs/model/QueryLanguage.h>
14#include <aws/logs/model/ScheduledQueryState.h>
19namespace CloudWatchLogs {
45 template <
typename NameT = Aws::String>
47 m_nameHasBeenSet =
true;
48 m_name = std::forward<NameT>(value);
50 template <
typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
64 template <
typename DescriptionT = Aws::String>
66 m_descriptionHasBeenSet =
true;
67 m_description = std::forward<DescriptionT>(value);
69 template <
typename DescriptionT = Aws::String>
84 m_queryLanguageHasBeenSet =
true;
85 m_queryLanguage = value;
100 template <
typename QueryStringT = Aws::String>
102 m_queryStringHasBeenSet =
true;
103 m_queryString = std::forward<QueryStringT>(value);
105 template <
typename QueryStringT = Aws::String>
119 template <
typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
121 m_logGroupIdentifiersHasBeenSet =
true;
122 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
124 template <
typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
129 template <
typename LogGroupIdentifiersT = Aws::String>
131 m_logGroupIdentifiersHasBeenSet =
true;
132 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
145 template <
typename ScheduleExpressionT = Aws::String>
147 m_scheduleExpressionHasBeenSet =
true;
148 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
150 template <
typename ScheduleExpressionT = Aws::String>
164 template <
typename TimezoneT = Aws::String>
166 m_timezoneHasBeenSet =
true;
167 m_timezone = std::forward<TimezoneT>(value);
169 template <
typename TimezoneT = Aws::String>
185 m_startTimeOffsetHasBeenSet =
true;
186 m_startTimeOffset = value;
203 m_endTimeOffsetHasBeenSet =
true;
204 m_endTimeOffset = value;
219 template <
typename DestinationConfigurationT = DestinationConfiguration>
221 m_destinationConfigurationHasBeenSet =
true;
222 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
224 template <
typename DestinationConfigurationT = DestinationConfiguration>
239 m_scheduleStartTimeHasBeenSet =
true;
240 m_scheduleStartTime = value;
256 m_scheduleEndTimeHasBeenSet =
true;
257 m_scheduleEndTime = value;
273 template <
typename ExecutionRoleArnT = Aws::String>
275 m_executionRoleArnHasBeenSet =
true;
276 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
278 template <
typename ExecutionRoleArnT = Aws::String>
294 m_stateHasBeenSet =
true;
310 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
312 m_tagsHasBeenSet =
true;
313 m_tags = std::forward<TagsT>(value);
315 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
317 SetTags(std::forward<TagsT>(value));
320 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
322 m_tagsHasBeenSet =
true;
323 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
342 long long m_startTimeOffset{0};
344 long long m_endTimeOffset{0};
346 DestinationConfiguration m_destinationConfiguration;
348 long long m_scheduleStartTime{0};
350 long long m_scheduleEndTime{0};
357 bool m_nameHasBeenSet =
false;
358 bool m_descriptionHasBeenSet =
false;
359 bool m_queryLanguageHasBeenSet =
false;
360 bool m_queryStringHasBeenSet =
false;
361 bool m_logGroupIdentifiersHasBeenSet =
false;
362 bool m_scheduleExpressionHasBeenSet =
false;
363 bool m_timezoneHasBeenSet =
false;
364 bool m_startTimeOffsetHasBeenSet =
false;
365 bool m_endTimeOffsetHasBeenSet =
false;
366 bool m_destinationConfigurationHasBeenSet =
false;
367 bool m_scheduleStartTimeHasBeenSet =
false;
368 bool m_scheduleEndTimeHasBeenSet =
false;
369 bool m_executionRoleArnHasBeenSet =
false;
370 bool m_stateHasBeenSet =
false;
371 bool m_tagsHasBeenSet =
false;
bool ScheduleEndTimeHasBeenSet() const
void SetState(ScheduledQueryState value)
CreateScheduledQueryRequest & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
CreateScheduledQueryRequest & WithTags(TagsT &&value)
const Aws::String & GetScheduleExpression() const
const Aws::String & GetDescription() const
bool QueryStringHasBeenSet() const
ScheduledQueryState GetState() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
void SetDestinationConfiguration(DestinationConfigurationT &&value)
CreateScheduledQueryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool LogGroupIdentifiersHasBeenSet() const
CreateScheduledQueryRequest & WithDestinationConfiguration(DestinationConfigurationT &&value)
long long GetEndTimeOffset() const
QueryLanguage GetQueryLanguage() const
bool StartTimeOffsetHasBeenSet() const
void SetQueryLanguage(QueryLanguage value)
bool StateHasBeenSet() const
CreateScheduledQueryRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
void SetTimezone(TimezoneT &&value)
const DestinationConfiguration & GetDestinationConfiguration() const
CreateScheduledQueryRequest & WithStartTimeOffset(long long value)
AWS_CLOUDWATCHLOGS_API CreateScheduledQueryRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetScheduleStartTime(long long value)
CreateScheduledQueryRequest & WithState(ScheduledQueryState value)
void SetEndTimeOffset(long long value)
long long GetScheduleEndTime() const
bool EndTimeOffsetHasBeenSet() const
const Aws::String & GetQueryString() const
CreateScheduledQueryRequest & WithQueryString(QueryStringT &&value)
CreateScheduledQueryRequest & WithTimezone(TimezoneT &&value)
CreateScheduledQueryRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
bool QueryLanguageHasBeenSet() const
bool DescriptionHasBeenSet() const
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
long long GetScheduleStartTime() const
CreateScheduledQueryRequest & WithQueryLanguage(QueryLanguage value)
void SetDescription(DescriptionT &&value)
bool TimezoneHasBeenSet() const
CreateScheduledQueryRequest & WithScheduleExpression(ScheduleExpressionT &&value)
long long GetStartTimeOffset() const
bool ScheduleStartTimeHasBeenSet() const
void SetTags(TagsT &&value)
const Aws::String & GetExecutionRoleArn() const
bool ExecutionRoleArnHasBeenSet() const
CreateScheduledQueryRequest & WithEndTimeOffset(long long value)
CreateScheduledQueryRequest & WithScheduleEndTime(long long value)
bool ScheduleExpressionHasBeenSet() const
bool DestinationConfigurationHasBeenSet() const
CreateScheduledQueryRequest & WithScheduleStartTime(long long value)
void SetStartTimeOffset(long long value)
bool TagsHasBeenSet() const
const Aws::String & GetName() const
CreateScheduledQueryRequest & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
bool NameHasBeenSet() const
void SetLogGroupIdentifiers(LogGroupIdentifiersT &&value)
void SetQueryString(QueryStringT &&value)
void SetScheduleEndTime(long long value)
const Aws::String & GetTimezone() const
virtual const char * GetServiceRequestName() const override
void SetName(NameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
CreateScheduledQueryRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector