/// <summary>
        /// XML Representation for this object
        /// </summary>
        /// <returns>XML String</returns>

        public String ToXML()
        {
            StringBuilder xml = new StringBuilder();

            xml.Append("<QueryWithAttributesResponse xmlns=\"http://sdb.amazonaws.com/doc/2007-11-07/\">");
            if (IsSetQueryWithAttributesResult())
            {
                QueryWithAttributesResult queryWithAttributesResult = this.QueryWithAttributesResult;
                xml.Append("<QueryWithAttributesResult>");
                xml.Append(queryWithAttributesResult.ToXMLFragment());
                xml.Append("</QueryWithAttributesResult>");
            }
            if (IsSetResponseMetadata())
            {
                ResponseMetadata responseMetadata = this.ResponseMetadata;
                xml.Append("<ResponseMetadata>");
                xml.Append(responseMetadata.ToXMLFragment());
                xml.Append("</ResponseMetadata>");
            }
            xml.Append("</QueryWithAttributesResponse>");
            return(xml.ToString());
        }
 /// <summary>
 /// Sets the QueryWithAttributesResult property
 /// </summary>
 /// <param name="queryWithAttributesResult">QueryWithAttributesResult property</param>
 /// <returns>this instance</returns>
 public QueryWithAttributesResponse WithQueryWithAttributesResult(QueryWithAttributesResult queryWithAttributesResult)
 {
     this.queryWithAttributesResultField = queryWithAttributesResult;
     return this;
 }
 /// <summary>
 /// Sets the QueryWithAttributesResult property
 /// </summary>
 /// <param name="queryWithAttributesResult">QueryWithAttributesResult property</param>
 /// <returns>this instance</returns>
 public QueryWithAttributesResponse WithQueryWithAttributesResult(QueryWithAttributesResult queryWithAttributesResult)
 {
     this.queryWithAttributesResultField = queryWithAttributesResult;
     return(this);
 }