/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

This object contains information about this Live Tail session, including the * log groups included and the log stream filters, if any.

See Also:

* AWS * API Reference

*/ class LiveTailSessionStart { public: AWS_CLOUDWATCHLOGS_API LiveTailSessionStart(); AWS_CLOUDWATCHLOGS_API LiveTailSessionStart(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API LiveTailSessionStart& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail session * request.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail session * request.

*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail session * request.

*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail session * request.

*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail session * request.

*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail session * request.

*/ inline LiveTailSessionStart& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail session * request.

*/ inline LiveTailSessionStart& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail session * request.

*/ inline LiveTailSessionStart& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail * session.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail * session.

*/ inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail * session.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail * session.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail * session.

*/ inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail * session.

*/ inline LiveTailSessionStart& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail * session.

*/ inline LiveTailSessionStart& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The unique ID generated by CloudWatch Logs to identify this Live Tail * session.

*/ inline LiveTailSessionStart& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

An array of the names and ARNs of the log groups included in this Live Tail * session.

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

An array of the names and ARNs of the log groups included in this Live Tail * session.

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

An array of the names and ARNs of the log groups included in this Live Tail * session.

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

An array of the names and ARNs of the log groups included in this Live Tail * session.

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

An array of the names and ARNs of the log groups included in this Live Tail * session.

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

An array of the names and ARNs of the log groups included in this Live Tail * session.

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

An array of the names and ARNs of the log groups included in this Live Tail * session.

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

An array of the names and ARNs of the log groups included in this Live Tail * session.

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

An array of the names and ARNs of the log groups included in this Live Tail * session.

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

If your StartLiveTail operation request included a * logStreamNames parameter that filtered the session to only include * certain log streams, these streams are listed here.

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

If your StartLiveTail operation request included a * logStreamNames parameter that filtered the session to only include * certain log streams, these streams are listed here.

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

If your StartLiveTail operation request included a * logStreamNames parameter that filtered the session to only include * certain log streams, these streams are listed here.

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

If your StartLiveTail operation request included a * logStreamNames parameter that filtered the session to only include * certain log streams, these streams are listed here.

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

If your StartLiveTail operation request included a * logStreamNames parameter that filtered the session to only include * certain log streams, these streams are listed here.

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

If your StartLiveTail operation request included a * logStreamNames parameter that filtered the session to only include * certain log streams, these streams are listed here.

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

If your StartLiveTail operation request included a * logStreamNames parameter that filtered the session to only include * certain log streams, these streams are listed here.

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

If your StartLiveTail operation request included a * logStreamNames parameter that filtered the session to only include * certain log streams, these streams are listed here.

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

If your StartLiveTail operation request included a * logStreamNames parameter that filtered the session to only include * certain log streams, these streams are listed here.

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

If your StartLiveTail operation request included a * logStreamNamePrefixes parameter that filtered the session to only * include log streams that have names that start with certain prefixes, these * prefixes are listed here.

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

If your StartLiveTail operation request included a * logStreamNamePrefixes parameter that filtered the session to only * include log streams that have names that start with certain prefixes, these * prefixes are listed here.

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

If your StartLiveTail operation request included a * logStreamNamePrefixes parameter that filtered the session to only * include log streams that have names that start with certain prefixes, these * prefixes are listed here.

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

If your StartLiveTail operation request included a * logStreamNamePrefixes parameter that filtered the session to only * include log streams that have names that start with certain prefixes, these * prefixes are listed here.

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

If your StartLiveTail operation request included a * logStreamNamePrefixes parameter that filtered the session to only * include log streams that have names that start with certain prefixes, these * prefixes are listed here.

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

If your StartLiveTail operation request included a * logStreamNamePrefixes parameter that filtered the session to only * include log streams that have names that start with certain prefixes, these * prefixes are listed here.

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

If your StartLiveTail operation request included a * logStreamNamePrefixes parameter that filtered the session to only * include log streams that have names that start with certain prefixes, these * prefixes are listed here.

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

If your StartLiveTail operation request included a * logStreamNamePrefixes parameter that filtered the session to only * include log streams that have names that start with certain prefixes, these * prefixes are listed here.

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

If your StartLiveTail operation request included a * logStreamNamePrefixes parameter that filtered the session to only * include log streams that have names that start with certain prefixes, these * prefixes are listed here.

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

An optional pattern to filter the results to include only log events that * match the pattern. For example, a filter pattern of error 404 * displays only log events that include both error and * 404.

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 filter the results to include only log events that * match the pattern. For example, a filter pattern of error 404 * displays only log events that include both error and * 404.

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

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

An optional pattern to filter the results to include only log events that * match the pattern. For example, a filter pattern of error 404 * displays only log events that include both error and * 404.

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 filter the results to include only log events that * match the pattern. For example, a filter pattern of error 404 * displays only log events that include both error and * 404.

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 filter the results to include only log events that * match the pattern. For example, a filter pattern of error 404 * displays only log events that include both error and * 404.

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 filter the results to include only log events that * match the pattern. For example, a filter pattern of error 404 * displays only log events that include both error and * 404.

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

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

An optional pattern to filter the results to include only log events that * match the pattern. For example, a filter pattern of error 404 * displays only log events that include both error and * 404.

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

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

An optional pattern to filter the results to include only log events that * match the pattern. For example, a filter pattern of error 404 * displays only log events that include both error and * 404.

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

*/ inline LiveTailSessionStart& WithLogEventFilterPattern(const char* value) { SetLogEventFilterPattern(value); return *this;} private: Aws::String m_requestId; bool m_requestIdHasBeenSet = false; Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; 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; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws