/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SimpleDB { namespace Model { /** */ class SelectRequest : public SimpleDBRequest { public: AWS_SIMPLEDB_API SelectRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "Select"; } AWS_SIMPLEDB_API Aws::String SerializePayload() const override; protected: AWS_SIMPLEDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** * The expression used to query the domain. */ inline const Aws::String& GetSelectExpression() const{ return m_selectExpression; } /** * The expression used to query the domain. */ inline bool SelectExpressionHasBeenSet() const { return m_selectExpressionHasBeenSet; } /** * The expression used to query the domain. */ inline void SetSelectExpression(const Aws::String& value) { m_selectExpressionHasBeenSet = true; m_selectExpression = value; } /** * The expression used to query the domain. */ inline void SetSelectExpression(Aws::String&& value) { m_selectExpressionHasBeenSet = true; m_selectExpression = std::move(value); } /** * The expression used to query the domain. */ inline void SetSelectExpression(const char* value) { m_selectExpressionHasBeenSet = true; m_selectExpression.assign(value); } /** * The expression used to query the domain. */ inline SelectRequest& WithSelectExpression(const Aws::String& value) { SetSelectExpression(value); return *this;} /** * The expression used to query the domain. */ inline SelectRequest& WithSelectExpression(Aws::String&& value) { SetSelectExpression(std::move(value)); return *this;} /** * The expression used to query the domain. */ inline SelectRequest& WithSelectExpression(const char* value) { SetSelectExpression(value); return *this;} /** * A string informing Amazon SimpleDB where to start the next list of * ItemNames. */ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** * A string informing Amazon SimpleDB where to start the next list of * ItemNames. */ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** * A string informing Amazon SimpleDB where to start the next list of * ItemNames. */ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** * A string informing Amazon SimpleDB where to start the next list of * ItemNames. */ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** * A string informing Amazon SimpleDB where to start the next list of * ItemNames. */ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** * A string informing Amazon SimpleDB where to start the next list of * ItemNames. */ inline SelectRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** * A string informing Amazon SimpleDB where to start the next list of * ItemNames. */ inline SelectRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** * A string informing Amazon SimpleDB where to start the next list of * ItemNames. */ inline SelectRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** * Determines whether or not strong consistency should be enforced when data is * read from SimpleDB. If true, any data previously written to * SimpleDB will be returned. Otherwise, results will be consistent eventually, and * the client may not see data that was written immediately before your read. */ inline bool GetConsistentRead() const{ return m_consistentRead; } /** * Determines whether or not strong consistency should be enforced when data is * read from SimpleDB. If true, any data previously written to * SimpleDB will be returned. Otherwise, results will be consistent eventually, and * the client may not see data that was written immediately before your read. */ inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; } /** * Determines whether or not strong consistency should be enforced when data is * read from SimpleDB. If true, any data previously written to * SimpleDB will be returned. Otherwise, results will be consistent eventually, and * the client may not see data that was written immediately before your read. */ inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; } /** * Determines whether or not strong consistency should be enforced when data is * read from SimpleDB. If true, any data previously written to * SimpleDB will be returned. Otherwise, results will be consistent eventually, and * the client may not see data that was written immediately before your read. */ inline SelectRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;} private: Aws::String m_selectExpression; bool m_selectExpressionHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; bool m_consistentRead; bool m_consistentReadHasBeenSet = false; }; } // namespace Model } // namespace SimpleDB } // namespace Aws