AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PauseDurableExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/LambdaRequest.h>
10#include <aws/lambda/Lambda_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Lambda {
16namespace Model {
17
21 public:
22 AWS_LAMBDA_API PauseDurableExecutionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PauseDurableExecution"; }
29
30 AWS_LAMBDA_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDurableExecutionArn() const { return m_durableExecutionArn; }
37 inline bool DurableExecutionArnHasBeenSet() const { return m_durableExecutionArnHasBeenSet; }
38 template <typename DurableExecutionArnT = Aws::String>
39 void SetDurableExecutionArn(DurableExecutionArnT&& value) {
40 m_durableExecutionArnHasBeenSet = true;
41 m_durableExecutionArn = std::forward<DurableExecutionArnT>(value);
42 }
43 template <typename DurableExecutionArnT = Aws::String>
45 SetDurableExecutionArn(std::forward<DurableExecutionArnT>(value));
46 return *this;
47 }
49
51
57 inline const Aws::String& GetClientToken() const { return m_clientToken; }
58 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
59 template <typename ClientTokenT = Aws::String>
60 void SetClientToken(ClientTokenT&& value) {
61 m_clientTokenHasBeenSet = true;
62 m_clientToken = std::forward<ClientTokenT>(value);
63 }
64 template <typename ClientTokenT = Aws::String>
66 SetClientToken(std::forward<ClientTokenT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetReason() const { return m_reason; }
77 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
78 template <typename ReasonT = Aws::String>
79 void SetReason(ReasonT&& value) {
80 m_reasonHasBeenSet = true;
81 m_reason = std::forward<ReasonT>(value);
82 }
83 template <typename ReasonT = Aws::String>
85 SetReason(std::forward<ReasonT>(value));
86 return *this;
87 }
89
91
97 inline bool GetExecutionTimeoutPaused() const { return m_executionTimeoutPaused; }
98 inline bool ExecutionTimeoutPausedHasBeenSet() const { return m_executionTimeoutPausedHasBeenSet; }
99 inline void SetExecutionTimeoutPaused(bool value) {
100 m_executionTimeoutPausedHasBeenSet = true;
101 m_executionTimeoutPaused = value;
102 }
105 return *this;
106 }
108 private:
109 Aws::String m_durableExecutionArn;
110
112
113 Aws::String m_reason;
114
115 bool m_executionTimeoutPaused{false};
116 bool m_durableExecutionArnHasBeenSet = false;
117 bool m_clientTokenHasBeenSet = true;
118 bool m_reasonHasBeenSet = false;
119 bool m_executionTimeoutPausedHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace Lambda
124} // namespace Aws
AWS_LAMBDA_API Aws::String SerializePayload() const override
AWS_LAMBDA_API PauseDurableExecutionRequest()=default
PauseDurableExecutionRequest & WithClientToken(ClientTokenT &&value)
PauseDurableExecutionRequest & WithDurableExecutionArn(DurableExecutionArnT &&value)
PauseDurableExecutionRequest & WithReason(ReasonT &&value)
virtual const char * GetServiceRequestName() const override
PauseDurableExecutionRequest & WithExecutionTimeoutPaused(bool value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String