/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Lightsail { namespace Model { /** */ class GetContainerLogRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API GetContainerLogRequest(); // 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 "GetContainerLog"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the container service for which to get a container log.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the container service for which to get a container log.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the container service for which to get a container log.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the container service for which to get a container log.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the container service for which to get a container log.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the container service for which to get a container log.

*/ inline GetContainerLogRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the container service for which to get a container log.

*/ inline GetContainerLogRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the container service for which to get a container log.

*/ inline GetContainerLogRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The name of the container that is either running or previously ran on the * container service for which to return a log.

*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *

The name of the container that is either running or previously ran on the * container service for which to return a log.

*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *

The name of the container that is either running or previously ran on the * container service for which to return a log.

*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *

The name of the container that is either running or previously ran on the * container service for which to return a log.

*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *

The name of the container that is either running or previously ran on the * container service for which to return a log.

*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *

The name of the container that is either running or previously ran on the * container service for which to return a log.

*/ inline GetContainerLogRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *

The name of the container that is either running or previously ran on the * container service for which to return a log.

*/ inline GetContainerLogRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *

The name of the container that is either running or previously ran on the * container service for which to return a log.

*/ inline GetContainerLogRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *

The start of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify * 1538424000 as the start time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify * 1538424000 as the start time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify * 1538424000 as the start time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify * 1538424000 as the start time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify * 1538424000 as the start time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline GetContainerLogRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify * 1538424000 as the start time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline GetContainerLogRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify * 1538427600 as the end time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify * 1538427600 as the end time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify * 1538427600 as the end time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify * 1538427600 as the end time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify * 1538427600 as the end time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline GetContainerLogRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end of the time interval for which to get log data.

*

Constraints:

  • Specified in Coordinated Universal Time * (UTC).

  • Specified in the Unix time format.

    For example, * if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify * 1538427600 as the end time.

You can convert a * human-friendly time to Unix time format using a converter like Epoch converter.

*/ inline GetContainerLogRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The pattern to use to filter the returned log events to a specific term.

*

The following are a few examples of filter patterns that you can specify:

*
  • To return all log events, specify a filter pattern of * "".

  • To exclude log events that contain the * ERROR term, and return all other log events, specify a filter * pattern of "-ERROR".

  • To return log events that * contain the ERROR term, specify a filter pattern of * "ERROR".

  • To return log events that contain both * the ERROR and Exception terms, specify a filter * pattern of "ERROR Exception".

  • To return log * events that contain the ERROR or the Exception * term, specify a filter pattern of "?ERROR ?Exception".

  • *
*/ inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; } /** *

The pattern to use to filter the returned log events to a specific term.

*

The following are a few examples of filter patterns that you can specify:

*
  • To return all log events, specify a filter pattern of * "".

  • To exclude log events that contain the * ERROR term, and return all other log events, specify a filter * pattern of "-ERROR".

  • To return log events that * contain the ERROR term, specify a filter pattern of * "ERROR".

  • To return log events that contain both * the ERROR and Exception terms, specify a filter * pattern of "ERROR Exception".

  • To return log * events that contain the ERROR or the Exception * term, specify a filter pattern of "?ERROR ?Exception".

  • *
*/ inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; } /** *

The pattern to use to filter the returned log events to a specific term.

*

The following are a few examples of filter patterns that you can specify:

*
  • To return all log events, specify a filter pattern of * "".

  • To exclude log events that contain the * ERROR term, and return all other log events, specify a filter * pattern of "-ERROR".

  • To return log events that * contain the ERROR term, specify a filter pattern of * "ERROR".

  • To return log events that contain both * the ERROR and Exception terms, specify a filter * pattern of "ERROR Exception".

  • To return log * events that contain the ERROR or the Exception * term, specify a filter pattern of "?ERROR ?Exception".

  • *
*/ inline void SetFilterPattern(const Aws::String& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; } /** *

The pattern to use to filter the returned log events to a specific term.

*

The following are a few examples of filter patterns that you can specify:

*
  • To return all log events, specify a filter pattern of * "".

  • To exclude log events that contain the * ERROR term, and return all other log events, specify a filter * pattern of "-ERROR".

  • To return log events that * contain the ERROR term, specify a filter pattern of * "ERROR".

  • To return log events that contain both * the ERROR and Exception terms, specify a filter * pattern of "ERROR Exception".

  • To return log * events that contain the ERROR or the Exception * term, specify a filter pattern of "?ERROR ?Exception".

  • *
*/ inline void SetFilterPattern(Aws::String&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::move(value); } /** *

The pattern to use to filter the returned log events to a specific term.

*

The following are a few examples of filter patterns that you can specify:

*
  • To return all log events, specify a filter pattern of * "".

  • To exclude log events that contain the * ERROR term, and return all other log events, specify a filter * pattern of "-ERROR".

  • To return log events that * contain the ERROR term, specify a filter pattern of * "ERROR".

  • To return log events that contain both * the ERROR and Exception terms, specify a filter * pattern of "ERROR Exception".

  • To return log * events that contain the ERROR or the Exception * term, specify a filter pattern of "?ERROR ?Exception".

  • *
*/ inline void SetFilterPattern(const char* value) { m_filterPatternHasBeenSet = true; m_filterPattern.assign(value); } /** *

The pattern to use to filter the returned log events to a specific term.

*

The following are a few examples of filter patterns that you can specify:

*
  • To return all log events, specify a filter pattern of * "".

  • To exclude log events that contain the * ERROR term, and return all other log events, specify a filter * pattern of "-ERROR".

  • To return log events that * contain the ERROR term, specify a filter pattern of * "ERROR".

  • To return log events that contain both * the ERROR and Exception terms, specify a filter * pattern of "ERROR Exception".

  • To return log * events that contain the ERROR or the Exception * term, specify a filter pattern of "?ERROR ?Exception".

  • *
*/ inline GetContainerLogRequest& WithFilterPattern(const Aws::String& value) { SetFilterPattern(value); return *this;} /** *

The pattern to use to filter the returned log events to a specific term.

*

The following are a few examples of filter patterns that you can specify:

*
  • To return all log events, specify a filter pattern of * "".

  • To exclude log events that contain the * ERROR term, and return all other log events, specify a filter * pattern of "-ERROR".

  • To return log events that * contain the ERROR term, specify a filter pattern of * "ERROR".

  • To return log events that contain both * the ERROR and Exception terms, specify a filter * pattern of "ERROR Exception".

  • To return log * events that contain the ERROR or the Exception * term, specify a filter pattern of "?ERROR ?Exception".

  • *
*/ inline GetContainerLogRequest& WithFilterPattern(Aws::String&& value) { SetFilterPattern(std::move(value)); return *this;} /** *

The pattern to use to filter the returned log events to a specific term.

*

The following are a few examples of filter patterns that you can specify:

*
  • To return all log events, specify a filter pattern of * "".

  • To exclude log events that contain the * ERROR term, and return all other log events, specify a filter * pattern of "-ERROR".

  • To return log events that * contain the ERROR term, specify a filter pattern of * "ERROR".

  • To return log events that contain both * the ERROR and Exception terms, specify a filter * pattern of "ERROR Exception".

  • To return log * events that contain the ERROR or the Exception * term, specify a filter pattern of "?ERROR ?Exception".

  • *
*/ inline GetContainerLogRequest& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;} /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetContainerLog request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline const Aws::String& GetPageToken() const{ return m_pageToken; } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetContainerLog request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetContainerLog request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetContainerLog request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetContainerLog request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); } /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetContainerLog request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline GetContainerLogRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;} /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetContainerLog request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline GetContainerLogRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;} /** *

The token to advance to the next page of results from your request.

To * get a page token, perform an initial GetContainerLog request. If * your results are paginated, the response will return a next page token that you * can specify as the page token in a subsequent request.

*/ inline GetContainerLogRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;} private: Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_containerName; bool m_containerNameHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_filterPattern; bool m_filterPatternHasBeenSet = false; Aws::String m_pageToken; bool m_pageTokenHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws