/** * 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 GetRelationalDatabaseLogEventsRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API GetRelationalDatabaseLogEventsRequest(); // 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 "GetRelationalDatabaseLogEvents"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of your database for which to get log events.

*/ inline const Aws::String& GetRelationalDatabaseName() const{ return m_relationalDatabaseName; } /** *

The name of your database for which to get log events.

*/ inline bool RelationalDatabaseNameHasBeenSet() const { return m_relationalDatabaseNameHasBeenSet; } /** *

The name of your database for which to get log events.

*/ inline void SetRelationalDatabaseName(const Aws::String& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = value; } /** *

The name of your database for which to get log events.

*/ inline void SetRelationalDatabaseName(Aws::String&& value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName = std::move(value); } /** *

The name of your database for which to get log events.

*/ inline void SetRelationalDatabaseName(const char* value) { m_relationalDatabaseNameHasBeenSet = true; m_relationalDatabaseName.assign(value); } /** *

The name of your database for which to get log events.

*/ inline GetRelationalDatabaseLogEventsRequest& WithRelationalDatabaseName(const Aws::String& value) { SetRelationalDatabaseName(value); return *this;} /** *

The name of your database for which to get log events.

*/ inline GetRelationalDatabaseLogEventsRequest& WithRelationalDatabaseName(Aws::String&& value) { SetRelationalDatabaseName(std::move(value)); return *this;} /** *

The name of your database for which to get log events.

*/ inline GetRelationalDatabaseLogEventsRequest& WithRelationalDatabaseName(const char* value) { SetRelationalDatabaseName(value); return *this;} /** *

The name of the log stream.

Use the get relational database log * streams operation to get a list of available log streams.

*/ inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; } /** *

The name of the log stream.

Use the get relational database log * streams operation to get a list of available log streams.

*/ inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; } /** *

The name of the log stream.

Use the get relational database log * streams operation to get a list of available log streams.

*/ inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; } /** *

The name of the log stream.

Use the get relational database log * streams operation to get a list of available log streams.

*/ inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); } /** *

The name of the log stream.

Use the get relational database log * streams operation to get a list of available log streams.

*/ inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); } /** *

The name of the log stream.

Use the get relational database log * streams operation to get a list of available log streams.

*/ inline GetRelationalDatabaseLogEventsRequest& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;} /** *

The name of the log stream.

Use the get relational database log * streams operation to get a list of available log streams.

*/ inline GetRelationalDatabaseLogEventsRequest& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;} /** *

The name of the log stream.

Use the get relational database log * streams operation to get a list of available log streams.

*/ inline GetRelationalDatabaseLogEventsRequest& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;} /** *

The start of the time interval from which to get log events.

*

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, then you input * 1538424000 as the start time.

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

The start of the time interval from which to get log events.

*

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, then you input * 1538424000 as the start time.

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

The start of the time interval from which to get log events.

*

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, then you input * 1538424000 as the start time.

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

The start of the time interval from which to get log events.

*

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, then you input * 1538424000 as the start time.

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

The start of the time interval from which to get log events.

*

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, then you input * 1538424000 as the start time.

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

The start of the time interval from which to get log events.

*

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, then you input * 1538424000 as the start time.

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

The end of the time interval from which to get log events.

*

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 8 PM UTC, then you input * 1538424000 as the end time.

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

The end of the time interval from which to get log events.

*

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 8 PM UTC, then you input * 1538424000 as the end time.

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

The end of the time interval from which to get log events.

*

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 8 PM UTC, then you input * 1538424000 as the end time.

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

The end of the time interval from which to get log events.

*

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 8 PM UTC, then you input * 1538424000 as the end time.

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

The end of the time interval from which to get log events.

*

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 8 PM UTC, then you input * 1538424000 as the end time.

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

The end of the time interval from which to get log events.

*

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 8 PM UTC, then you input * 1538424000 as the end time.

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

Parameter to specify if the log should start from head or tail. If * true is specified, the log event starts from the head of the log. * If false is specified, the log event starts from the tail of the * log.

For PostgreSQL, the default value of false is * the only option available.

*/ inline bool GetStartFromHead() const{ return m_startFromHead; } /** *

Parameter to specify if the log should start from head or tail. If * true is specified, the log event starts from the head of the log. * If false is specified, the log event starts from the tail of the * log.

For PostgreSQL, the default value of false is * the only option available.

*/ inline bool StartFromHeadHasBeenSet() const { return m_startFromHeadHasBeenSet; } /** *

Parameter to specify if the log should start from head or tail. If * true is specified, the log event starts from the head of the log. * If false is specified, the log event starts from the tail of the * log.

For PostgreSQL, the default value of false is * the only option available.

*/ inline void SetStartFromHead(bool value) { m_startFromHeadHasBeenSet = true; m_startFromHead = value; } /** *

Parameter to specify if the log should start from head or tail. If * true is specified, the log event starts from the head of the log. * If false is specified, the log event starts from the tail of the * log.

For PostgreSQL, the default value of false is * the only option available.

*/ inline GetRelationalDatabaseLogEventsRequest& WithStartFromHead(bool value) { SetStartFromHead(value); return *this;} /** *

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

To get a page token, perform an initial * GetRelationalDatabaseLogEvents request. If your results are * paginated, the response will return a next forward token and/or next backward * 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 or previous page of results from your * request.

To get a page token, perform an initial * GetRelationalDatabaseLogEvents request. If your results are * paginated, the response will return a next forward token and/or next backward * 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 or previous page of results from your * request.

To get a page token, perform an initial * GetRelationalDatabaseLogEvents request. If your results are * paginated, the response will return a next forward token and/or next backward * 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 or previous page of results from your * request.

To get a page token, perform an initial * GetRelationalDatabaseLogEvents request. If your results are * paginated, the response will return a next forward token and/or next backward * 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 or previous page of results from your * request.

To get a page token, perform an initial * GetRelationalDatabaseLogEvents request. If your results are * paginated, the response will return a next forward token and/or next backward * 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 or previous page of results from your * request.

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

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

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

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

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

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

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

*/ inline GetRelationalDatabaseLogEventsRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;} private: Aws::String m_relationalDatabaseName; bool m_relationalDatabaseNameHasBeenSet = false; Aws::String m_logStreamName; bool m_logStreamNameHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; bool m_startFromHead; bool m_startFromHeadHasBeenSet = false; Aws::String m_pageToken; bool m_pageTokenHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws