/******************************************************************************* 
 *  Copyright 2008 Amazon Technologies, Inc.
 *  Licensed under the Apache License, Version 2.0 (the "License"); 
 *  
 *  You may not use this file except in compliance with the License. 
 *  You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
 *  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.
 * ***************************************************************************** 
 *    __  _    _  ___ 
 *   (  )( \/\/ )/ __)
 *   /__\ \    / \__ \
 *  (_)(_) \/\/  (___/
 * 
 *  Amazon Simple DB CSharp Library
 *  API Version: 2007-11-07
 *  Generated: Sat Dec 20 11:26:11 PST 2008 
 * 
 */

using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using System.Text;


namespace Amazon.SimpleDB.Model
{
    [XmlTypeAttribute(Namespace = "http://sdb.amazonaws.com/doc/2007-11-07/")]
    [XmlRootAttribute(Namespace = "http://sdb.amazonaws.com/doc/2007-11-07/", IsNullable = false)]
    public class QueryRequest
    {
    
        private String domainNameField;

        private String queryExpressionField;

        private Decimal? maxNumberOfItemsField;

        private String nextTokenField;


        /// <summary>
        /// Gets and sets the DomainName property.
        /// </summary>
        [XmlElementAttribute(ElementName = "DomainName")]
        public String DomainName
        {
            get { return this.domainNameField ; }
            set { this.domainNameField= value; }
        }



        /// <summary>
        /// Sets the DomainName property
        /// </summary>
        /// <param name="domainName">DomainName property</param>
        /// <returns>this instance</returns>
        public QueryRequest WithDomainName(String domainName)
        {
            this.domainNameField = domainName;
            return this;
        }



        /// <summary>
        /// Checks if DomainName property is set
        /// </summary>
        /// <returns>true if DomainName property is set</returns>
        public Boolean IsSetDomainName()
        {
            return  this.domainNameField != null;

        }


        /// <summary>
        /// Gets and sets the QueryExpression property.
        /// </summary>
        [XmlElementAttribute(ElementName = "QueryExpression")]
        public String QueryExpression
        {
            get { return this.queryExpressionField ; }
            set { this.queryExpressionField= value; }
        }



        /// <summary>
        /// Sets the QueryExpression property
        /// </summary>
        /// <param name="queryExpression">QueryExpression property</param>
        /// <returns>this instance</returns>
        public QueryRequest WithQueryExpression(String queryExpression)
        {
            this.queryExpressionField = queryExpression;
            return this;
        }



        /// <summary>
        /// Checks if QueryExpression property is set
        /// </summary>
        /// <returns>true if QueryExpression property is set</returns>
        public Boolean IsSetQueryExpression()
        {
            return  this.queryExpressionField != null;

        }


        /// <summary>
        /// Gets and sets the MaxNumberOfItems property.
        /// </summary>
        [XmlElementAttribute(ElementName = "MaxNumberOfItems")]
        public Decimal MaxNumberOfItems
        {
            get { return this.maxNumberOfItemsField.GetValueOrDefault() ; }
            set { this.maxNumberOfItemsField= value; }
        }



        /// <summary>
        /// Sets the MaxNumberOfItems property
        /// </summary>
        /// <param name="maxNumberOfItems">MaxNumberOfItems property</param>
        /// <returns>this instance</returns>
        public QueryRequest WithMaxNumberOfItems(Decimal maxNumberOfItems)
        {
            this.maxNumberOfItemsField = maxNumberOfItems;
            return this;
        }



        /// <summary>
        /// Checks if MaxNumberOfItems property is set
        /// </summary>
        /// <returns>true if MaxNumberOfItems property is set</returns>
        public Boolean IsSetMaxNumberOfItems()
        {
            return  this.maxNumberOfItemsField.HasValue;

        }


        /// <summary>
        /// Gets and sets the NextToken property.
        /// </summary>
        [XmlElementAttribute(ElementName = "NextToken")]
        public String NextToken
        {
            get { return this.nextTokenField ; }
            set { this.nextTokenField= value; }
        }



        /// <summary>
        /// Sets the NextToken property
        /// </summary>
        /// <param name="nextToken">NextToken property</param>
        /// <returns>this instance</returns>
        public QueryRequest WithNextToken(String nextToken)
        {
            this.nextTokenField = nextToken;
            return this;
        }



        /// <summary>
        /// Checks if NextToken property is set
        /// </summary>
        /// <returns>true if NextToken property is set</returns>
        public Boolean IsSetNextToken()
        {
            return  this.nextTokenField != null;

        }





    }

}