/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class StartLiveTailRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API StartLiveTailRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartLiveTail"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** * Underlying Event Stream Decoder. */ inline Aws::Utils::Event::EventStreamDecoder& GetEventStreamDecoder() { return m_decoder; } /** * Underlying Event Stream Handler which is used to define callback functions. */ inline const StartLiveTailHandler& GetEventStreamHandler() const { return m_handler; } /** * Underlying Event Stream Handler which is used to define callback functions. */ inline void SetEventStreamHandler(const StartLiveTailHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); } /** * Underlying Event Stream Handler which is used to define callback functions. */ inline StartLiveTailRequest& WithEventStreamHandler(const StartLiveTailHandler& value) { SetEventStreamHandler(value); return *this; } /** *

An array where each item in the array is a log group to include in the Live * Tail session.

Specify each log group by its ARN.

If you specify * an ARN, the ARN can't end with an asterisk (*).

You can include * up to 10 log groups.

*/ inline const Aws::Vector& GetLogGroupIdentifiers() const{ return m_logGroupIdentifiers; } /** *

An array where each item in the array is a log group to include in the Live * Tail session.

Specify each log group by its ARN.

If you specify * an ARN, the ARN can't end with an asterisk (*).

You can include * up to 10 log groups.

*/ inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; } /** *

An array where each item in the array is a log group to include in the Live * Tail session.

Specify each log group by its ARN.

If you specify * an ARN, the ARN can't end with an asterisk (*).

You can include * up to 10 log groups.

*/ inline void SetLogGroupIdentifiers(const Aws::Vector& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers = value; } /** *

An array where each item in the array is a log group to include in the Live * Tail session.

Specify each log group by its ARN.

If you specify * an ARN, the ARN can't end with an asterisk (*).

You can include * up to 10 log groups.

*/ inline void SetLogGroupIdentifiers(Aws::Vector&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers = std::move(value); } /** *

An array where each item in the array is a log group to include in the Live * Tail session.

Specify each log group by its ARN.

If you specify * an ARN, the ARN can't end with an asterisk (*).

You can include * up to 10 log groups.

*/ inline StartLiveTailRequest& WithLogGroupIdentifiers(const Aws::Vector& value) { SetLogGroupIdentifiers(value); return *this;} /** *

An array where each item in the array is a log group to include in the Live * Tail session.

Specify each log group by its ARN.

If you specify * an ARN, the ARN can't end with an asterisk (*).

You can include * up to 10 log groups.

*/ inline StartLiveTailRequest& WithLogGroupIdentifiers(Aws::Vector&& value) { SetLogGroupIdentifiers(std::move(value)); return *this;} /** *

An array where each item in the array is a log group to include in the Live * Tail session.

Specify each log group by its ARN.

If you specify * an ARN, the ARN can't end with an asterisk (*).

You can include * up to 10 log groups.

*/ inline StartLiveTailRequest& AddLogGroupIdentifiers(const Aws::String& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.push_back(value); return *this; } /** *

An array where each item in the array is a log group to include in the Live * Tail session.

Specify each log group by its ARN.

If you specify * an ARN, the ARN can't end with an asterisk (*).

You can include * up to 10 log groups.

*/ inline StartLiveTailRequest& AddLogGroupIdentifiers(Aws::String&& value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.push_back(std::move(value)); return *this; } /** *

An array where each item in the array is a log group to include in the Live * Tail session.

Specify each log group by its ARN.

If you specify * an ARN, the ARN can't end with an asterisk (*).

You can include * up to 10 log groups.

*/ inline StartLiveTailRequest& AddLogGroupIdentifiers(const char* value) { m_logGroupIdentifiersHasBeenSet = true; m_logGroupIdentifiers.push_back(value); return *this; } /** *

If you specify this parameter, then only log events in the log streams that * you specify here are included in the Live Tail session.

If you specify * this field, you can't also specify the logStreamNamePrefixes * field.

You can specify this parameter only if you specify only one * log group in logGroupIdentifiers.

*/ inline const Aws::Vector& GetLogStreamNames() const{ return m_logStreamNames; } /** *

If you specify this parameter, then only log events in the log streams that * you specify here are included in the Live Tail session.

If you specify * this field, you can't also specify the logStreamNamePrefixes * field.

You can specify this parameter only if you specify only one * log group in logGroupIdentifiers.

*/ inline bool LogStreamNamesHasBeenSet() const { return m_logStreamNamesHasBeenSet; } /** *

If you specify this parameter, then only log events in the log streams that * you specify here are included in the Live Tail session.

If you specify * this field, you can't also specify the logStreamNamePrefixes * field.

You can specify this parameter only if you specify only one * log group in logGroupIdentifiers.

*/ inline void SetLogStreamNames(const Aws::Vector& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames = value; } /** *

If you specify this parameter, then only log events in the log streams that * you specify here are included in the Live Tail session.

If you specify * this field, you can't also specify the logStreamNamePrefixes * field.

You can specify this parameter only if you specify only one * log group in logGroupIdentifiers.

*/ inline void SetLogStreamNames(Aws::Vector&& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames = std::move(value); } /** *

If you specify this parameter, then only log events in the log streams that * you specify here are included in the Live Tail session.

If you specify * this field, you can't also specify the logStreamNamePrefixes * field.

You can specify this parameter only if you specify only one * log group in logGroupIdentifiers.

*/ inline StartLiveTailRequest& WithLogStreamNames(const Aws::Vector& value) { SetLogStreamNames(value); return *this;} /** *

If you specify this parameter, then only log events in the log streams that * you specify here are included in the Live Tail session.

If you specify * this field, you can't also specify the logStreamNamePrefixes * field.

You can specify this parameter only if you specify only one * log group in logGroupIdentifiers.

*/ inline StartLiveTailRequest& WithLogStreamNames(Aws::Vector&& value) { SetLogStreamNames(std::move(value)); return *this;} /** *

If you specify this parameter, then only log events in the log streams that * you specify here are included in the Live Tail session.

If you specify * this field, you can't also specify the logStreamNamePrefixes * field.

You can specify this parameter only if you specify only one * log group in logGroupIdentifiers.

*/ inline StartLiveTailRequest& AddLogStreamNames(const Aws::String& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames.push_back(value); return *this; } /** *

If you specify this parameter, then only log events in the log streams that * you specify here are included in the Live Tail session.

If you specify * this field, you can't also specify the logStreamNamePrefixes * field.

You can specify this parameter only if you specify only one * log group in logGroupIdentifiers.

*/ inline StartLiveTailRequest& AddLogStreamNames(Aws::String&& value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames.push_back(std::move(value)); return *this; } /** *

If you specify this parameter, then only log events in the log streams that * you specify here are included in the Live Tail session.

If you specify * this field, you can't also specify the logStreamNamePrefixes * field.

You can specify this parameter only if you specify only one * log group in logGroupIdentifiers.

*/ inline StartLiveTailRequest& AddLogStreamNames(const char* value) { m_logStreamNamesHasBeenSet = true; m_logStreamNames.push_back(value); return *this; } /** *

If you specify this parameter, then only log events in the log streams that * have names that start with the prefixes that you specify here are included in * the Live Tail session.

If you specify this field, you can't also specify * the logStreamNames field.

You can specify this * parameter only if you specify only one log group in * logGroupIdentifiers.

*/ inline const Aws::Vector& GetLogStreamNamePrefixes() const{ return m_logStreamNamePrefixes; } /** *

If you specify this parameter, then only log events in the log streams that * have names that start with the prefixes that you specify here are included in * the Live Tail session.

If you specify this field, you can't also specify * the logStreamNames field.

You can specify this * parameter only if you specify only one log group in * logGroupIdentifiers.

*/ inline bool LogStreamNamePrefixesHasBeenSet() const { return m_logStreamNamePrefixesHasBeenSet; } /** *

If you specify this parameter, then only log events in the log streams that * have names that start with the prefixes that you specify here are included in * the Live Tail session.

If you specify this field, you can't also specify * the logStreamNames field.

You can specify this * parameter only if you specify only one log group in * logGroupIdentifiers.

*/ inline void SetLogStreamNamePrefixes(const Aws::Vector& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes = value; } /** *

If you specify this parameter, then only log events in the log streams that * have names that start with the prefixes that you specify here are included in * the Live Tail session.

If you specify this field, you can't also specify * the logStreamNames field.

You can specify this * parameter only if you specify only one log group in * logGroupIdentifiers.

*/ inline void SetLogStreamNamePrefixes(Aws::Vector&& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes = std::move(value); } /** *

If you specify this parameter, then only log events in the log streams that * have names that start with the prefixes that you specify here are included in * the Live Tail session.

If you specify this field, you can't also specify * the logStreamNames field.

You can specify this * parameter only if you specify only one log group in * logGroupIdentifiers.

*/ inline StartLiveTailRequest& WithLogStreamNamePrefixes(const Aws::Vector& value) { SetLogStreamNamePrefixes(value); return *this;} /** *

If you specify this parameter, then only log events in the log streams that * have names that start with the prefixes that you specify here are included in * the Live Tail session.

If you specify this field, you can't also specify * the logStreamNames field.

You can specify this * parameter only if you specify only one log group in * logGroupIdentifiers.

*/ inline StartLiveTailRequest& WithLogStreamNamePrefixes(Aws::Vector&& value) { SetLogStreamNamePrefixes(std::move(value)); return *this;} /** *

If you specify this parameter, then only log events in the log streams that * have names that start with the prefixes that you specify here are included in * the Live Tail session.

If you specify this field, you can't also specify * the logStreamNames field.

You can specify this * parameter only if you specify only one log group in * logGroupIdentifiers.

*/ inline StartLiveTailRequest& AddLogStreamNamePrefixes(const Aws::String& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes.push_back(value); return *this; } /** *

If you specify this parameter, then only log events in the log streams that * have names that start with the prefixes that you specify here are included in * the Live Tail session.

If you specify this field, you can't also specify * the logStreamNames field.

You can specify this * parameter only if you specify only one log group in * logGroupIdentifiers.

*/ inline StartLiveTailRequest& AddLogStreamNamePrefixes(Aws::String&& value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes.push_back(std::move(value)); return *this; } /** *

If you specify this parameter, then only log events in the log streams that * have names that start with the prefixes that you specify here are included in * the Live Tail session.

If you specify this field, you can't also specify * the logStreamNames field.

You can specify this * parameter only if you specify only one log group in * logGroupIdentifiers.

*/ inline StartLiveTailRequest& AddLogStreamNamePrefixes(const char* value) { m_logStreamNamePrefixesHasBeenSet = true; m_logStreamNamePrefixes.push_back(value); return *this; } /** *

An optional pattern to use to filter the results to include only log events * that match the pattern. For example, a filter pattern of error 404 * causes only log events that include both error and 404 * to be included in the Live Tail stream.

Regular expression filter * patterns are supported.

For more information about filter pattern syntax, * see Filter * and Pattern Syntax.

*/ inline const Aws::String& GetLogEventFilterPattern() const{ return m_logEventFilterPattern; } /** *

An optional pattern to use to filter the results to include only log events * that match the pattern. For example, a filter pattern of error 404 * causes only log events that include both error and 404 * to be included in the Live Tail stream.

Regular expression filter * patterns are supported.

For more information about filter pattern syntax, * see Filter * and Pattern Syntax.

*/ inline bool LogEventFilterPatternHasBeenSet() const { return m_logEventFilterPatternHasBeenSet; } /** *

An optional pattern to use to filter the results to include only log events * that match the pattern. For example, a filter pattern of error 404 * causes only log events that include both error and 404 * to be included in the Live Tail stream.

Regular expression filter * patterns are supported.

For more information about filter pattern syntax, * see Filter * and Pattern Syntax.

*/ inline void SetLogEventFilterPattern(const Aws::String& value) { m_logEventFilterPatternHasBeenSet = true; m_logEventFilterPattern = value; } /** *

An optional pattern to use to filter the results to include only log events * that match the pattern. For example, a filter pattern of error 404 * causes only log events that include both error and 404 * to be included in the Live Tail stream.

Regular expression filter * patterns are supported.

For more information about filter pattern syntax, * see Filter * and Pattern Syntax.

*/ inline void SetLogEventFilterPattern(Aws::String&& value) { m_logEventFilterPatternHasBeenSet = true; m_logEventFilterPattern = std::move(value); } /** *

An optional pattern to use to filter the results to include only log events * that match the pattern. For example, a filter pattern of error 404 * causes only log events that include both error and 404 * to be included in the Live Tail stream.

Regular expression filter * patterns are supported.

For more information about filter pattern syntax, * see Filter * and Pattern Syntax.

*/ inline void SetLogEventFilterPattern(const char* value) { m_logEventFilterPatternHasBeenSet = true; m_logEventFilterPattern.assign(value); } /** *

An optional pattern to use to filter the results to include only log events * that match the pattern. For example, a filter pattern of error 404 * causes only log events that include both error and 404 * to be included in the Live Tail stream.

Regular expression filter * patterns are supported.

For more information about filter pattern syntax, * see Filter * and Pattern Syntax.

*/ inline StartLiveTailRequest& WithLogEventFilterPattern(const Aws::String& value) { SetLogEventFilterPattern(value); return *this;} /** *

An optional pattern to use to filter the results to include only log events * that match the pattern. For example, a filter pattern of error 404 * causes only log events that include both error and 404 * to be included in the Live Tail stream.

Regular expression filter * patterns are supported.

For more information about filter pattern syntax, * see Filter * and Pattern Syntax.

*/ inline StartLiveTailRequest& WithLogEventFilterPattern(Aws::String&& value) { SetLogEventFilterPattern(std::move(value)); return *this;} /** *

An optional pattern to use to filter the results to include only log events * that match the pattern. For example, a filter pattern of error 404 * causes only log events that include both error and 404 * to be included in the Live Tail stream.

Regular expression filter * patterns are supported.

For more information about filter pattern syntax, * see Filter * and Pattern Syntax.

*/ inline StartLiveTailRequest& WithLogEventFilterPattern(const char* value) { SetLogEventFilterPattern(value); return *this;} private: Aws::Vector m_logGroupIdentifiers; bool m_logGroupIdentifiersHasBeenSet = false; Aws::Vector m_logStreamNames; bool m_logStreamNamesHasBeenSet = false; Aws::Vector m_logStreamNamePrefixes; bool m_logStreamNamePrefixesHasBeenSet = false; Aws::String m_logEventFilterPattern; bool m_logEventFilterPatternHasBeenSet = false; StartLiveTailHandler m_handler; Aws::Utils::Event::EventStreamDecoder m_decoder; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws