AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CheckpointDurableExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lambda/LambdaRequest.h>
11#include <aws/lambda/Lambda_EXPORTS.h>
12#include <aws/lambda/model/OperationUpdate.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Lambda {
18namespace Model {
19
23 public:
24 AWS_LAMBDA_API CheckpointDurableExecutionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CheckpointDurableExecution"; }
31
32 AWS_LAMBDA_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetDurableExecutionArn() const { return m_durableExecutionArn; }
39 inline bool DurableExecutionArnHasBeenSet() const { return m_durableExecutionArnHasBeenSet; }
40 template <typename DurableExecutionArnT = Aws::String>
41 void SetDurableExecutionArn(DurableExecutionArnT&& value) {
42 m_durableExecutionArnHasBeenSet = true;
43 m_durableExecutionArn = std::forward<DurableExecutionArnT>(value);
44 }
45 template <typename DurableExecutionArnT = Aws::String>
47 SetDurableExecutionArn(std::forward<DurableExecutionArnT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetCheckpointToken() const { return m_checkpointToken; }
60 inline bool CheckpointTokenHasBeenSet() const { return m_checkpointTokenHasBeenSet; }
61 template <typename CheckpointTokenT = Aws::String>
62 void SetCheckpointToken(CheckpointTokenT&& value) {
63 m_checkpointTokenHasBeenSet = true;
64 m_checkpointToken = std::forward<CheckpointTokenT>(value);
65 }
66 template <typename CheckpointTokenT = Aws::String>
68 SetCheckpointToken(std::forward<CheckpointTokenT>(value));
69 return *this;
70 }
72
74
80 inline const Aws::Vector<OperationUpdate>& GetUpdates() const { return m_updates; }
81 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
82 template <typename UpdatesT = Aws::Vector<OperationUpdate>>
83 void SetUpdates(UpdatesT&& value) {
84 m_updatesHasBeenSet = true;
85 m_updates = std::forward<UpdatesT>(value);
86 }
87 template <typename UpdatesT = Aws::Vector<OperationUpdate>>
89 SetUpdates(std::forward<UpdatesT>(value));
90 return *this;
91 }
92 template <typename UpdatesT = OperationUpdate>
94 m_updatesHasBeenSet = true;
95 m_updates.emplace_back(std::forward<UpdatesT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::String& GetClientToken() const { return m_clientToken; }
107 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
108 template <typename ClientTokenT = Aws::String>
109 void SetClientToken(ClientTokenT&& value) {
110 m_clientTokenHasBeenSet = true;
111 m_clientToken = std::forward<ClientTokenT>(value);
112 }
113 template <typename ClientTokenT = Aws::String>
115 SetClientToken(std::forward<ClientTokenT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_durableExecutionArn;
121
122 Aws::String m_checkpointToken;
123
125
127 bool m_durableExecutionArnHasBeenSet = false;
128 bool m_checkpointTokenHasBeenSet = false;
129 bool m_updatesHasBeenSet = false;
130 bool m_clientTokenHasBeenSet = true;
131};
132
133} // namespace Model
134} // namespace Lambda
135} // namespace Aws
AWS_LAMBDA_API Aws::String SerializePayload() const override
CheckpointDurableExecutionRequest & AddUpdates(UpdatesT &&value)
CheckpointDurableExecutionRequest & WithClientToken(ClientTokenT &&value)
CheckpointDurableExecutionRequest & WithCheckpointToken(CheckpointTokenT &&value)
CheckpointDurableExecutionRequest & WithDurableExecutionArn(DurableExecutionArnT &&value)
CheckpointDurableExecutionRequest & WithUpdates(UpdatesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector