/*
 * 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 rds-data-2018-08-01.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.RDSDataService.Model
{
    /// 
    /// Options that control how the result set is returned.
    /// 
    public partial class ResultSetOptions
    {
        private DecimalReturnType _decimalReturnType;
        private LongReturnType _longReturnType;
        /// 
        /// Gets and sets the property DecimalReturnType. 
        /// 
        /// A value that indicates how a field of DECIMAL type is represented in
        /// the response. The value of STRING, the default, specifies that it is
        /// converted to a String value. The value of DOUBLE_OR_LONG specifies that
        /// it is converted to a Long value if its scale is 0, or to a Double value otherwise.
        /// 
        ///   
        /// 
        /// Conversion to Double or Long can result in roundoff errors due to precision loss.
        /// We recommend converting to String, especially when working with currency values.
        /// 
        ///  
        /// 
        public DecimalReturnType DecimalReturnType
        {
            get { return this._decimalReturnType; }
            set { this._decimalReturnType = value; }
        }
        // Check to see if DecimalReturnType property is set
        internal bool IsSetDecimalReturnType()
        {
            return this._decimalReturnType != null;
        }
        /// 
        /// Gets and sets the property LongReturnType. 
        /// 
        /// A value that indicates how a field of LONG type is represented. Allowed
        /// values are LONG and STRING. The default is LONG.
        /// Specify STRING if the length or precision of numeric values might cause
        /// truncation or rounding errors. 
        /// 
        /// 
        public LongReturnType LongReturnType
        {
            get { return this._longReturnType; }
            set { this._longReturnType = value; }
        }
        // Check to see if LongReturnType property is set
        internal bool IsSetLongReturnType()
        {
            return this._longReturnType != null;
        }
    }
}