This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-rds-data/include/aws/rds-data/model/ResultFrame.h

125 lines
3.7 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/ResultSetMetadata.h>
#include <aws/rds-data/model/Record.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The result set returned by a SQL statement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultFrame">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API ResultFrame
{
public:
ResultFrame();
ResultFrame(Aws::Utils::Json::JsonView jsonValue);
ResultFrame& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The records in the result set.</p>
*/
inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
/**
* <p>The records in the result set.</p>
*/
inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
/**
* <p>The records in the result set.</p>
*/
inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
/**
* <p>The records in the result set.</p>
*/
inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
/**
* <p>The records in the result set.</p>
*/
inline ResultFrame& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
/**
* <p>The records in the result set.</p>
*/
inline ResultFrame& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
/**
* <p>The records in the result set.</p>
*/
inline ResultFrame& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
/**
* <p>The records in the result set.</p>
*/
inline ResultFrame& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline const ResultSetMetadata& GetResultSetMetadata() const{ return m_resultSetMetadata; }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline bool ResultSetMetadataHasBeenSet() const { return m_resultSetMetadataHasBeenSet; }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline void SetResultSetMetadata(const ResultSetMetadata& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = value; }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline void SetResultSetMetadata(ResultSetMetadata&& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = std::move(value); }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline ResultFrame& WithResultSetMetadata(const ResultSetMetadata& value) { SetResultSetMetadata(value); return *this;}
/**
* <p>The result-set metadata in the result set.</p>
*/
inline ResultFrame& WithResultSetMetadata(ResultSetMetadata&& value) { SetResultSetMetadata(std::move(value)); return *this;}
private:
Aws::Vector<Record> m_records;
bool m_recordsHasBeenSet;
ResultSetMetadata m_resultSetMetadata;
bool m_resultSetMetadataHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws