AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
UpdateApprovalActionRequest.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/ApprovalActionType.h>
11#include <aws/devops-agent/model/ApprovalPattern.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DevOpsAgent {
17namespace Model {
18
30 public:
31 AWS_DEVOPSAGENT_API UpdateApprovalActionRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateApprovalAction"; }
38
39 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
40
42
46 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
47 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
48 template <typename AgentSpaceIdT = Aws::String>
49 void SetAgentSpaceId(AgentSpaceIdT&& value) {
50 m_agentSpaceIdHasBeenSet = true;
51 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
52 }
53 template <typename AgentSpaceIdT = Aws::String>
55 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetApprovalId() const { return m_approvalId; }
66 inline bool ApprovalIdHasBeenSet() const { return m_approvalIdHasBeenSet; }
67 template <typename ApprovalIdT = Aws::String>
68 void SetApprovalId(ApprovalIdT&& value) {
69 m_approvalIdHasBeenSet = true;
70 m_approvalId = std::forward<ApprovalIdT>(value);
71 }
72 template <typename ApprovalIdT = Aws::String>
74 SetApprovalId(std::forward<ApprovalIdT>(value));
75 return *this;
76 }
78
80
83 inline ApprovalActionType GetAction() const { return m_action; }
84 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
85 inline void SetAction(ApprovalActionType value) {
86 m_actionHasBeenSet = true;
87 m_action = value;
88 }
90 SetAction(value);
91 return *this;
92 }
94
96
103 inline const ApprovalPattern& GetFinalPattern() const { return m_finalPattern; }
104 inline bool FinalPatternHasBeenSet() const { return m_finalPatternHasBeenSet; }
105 template <typename FinalPatternT = ApprovalPattern>
106 void SetFinalPattern(FinalPatternT&& value) {
107 m_finalPatternHasBeenSet = true;
108 m_finalPattern = std::forward<FinalPatternT>(value);
109 }
110 template <typename FinalPatternT = ApprovalPattern>
112 SetFinalPattern(std::forward<FinalPatternT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetReason() const { return m_reason; }
123 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
124 template <typename ReasonT = Aws::String>
125 void SetReason(ReasonT&& value) {
126 m_reasonHasBeenSet = true;
127 m_reason = std::forward<ReasonT>(value);
128 }
129 template <typename ReasonT = Aws::String>
131 SetReason(std::forward<ReasonT>(value));
132 return *this;
133 }
135
137
145 inline int GetTtlSeconds() const { return m_ttlSeconds; }
146 inline bool TtlSecondsHasBeenSet() const { return m_ttlSecondsHasBeenSet; }
147 inline void SetTtlSeconds(int value) {
148 m_ttlSecondsHasBeenSet = true;
149 m_ttlSeconds = value;
150 }
152 SetTtlSeconds(value);
153 return *this;
154 }
156
158
166 inline bool GetSingleUse() const { return m_singleUse; }
167 inline bool SingleUseHasBeenSet() const { return m_singleUseHasBeenSet; }
168 inline void SetSingleUse(bool value) {
169 m_singleUseHasBeenSet = true;
170 m_singleUse = value;
171 }
173 SetSingleUse(value);
174 return *this;
175 }
177 private:
178 Aws::String m_agentSpaceId;
179
180 Aws::String m_approvalId;
181
183
184 ApprovalPattern m_finalPattern;
185
186 Aws::String m_reason;
187
188 int m_ttlSeconds{0};
189
190 bool m_singleUse{false};
191 bool m_agentSpaceIdHasBeenSet = false;
192 bool m_approvalIdHasBeenSet = false;
193 bool m_actionHasBeenSet = false;
194 bool m_finalPatternHasBeenSet = false;
195 bool m_reasonHasBeenSet = false;
196 bool m_ttlSecondsHasBeenSet = false;
197 bool m_singleUseHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace DevOpsAgent
202} // namespace Aws
UpdateApprovalActionRequest & WithFinalPattern(FinalPatternT &&value)
AWS_DEVOPSAGENT_API UpdateApprovalActionRequest()=default
UpdateApprovalActionRequest & WithReason(ReasonT &&value)
UpdateApprovalActionRequest & WithApprovalId(ApprovalIdT &&value)
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
UpdateApprovalActionRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdateApprovalActionRequest & WithAction(ApprovalActionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String