/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the redshift-data-2019-12-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.RedshiftDataAPIService.Model { /// /// This is the response object from the GetStatementResult operation. /// public partial class GetStatementResultResponse : AmazonWebServiceResponse { private List _columnMetadata = new List(); private string _nextToken; private List> _records = new List>(); private long? _totalNumRows; /// /// Gets and sets the property ColumnMetadata. /// /// The properties (metadata) of a column. /// /// public List ColumnMetadata { get { return this._columnMetadata; } set { this._columnMetadata = value; } } // Check to see if ColumnMetadata property is set internal bool IsSetColumnMetadata() { return this._columnMetadata != null && this._columnMetadata.Count > 0; } /// /// Gets and sets the property NextToken. /// /// A value that indicates the starting point for the next set of response records in /// a subsequent request. If a value is returned in a response, you can retrieve the next /// set of records by providing this returned NextToken value in the next NextToken parameter /// and retrying the command. If the NextToken field is empty, all response records have /// been retrieved for the request. /// /// public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property Records. /// /// The results of the SQL statement. /// /// [AWSProperty(Required=true)] public List> Records { get { return this._records; } set { this._records = value; } } // Check to see if Records property is set internal bool IsSetRecords() { return this._records != null && this._records.Count > 0; } /// /// Gets and sets the property TotalNumRows. /// /// The total number of rows in the result set returned from a query. You can use this /// number to estimate the number of calls to the GetStatementResult operation /// needed to page through the results. /// /// public long TotalNumRows { get { return this._totalNumRows.GetValueOrDefault(); } set { this._totalNumRows = value; } } // Check to see if TotalNumRows property is set internal bool IsSetTotalNumRows() { return this._totalNumRows.HasValue; } } }