AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
QueryComputeRequest.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/timestream-query/model/ComputeMode.h>
9#include <aws/timestream-query/model/ProvisionedCapacityRequest.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TimestreamQuery {
21namespace Model {
22
30 public:
31 AWS_TIMESTREAMQUERY_API QueryComputeRequest() = default;
34 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline ComputeMode GetComputeMode() const { return m_computeMode; }
43 inline bool ComputeModeHasBeenSet() const { return m_computeModeHasBeenSet; }
44 inline void SetComputeMode(ComputeMode value) {
45 m_computeModeHasBeenSet = true;
46 m_computeMode = value;
47 }
49 SetComputeMode(value);
50 return *this;
51 }
53
55
59 inline const ProvisionedCapacityRequest& GetProvisionedCapacity() const { return m_provisionedCapacity; }
60 inline bool ProvisionedCapacityHasBeenSet() const { return m_provisionedCapacityHasBeenSet; }
61 template <typename ProvisionedCapacityT = ProvisionedCapacityRequest>
63 m_provisionedCapacityHasBeenSet = true;
64 m_provisionedCapacity = std::forward<ProvisionedCapacityT>(value);
65 }
66 template <typename ProvisionedCapacityT = ProvisionedCapacityRequest>
68 SetProvisionedCapacity(std::forward<ProvisionedCapacityT>(value));
69 return *this;
70 }
72 private:
73 ComputeMode m_computeMode{ComputeMode::NOT_SET};
74
75 ProvisionedCapacityRequest m_provisionedCapacity;
76 bool m_computeModeHasBeenSet = false;
77 bool m_provisionedCapacityHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace TimestreamQuery
82} // namespace Aws
QueryComputeRequest & WithProvisionedCapacity(ProvisionedCapacityT &&value)
AWS_TIMESTREAMQUERY_API QueryComputeRequest(Aws::Utils::Json::JsonView jsonValue)
const ProvisionedCapacityRequest & GetProvisionedCapacity() const
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMQUERY_API QueryComputeRequest()=default
void SetProvisionedCapacity(ProvisionedCapacityT &&value)
AWS_TIMESTREAMQUERY_API QueryComputeRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryComputeRequest & WithComputeMode(ComputeMode value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue