AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GenerateQueryRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudTrail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDTRAIL_API GenerateQueryRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GenerateQuery"; }
32
33 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::Vector<Aws::String>& GetEventDataStores() const { return m_eventDataStores; }
44 inline bool EventDataStoresHasBeenSet() const { return m_eventDataStoresHasBeenSet; }
45 template<typename EventDataStoresT = Aws::Vector<Aws::String>>
46 void SetEventDataStores(EventDataStoresT&& value) { m_eventDataStoresHasBeenSet = true; m_eventDataStores = std::forward<EventDataStoresT>(value); }
47 template<typename EventDataStoresT = Aws::Vector<Aws::String>>
48 GenerateQueryRequest& WithEventDataStores(EventDataStoresT&& value) { SetEventDataStores(std::forward<EventDataStoresT>(value)); return *this;}
49 template<typename EventDataStoresT = Aws::String>
50 GenerateQueryRequest& AddEventDataStores(EventDataStoresT&& value) { m_eventDataStoresHasBeenSet = true; m_eventDataStores.emplace_back(std::forward<EventDataStoresT>(value)); return *this; }
52
54
60 inline const Aws::String& GetPrompt() const { return m_prompt; }
61 inline bool PromptHasBeenSet() const { return m_promptHasBeenSet; }
62 template<typename PromptT = Aws::String>
63 void SetPrompt(PromptT&& value) { m_promptHasBeenSet = true; m_prompt = std::forward<PromptT>(value); }
64 template<typename PromptT = Aws::String>
65 GenerateQueryRequest& WithPrompt(PromptT&& value) { SetPrompt(std::forward<PromptT>(value)); return *this;}
67 private:
68
69 Aws::Vector<Aws::String> m_eventDataStores;
70 bool m_eventDataStoresHasBeenSet = false;
71
72 Aws::String m_prompt;
73 bool m_promptHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudTrail
78} // 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