AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
SendMessageContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
9#include <aws/devops-agent/model/ApprovalAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
29 public:
30 AWS_DEVOPSAGENT_API SendMessageContext() = default;
31 AWS_DEVOPSAGENT_API SendMessageContext(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCurrentPage() const { return m_currentPage; }
40 inline bool CurrentPageHasBeenSet() const { return m_currentPageHasBeenSet; }
41 template <typename CurrentPageT = Aws::String>
42 void SetCurrentPage(CurrentPageT&& value) {
43 m_currentPageHasBeenSet = true;
44 m_currentPage = std::forward<CurrentPageT>(value);
45 }
46 template <typename CurrentPageT = Aws::String>
47 SendMessageContext& WithCurrentPage(CurrentPageT&& value) {
48 SetCurrentPage(std::forward<CurrentPageT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLastMessage() const { return m_lastMessage; }
58 inline bool LastMessageHasBeenSet() const { return m_lastMessageHasBeenSet; }
59 template <typename LastMessageT = Aws::String>
60 void SetLastMessage(LastMessageT&& value) {
61 m_lastMessageHasBeenSet = true;
62 m_lastMessage = std::forward<LastMessageT>(value);
63 }
64 template <typename LastMessageT = Aws::String>
65 SendMessageContext& WithLastMessage(LastMessageT&& value) {
66 SetLastMessage(std::forward<LastMessageT>(value));
67 return *this;
68 }
70
72
80 inline const Aws::String& GetUserActionResponse() const { return m_userActionResponse; }
81 inline bool UserActionResponseHasBeenSet() const { return m_userActionResponseHasBeenSet; }
82 template <typename UserActionResponseT = Aws::String>
83 void SetUserActionResponse(UserActionResponseT&& value) {
84 m_userActionResponseHasBeenSet = true;
85 m_userActionResponse = std::forward<UserActionResponseT>(value);
86 }
87 template <typename UserActionResponseT = Aws::String>
88 SendMessageContext& WithUserActionResponse(UserActionResponseT&& value) {
89 SetUserActionResponse(std::forward<UserActionResponseT>(value));
90 return *this;
91 }
93
95
104 inline const ApprovalAction& GetApprovalAction() const { return m_approvalAction; }
105 inline bool ApprovalActionHasBeenSet() const { return m_approvalActionHasBeenSet; }
106 template <typename ApprovalActionT = ApprovalAction>
107 void SetApprovalAction(ApprovalActionT&& value) {
108 m_approvalActionHasBeenSet = true;
109 m_approvalAction = std::forward<ApprovalActionT>(value);
110 }
111 template <typename ApprovalActionT = ApprovalAction>
112 SendMessageContext& WithApprovalAction(ApprovalActionT&& value) {
113 SetApprovalAction(std::forward<ApprovalActionT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_currentPage;
119
120 Aws::String m_lastMessage;
121
122 Aws::String m_userActionResponse;
123
124 ApprovalAction m_approvalAction;
125 bool m_currentPageHasBeenSet = false;
126 bool m_lastMessageHasBeenSet = false;
127 bool m_userActionResponseHasBeenSet = false;
128 bool m_approvalActionHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace DevOpsAgent
133} // namespace Aws
const Aws::String & GetUserActionResponse() const
SendMessageContext & WithApprovalAction(ApprovalActionT &&value)
void SetApprovalAction(ApprovalActionT &&value)
AWS_DEVOPSAGENT_API SendMessageContext(Aws::Utils::Json::JsonView jsonValue)
SendMessageContext & WithLastMessage(LastMessageT &&value)
SendMessageContext & WithUserActionResponse(UserActionResponseT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSAGENT_API SendMessageContext()=default
const ApprovalAction & GetApprovalAction() const
SendMessageContext & WithCurrentPage(CurrentPageT &&value)
void SetUserActionResponse(UserActionResponseT &&value)
AWS_DEVOPSAGENT_API SendMessageContext & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue