/** * 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 RDS { namespace Model { /** *

See Also:

AWS * API Reference

*/ class DownloadDBLogFilePortionRequest : public RDSRequest { public: AWS_RDS_API DownloadDBLogFilePortionRequest(); // 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 "DownloadDBLogFilePortion"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The customer-assigned name of the DB instance that contains the log files you * want to list.

Constraints:

  • Must match the identifier of * an existing DBInstance.

*/ inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; } /** *

The customer-assigned name of the DB instance that contains the log files you * want to list.

Constraints:

  • Must match the identifier of * an existing DBInstance.

*/ inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; } /** *

The customer-assigned name of the DB instance that contains the log files you * want to list.

Constraints:

  • Must match the identifier of * an existing DBInstance.

*/ inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; } /** *

The customer-assigned name of the DB instance that contains the log files you * want to list.

Constraints:

  • Must match the identifier of * an existing DBInstance.

*/ inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); } /** *

The customer-assigned name of the DB instance that contains the log files you * want to list.

Constraints:

  • Must match the identifier of * an existing DBInstance.

*/ inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); } /** *

The customer-assigned name of the DB instance that contains the log files you * want to list.

Constraints:

  • Must match the identifier of * an existing DBInstance.

*/ inline DownloadDBLogFilePortionRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;} /** *

The customer-assigned name of the DB instance that contains the log files you * want to list.

Constraints:

  • Must match the identifier of * an existing DBInstance.

*/ inline DownloadDBLogFilePortionRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;} /** *

The customer-assigned name of the DB instance that contains the log files you * want to list.

Constraints:

  • Must match the identifier of * an existing DBInstance.

*/ inline DownloadDBLogFilePortionRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;} /** *

The name of the log file to be downloaded.

*/ inline const Aws::String& GetLogFileName() const{ return m_logFileName; } /** *

The name of the log file to be downloaded.

*/ inline bool LogFileNameHasBeenSet() const { return m_logFileNameHasBeenSet; } /** *

The name of the log file to be downloaded.

*/ inline void SetLogFileName(const Aws::String& value) { m_logFileNameHasBeenSet = true; m_logFileName = value; } /** *

The name of the log file to be downloaded.

*/ inline void SetLogFileName(Aws::String&& value) { m_logFileNameHasBeenSet = true; m_logFileName = std::move(value); } /** *

The name of the log file to be downloaded.

*/ inline void SetLogFileName(const char* value) { m_logFileNameHasBeenSet = true; m_logFileName.assign(value); } /** *

The name of the log file to be downloaded.

*/ inline DownloadDBLogFilePortionRequest& WithLogFileName(const Aws::String& value) { SetLogFileName(value); return *this;} /** *

The name of the log file to be downloaded.

*/ inline DownloadDBLogFilePortionRequest& WithLogFileName(Aws::String&& value) { SetLogFileName(std::move(value)); return *this;} /** *

The name of the log file to be downloaded.

*/ inline DownloadDBLogFilePortionRequest& WithLogFileName(const char* value) { SetLogFileName(value); return *this;} /** *

The pagination token provided in the previous request or "0". If the Marker * parameter is specified the response includes only records beyond the marker * until the end of the file or up to NumberOfLines.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

The pagination token provided in the previous request or "0". If the Marker * parameter is specified the response includes only records beyond the marker * until the end of the file or up to NumberOfLines.

*/ inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } /** *

The pagination token provided in the previous request or "0". If the Marker * parameter is specified the response includes only records beyond the marker * until the end of the file or up to NumberOfLines.

*/ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** *

The pagination token provided in the previous request or "0". If the Marker * parameter is specified the response includes only records beyond the marker * until the end of the file or up to NumberOfLines.

*/ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** *

The pagination token provided in the previous request or "0". If the Marker * parameter is specified the response includes only records beyond the marker * until the end of the file or up to NumberOfLines.

*/ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** *

The pagination token provided in the previous request or "0". If the Marker * parameter is specified the response includes only records beyond the marker * until the end of the file or up to NumberOfLines.

*/ inline DownloadDBLogFilePortionRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

The pagination token provided in the previous request or "0". If the Marker * parameter is specified the response includes only records beyond the marker * until the end of the file or up to NumberOfLines.

*/ inline DownloadDBLogFilePortionRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

The pagination token provided in the previous request or "0". If the Marker * parameter is specified the response includes only records beyond the marker * until the end of the file or up to NumberOfLines.

*/ inline DownloadDBLogFilePortionRequest& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

The number of lines to download. If the number of lines specified results in * a file over 1 MB in size, the file is truncated at 1 MB in size.

If the * NumberOfLines parameter is specified, then the block of lines returned can be * from the beginning or the end of the log file, depending on the value of the * Marker parameter.

  • If neither Marker or NumberOfLines are * specified, the entire log file is returned up to a maximum of 10000 lines, * starting with the most recent log entries first.

  • If * NumberOfLines is specified and Marker isn't specified, then the most recent * lines from the end of the log file are returned.

  • If Marker is * specified as "0", then the specified number of lines from the beginning of the * log file are returned.

  • You can download the log file in blocks * of lines by specifying the size of the block using the NumberOfLines parameter, * and by specifying a value of "0" for the Marker parameter in your first request. * Include the Marker value returned in the response as the Marker value for the * next request, continuing until the AdditionalDataPending response element * returns false.

*/ inline int GetNumberOfLines() const{ return m_numberOfLines; } /** *

The number of lines to download. If the number of lines specified results in * a file over 1 MB in size, the file is truncated at 1 MB in size.

If the * NumberOfLines parameter is specified, then the block of lines returned can be * from the beginning or the end of the log file, depending on the value of the * Marker parameter.

  • If neither Marker or NumberOfLines are * specified, the entire log file is returned up to a maximum of 10000 lines, * starting with the most recent log entries first.

  • If * NumberOfLines is specified and Marker isn't specified, then the most recent * lines from the end of the log file are returned.

  • If Marker is * specified as "0", then the specified number of lines from the beginning of the * log file are returned.

  • You can download the log file in blocks * of lines by specifying the size of the block using the NumberOfLines parameter, * and by specifying a value of "0" for the Marker parameter in your first request. * Include the Marker value returned in the response as the Marker value for the * next request, continuing until the AdditionalDataPending response element * returns false.

*/ inline bool NumberOfLinesHasBeenSet() const { return m_numberOfLinesHasBeenSet; } /** *

The number of lines to download. If the number of lines specified results in * a file over 1 MB in size, the file is truncated at 1 MB in size.

If the * NumberOfLines parameter is specified, then the block of lines returned can be * from the beginning or the end of the log file, depending on the value of the * Marker parameter.

  • If neither Marker or NumberOfLines are * specified, the entire log file is returned up to a maximum of 10000 lines, * starting with the most recent log entries first.

  • If * NumberOfLines is specified and Marker isn't specified, then the most recent * lines from the end of the log file are returned.

  • If Marker is * specified as "0", then the specified number of lines from the beginning of the * log file are returned.

  • You can download the log file in blocks * of lines by specifying the size of the block using the NumberOfLines parameter, * and by specifying a value of "0" for the Marker parameter in your first request. * Include the Marker value returned in the response as the Marker value for the * next request, continuing until the AdditionalDataPending response element * returns false.

*/ inline void SetNumberOfLines(int value) { m_numberOfLinesHasBeenSet = true; m_numberOfLines = value; } /** *

The number of lines to download. If the number of lines specified results in * a file over 1 MB in size, the file is truncated at 1 MB in size.

If the * NumberOfLines parameter is specified, then the block of lines returned can be * from the beginning or the end of the log file, depending on the value of the * Marker parameter.

  • If neither Marker or NumberOfLines are * specified, the entire log file is returned up to a maximum of 10000 lines, * starting with the most recent log entries first.

  • If * NumberOfLines is specified and Marker isn't specified, then the most recent * lines from the end of the log file are returned.

  • If Marker is * specified as "0", then the specified number of lines from the beginning of the * log file are returned.

  • You can download the log file in blocks * of lines by specifying the size of the block using the NumberOfLines parameter, * and by specifying a value of "0" for the Marker parameter in your first request. * Include the Marker value returned in the response as the Marker value for the * next request, continuing until the AdditionalDataPending response element * returns false.

*/ inline DownloadDBLogFilePortionRequest& WithNumberOfLines(int value) { SetNumberOfLines(value); return *this;} private: Aws::String m_dBInstanceIdentifier; bool m_dBInstanceIdentifierHasBeenSet = false; Aws::String m_logFileName; bool m_logFileNameHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; int m_numberOfLines; bool m_numberOfLinesHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws