AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateChatRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgentRequest.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/UserType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace DevOpsAgent {
19namespace Model {
20
27 public:
28 AWS_DEVOPSAGENT_API CreateChatRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateChat"; }
35
36 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
37
38 AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
43 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
44 template <typename AgentSpaceIdT = Aws::String>
45 void SetAgentSpaceId(AgentSpaceIdT&& value) {
46 m_agentSpaceIdHasBeenSet = true;
47 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
48 }
49 template <typename AgentSpaceIdT = Aws::String>
50 CreateChatRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
51 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetUserId() const { return m_userId; }
61 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
62 template <typename UserIdT = Aws::String>
63 void SetUserId(UserIdT&& value) {
64 m_userIdHasBeenSet = true;
65 m_userId = std::forward<UserIdT>(value);
66 }
67 template <typename UserIdT = Aws::String>
68 CreateChatRequest& WithUserId(UserIdT&& value) {
69 SetUserId(std::forward<UserIdT>(value));
70 return *this;
71 }
73
75
78 inline UserType GetUserType() const { return m_userType; }
79 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
80 inline void SetUserType(UserType value) {
81 m_userTypeHasBeenSet = true;
82 m_userType = value;
83 }
85 SetUserType(value);
86 return *this;
87 }
89 private:
90 Aws::String m_agentSpaceId;
91
92 Aws::String m_userId;
93
94 UserType m_userType{UserType::NOT_SET};
95 bool m_agentSpaceIdHasBeenSet = false;
96 bool m_userIdHasBeenSet = false;
97 bool m_userTypeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace DevOpsAgent
102} // namespace Aws
AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateChatRequest & WithUserId(UserIdT &&value)
CreateChatRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
CreateChatRequest & WithUserType(UserType value)
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAgentSpaceId() const
AWS_DEVOPSAGENT_API CreateChatRequest()=default
void SetAgentSpaceId(AgentSpaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String