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 {
46 template <
typename NameT = Aws::String>
48 m_nameHasBeenSet =
true;
49 m_name = std::forward<NameT>(value);
51 template <
typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
65 template <
typename DescriptionT = Aws::String>
67 m_descriptionHasBeenSet =
true;
68 m_description = std::forward<DescriptionT>(value);
70 template <
typename DescriptionT = Aws::String>
85 m_queryLanguageHasBeenSet =
true;
86 m_queryLanguage = value;
101 template <
typename QueryStringT = Aws::String>
103 m_queryStringHasBeenSet =
true;
104 m_queryString = std::forward<QueryStringT>(value);
106 template <
typename QueryStringT = Aws::String>
120 template <
typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
122 m_logGroupIdentifiersHasBeenSet =
true;
123 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
125 template <
typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
130 template <
typename LogGroupIdentifiersT = Aws::String>
132 m_logGroupIdentifiersHasBeenSet =
true;
133 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
146 template <
typename ScheduleExpressionT = Aws::String>
148 m_scheduleExpressionHasBeenSet =
true;
149 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
151 template <
typename ScheduleExpressionT = Aws::String>
165 template <
typename TimezoneT = Aws::String>
167 m_timezoneHasBeenSet =
true;
168 m_timezone = std::forward<TimezoneT>(value);
170 template <
typename TimezoneT = Aws::String>
186 m_startTimeOffsetHasBeenSet =
true;
187 m_startTimeOffset = value;
202 template <
typename DestinationConfigurationT = DestinationConfiguration>
204 m_destinationConfigurationHasBeenSet =
true;
205 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
207 template <
typename DestinationConfigurationT = DestinationConfiguration>
222 m_scheduleStartTimeHasBeenSet =
true;
223 m_scheduleStartTime = value;
239 m_scheduleEndTimeHasBeenSet =
true;
240 m_scheduleEndTime = value;
256 template <
typename ExecutionRoleArnT = Aws::String>
258 m_executionRoleArnHasBeenSet =
true;
259 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
261 template <
typename ExecutionRoleArnT = Aws::String>
277 m_stateHasBeenSet =
true;
293 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
295 m_tagsHasBeenSet =
true;
296 m_tags = std::forward<TagsT>(value);
298 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
300 SetTags(std::forward<TagsT>(value));
303 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
305 m_tagsHasBeenSet =
true;
306 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
325 long long m_startTimeOffset{0};
327 DestinationConfiguration m_destinationConfiguration;
329 long long m_scheduleStartTime{0};
331 long long m_scheduleEndTime{0};
338 bool m_nameHasBeenSet =
false;
339 bool m_descriptionHasBeenSet =
false;
340 bool m_queryLanguageHasBeenSet =
false;
341 bool m_queryStringHasBeenSet =
false;
342 bool m_logGroupIdentifiersHasBeenSet =
false;
343 bool m_scheduleExpressionHasBeenSet =
false;
344 bool m_timezoneHasBeenSet =
false;
345 bool m_startTimeOffsetHasBeenSet =
false;
346 bool m_destinationConfigurationHasBeenSet =
false;
347 bool m_scheduleStartTimeHasBeenSet =
false;
348 bool m_scheduleEndTimeHasBeenSet =
false;
349 bool m_executionRoleArnHasBeenSet =
false;
350 bool m_stateHasBeenSet =
false;
351 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)
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)
long long GetScheduleEndTime() 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 & 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