AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
PrepareQueryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/timestream-query/TimestreamQueryRequest.h>
9#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace TimestreamQuery {
15namespace Model {
16
20 public:
21 AWS_TIMESTREAMQUERY_API PrepareQueryRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "PrepareQuery"; }
28
29 AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override;
30
31 AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
39 inline const Aws::String& GetQueryString() const { return m_queryString; }
40 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
41 template <typename QueryStringT = Aws::String>
43 m_queryStringHasBeenSet = true;
44 m_queryString = std::forward<QueryStringT>(value);
45 }
46 template <typename QueryStringT = Aws::String>
48 SetQueryString(std::forward<QueryStringT>(value));
49 return *this;
50 }
52
54
59 inline bool GetValidateOnly() const { return m_validateOnly; }
60 inline bool ValidateOnlyHasBeenSet() const { return m_validateOnlyHasBeenSet; }
61 inline void SetValidateOnly(bool value) {
62 m_validateOnlyHasBeenSet = true;
63 m_validateOnly = value;
64 }
66 SetValidateOnly(value);
67 return *this;
68 }
70 private:
71 Aws::String m_queryString;
72
73 bool m_validateOnly{false};
74 bool m_queryStringHasBeenSet = false;
75 bool m_validateOnlyHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace TimestreamQuery
80} // namespace Aws
virtual const char * GetServiceRequestName() const override
PrepareQueryRequest & WithQueryString(QueryStringT &&value)
PrepareQueryRequest & WithValidateOnly(bool value)
AWS_TIMESTREAMQUERY_API PrepareQueryRequest()=default
AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override
AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String