AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GenerateQueryRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrailRequest.h>
8#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudTrail {
16namespace Model {
17
21 public:
22 AWS_CLOUDTRAIL_API GenerateQueryRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GenerateQuery"; }
29
30 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::Vector<Aws::String>& GetEventDataStores() const { return m_eventDataStores; }
40 inline bool EventDataStoresHasBeenSet() const { return m_eventDataStoresHasBeenSet; }
41 template <typename EventDataStoresT = Aws::Vector<Aws::String>>
42 void SetEventDataStores(EventDataStoresT&& value) {
43 m_eventDataStoresHasBeenSet = true;
44 m_eventDataStores = std::forward<EventDataStoresT>(value);
45 }
46 template <typename EventDataStoresT = Aws::Vector<Aws::String>>
47 GenerateQueryRequest& WithEventDataStores(EventDataStoresT&& value) {
48 SetEventDataStores(std::forward<EventDataStoresT>(value));
49 return *this;
50 }
51 template <typename EventDataStoresT = Aws::String>
52 GenerateQueryRequest& AddEventDataStores(EventDataStoresT&& value) {
53 m_eventDataStoresHasBeenSet = true;
54 m_eventDataStores.emplace_back(std::forward<EventDataStoresT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::String& GetPrompt() const { return m_prompt; }
67 inline bool PromptHasBeenSet() const { return m_promptHasBeenSet; }
68 template <typename PromptT = Aws::String>
69 void SetPrompt(PromptT&& value) {
70 m_promptHasBeenSet = true;
71 m_prompt = std::forward<PromptT>(value);
72 }
73 template <typename PromptT = Aws::String>
74 GenerateQueryRequest& WithPrompt(PromptT&& value) {
75 SetPrompt(std::forward<PromptT>(value));
76 return *this;
77 }
79 private:
80 Aws::Vector<Aws::String> m_eventDataStores;
81
82 Aws::String m_prompt;
83 bool m_eventDataStoresHasBeenSet = false;
84 bool m_promptHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace CloudTrail
89} // namespace Aws
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GenerateQueryRequest & AddEventDataStores(EventDataStoresT &&value)
void SetEventDataStores(EventDataStoresT &&value)
AWS_CLOUDTRAIL_API GenerateQueryRequest()=default
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
GenerateQueryRequest & WithEventDataStores(EventDataStoresT &&value)
const Aws::Vector< Aws::String > & GetEventDataStores() const
virtual const char * GetServiceRequestName() const override
GenerateQueryRequest & WithPrompt(PromptT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector