AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
ApprovalAction.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/ApprovalActionType.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
38 public:
39 AWS_DEVOPSAGENT_API ApprovalAction() = default;
40 AWS_DEVOPSAGENT_API ApprovalAction(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DEVOPSAGENT_API ApprovalAction& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline const Aws::String& GetToolUseId() const { return m_toolUseId; }
50 inline bool ToolUseIdHasBeenSet() const { return m_toolUseIdHasBeenSet; }
51 template <typename ToolUseIdT = Aws::String>
52 void SetToolUseId(ToolUseIdT&& value) {
53 m_toolUseIdHasBeenSet = true;
54 m_toolUseId = std::forward<ToolUseIdT>(value);
55 }
56 template <typename ToolUseIdT = Aws::String>
57 ApprovalAction& WithToolUseId(ToolUseIdT&& value) {
58 SetToolUseId(std::forward<ToolUseIdT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::String& GetInterruptId() const { return m_interruptId; }
70 inline bool InterruptIdHasBeenSet() const { return m_interruptIdHasBeenSet; }
71 template <typename InterruptIdT = Aws::String>
72 void SetInterruptId(InterruptIdT&& value) {
73 m_interruptIdHasBeenSet = true;
74 m_interruptId = std::forward<InterruptIdT>(value);
75 }
76 template <typename InterruptIdT = Aws::String>
77 ApprovalAction& WithInterruptId(InterruptIdT&& value) {
78 SetInterruptId(std::forward<InterruptIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetApprovalId() const { return m_approvalId; }
88 inline bool ApprovalIdHasBeenSet() const { return m_approvalIdHasBeenSet; }
89 template <typename ApprovalIdT = Aws::String>
90 void SetApprovalId(ApprovalIdT&& value) {
91 m_approvalIdHasBeenSet = true;
92 m_approvalId = std::forward<ApprovalIdT>(value);
93 }
94 template <typename ApprovalIdT = Aws::String>
95 ApprovalAction& WithApprovalId(ApprovalIdT&& value) {
96 SetApprovalId(std::forward<ApprovalIdT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::String& GetButtonText() const { return m_buttonText; }
108 inline bool ButtonTextHasBeenSet() const { return m_buttonTextHasBeenSet; }
109 template <typename ButtonTextT = Aws::String>
110 void SetButtonText(ButtonTextT&& value) {
111 m_buttonTextHasBeenSet = true;
112 m_buttonText = std::forward<ButtonTextT>(value);
113 }
114 template <typename ButtonTextT = Aws::String>
115 ApprovalAction& WithButtonText(ButtonTextT&& value) {
116 SetButtonText(std::forward<ButtonTextT>(value));
117 return *this;
118 }
120
122
125 inline ApprovalActionType GetAction() const { return m_action; }
126 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
127 inline void SetAction(ApprovalActionType value) {
128 m_actionHasBeenSet = true;
129 m_action = value;
130 }
132 SetAction(value);
133 return *this;
134 }
136 private:
137 Aws::String m_toolUseId;
138
139 Aws::String m_interruptId;
140
141 Aws::String m_approvalId;
142
143 Aws::String m_buttonText;
144
146 bool m_toolUseIdHasBeenSet = false;
147 bool m_interruptIdHasBeenSet = false;
148 bool m_approvalIdHasBeenSet = false;
149 bool m_buttonTextHasBeenSet = false;
150 bool m_actionHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace DevOpsAgent
155} // namespace Aws
const Aws::String & GetToolUseId() const
ApprovalAction & WithApprovalId(ApprovalIdT &&value)
AWS_DEVOPSAGENT_API ApprovalAction()=default
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
ApprovalAction & WithAction(ApprovalActionType value)
void SetAction(ApprovalActionType value)
const Aws::String & GetInterruptId() const
void SetToolUseId(ToolUseIdT &&value)
AWS_DEVOPSAGENT_API ApprovalAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInterruptId(InterruptIdT &&value)
const Aws::String & GetButtonText() const
ApprovalAction & WithToolUseId(ToolUseIdT &&value)
ApprovalAction & WithInterruptId(InterruptIdT &&value)
void SetApprovalId(ApprovalIdT &&value)
ApprovalActionType GetAction() const
const Aws::String & GetApprovalId() const
AWS_DEVOPSAGENT_API ApprovalAction(Aws::Utils::Json::JsonView jsonValue)
void SetButtonText(ButtonTextT &&value)
ApprovalAction & WithButtonText(ButtonTextT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue