AWS SDK for C++

AWS SDK for C++ Version 1.11.815

Loading...
Searching...
No Matches
ListModelsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/AIPromptType.h>
11#include <aws/qconnect/model/ModelLifecycle.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace QConnect {
20namespace Model {
21
25 public:
26 AWS_QCONNECT_API ListModelsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListModels"; }
33
34 AWS_QCONNECT_API Aws::String SerializePayload() const override;
35
36 AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
44 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
45 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
46 template <typename AssistantIdT = Aws::String>
48 m_assistantIdHasBeenSet = true;
49 m_assistantId = std::forward<AssistantIdT>(value);
50 }
51 template <typename AssistantIdT = Aws::String>
53 SetAssistantId(std::forward<AssistantIdT>(value));
54 return *this;
55 }
57
59
63 inline AIPromptType GetAiPromptType() const { return m_aiPromptType; }
64 inline bool AiPromptTypeHasBeenSet() const { return m_aiPromptTypeHasBeenSet; }
65 inline void SetAiPromptType(AIPromptType value) {
66 m_aiPromptTypeHasBeenSet = true;
67 m_aiPromptType = value;
68 }
70 SetAiPromptType(value);
71 return *this;
72 }
74
76
80 inline ModelLifecycle GetModelLifecycle() const { return m_modelLifecycle; }
81 inline bool ModelLifecycleHasBeenSet() const { return m_modelLifecycleHasBeenSet; }
82 inline void SetModelLifecycle(ModelLifecycle value) {
83 m_modelLifecycleHasBeenSet = true;
84 m_modelLifecycle = value;
85 }
87 SetModelLifecycle(value);
88 return *this;
89 }
91
93
97 inline const Aws::String& GetNextToken() const { return m_nextToken; }
98 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
99 template <typename NextTokenT = Aws::String>
100 void SetNextToken(NextTokenT&& value) {
101 m_nextTokenHasBeenSet = true;
102 m_nextToken = std::forward<NextTokenT>(value);
103 }
104 template <typename NextTokenT = Aws::String>
106 SetNextToken(std::forward<NextTokenT>(value));
107 return *this;
108 }
110
112
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) {
118 m_maxResultsHasBeenSet = true;
119 m_maxResults = value;
120 }
122 SetMaxResults(value);
123 return *this;
124 }
126 private:
127 Aws::String m_assistantId;
128
129 AIPromptType m_aiPromptType{AIPromptType::NOT_SET};
130
131 ModelLifecycle m_modelLifecycle{ModelLifecycle::NOT_SET};
132
133 Aws::String m_nextToken;
134
135 int m_maxResults{0};
136 bool m_assistantIdHasBeenSet = false;
137 bool m_aiPromptTypeHasBeenSet = false;
138 bool m_modelLifecycleHasBeenSet = false;
139 bool m_nextTokenHasBeenSet = false;
140 bool m_maxResultsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace QConnect
145} // namespace Aws
AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_QCONNECT_API ListModelsRequest()=default
virtual const char * GetServiceRequestName() const override
ListModelsRequest & WithNextToken(NextTokenT &&value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
void SetModelLifecycle(ModelLifecycle value)
ListModelsRequest & WithAiPromptType(AIPromptType value)
ListModelsRequest & WithModelLifecycle(ModelLifecycle value)
void SetAssistantId(AssistantIdT &&value)
const Aws::String & GetAssistantId() const
ListModelsRequest & WithMaxResults(int value)
ListModelsRequest & WithAssistantId(AssistantIdT &&value)
const Aws::String & GetNextToken() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String