AWS SDK for C++

AWS SDK for C++ Version 1.11.887

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
44 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
45 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
46 template <typename AgentSpaceIdT = Aws::String>
47 void SetAgentSpaceId(AgentSpaceIdT&& value) {
48 m_agentSpaceIdHasBeenSet = true;
49 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
50 }
51 template <typename AgentSpaceIdT = Aws::String>
52 CreateChatRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
53 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
54 return *this;
55 }
57
59
62 inline UserType GetUserType() const { return m_userType; }
63 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
64 inline void SetUserType(UserType value) {
65 m_userTypeHasBeenSet = true;
66 m_userType = value;
67 }
69 SetUserType(value);
70 return *this;
71 }
73 private:
74 Aws::String m_agentSpaceId;
75
76 UserType m_userType{UserType::NOT_SET};
77 bool m_agentSpaceIdHasBeenSet = false;
78 bool m_userTypeHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace DevOpsAgent
83} // namespace Aws
AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
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