AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateStateMachineRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/states/SFNRequest.h>
9#include <aws/states/SFN_EXPORTS.h>
10#include <aws/states/model/EncryptionConfiguration.h>
11#include <aws/states/model/LoggingConfiguration.h>
12#include <aws/states/model/TracingConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SFN {
18namespace Model {
19
23 public:
24 AWS_SFN_API UpdateStateMachineRequest() = 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 "UpdateStateMachine"; }
31
32 AWS_SFN_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetStateMachineArn() const { return m_stateMachineArn; }
41 inline bool StateMachineArnHasBeenSet() const { return m_stateMachineArnHasBeenSet; }
42 template <typename StateMachineArnT = Aws::String>
43 void SetStateMachineArn(StateMachineArnT&& value) {
44 m_stateMachineArnHasBeenSet = true;
45 m_stateMachineArn = std::forward<StateMachineArnT>(value);
46 }
47 template <typename StateMachineArnT = Aws::String>
49 SetStateMachineArn(std::forward<StateMachineArnT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetDefinition() const { return m_definition; }
61 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
62 template <typename DefinitionT = Aws::String>
63 void SetDefinition(DefinitionT&& value) {
64 m_definitionHasBeenSet = true;
65 m_definition = std::forward<DefinitionT>(value);
66 }
67 template <typename DefinitionT = Aws::String>
69 SetDefinition(std::forward<DefinitionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
79 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
80 template <typename RoleArnT = Aws::String>
81 void SetRoleArn(RoleArnT&& value) {
82 m_roleArnHasBeenSet = true;
83 m_roleArn = std::forward<RoleArnT>(value);
84 }
85 template <typename RoleArnT = Aws::String>
87 SetRoleArn(std::forward<RoleArnT>(value));
88 return *this;
89 }
91
93
97 inline const LoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
98 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
99 template <typename LoggingConfigurationT = LoggingConfiguration>
100 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
101 m_loggingConfigurationHasBeenSet = true;
102 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
103 }
104 template <typename LoggingConfigurationT = LoggingConfiguration>
105 UpdateStateMachineRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
106 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
107 return *this;
108 }
110
112
115 inline const TracingConfiguration& GetTracingConfiguration() const { return m_tracingConfiguration; }
116 inline bool TracingConfigurationHasBeenSet() const { return m_tracingConfigurationHasBeenSet; }
117 template <typename TracingConfigurationT = TracingConfiguration>
118 void SetTracingConfiguration(TracingConfigurationT&& value) {
119 m_tracingConfigurationHasBeenSet = true;
120 m_tracingConfiguration = std::forward<TracingConfigurationT>(value);
121 }
122 template <typename TracingConfigurationT = TracingConfiguration>
123 UpdateStateMachineRequest& WithTracingConfiguration(TracingConfigurationT&& value) {
124 SetTracingConfiguration(std::forward<TracingConfigurationT>(value));
125 return *this;
126 }
128
130
135 inline bool GetPublish() const { return m_publish; }
136 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
137 inline void SetPublish(bool value) {
138 m_publishHasBeenSet = true;
139 m_publish = value;
140 }
142 SetPublish(value);
143 return *this;
144 }
146
148
153 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
154 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
155 template <typename VersionDescriptionT = Aws::String>
156 void SetVersionDescription(VersionDescriptionT&& value) {
157 m_versionDescriptionHasBeenSet = true;
158 m_versionDescription = std::forward<VersionDescriptionT>(value);
159 }
160 template <typename VersionDescriptionT = Aws::String>
161 UpdateStateMachineRequest& WithVersionDescription(VersionDescriptionT&& value) {
162 SetVersionDescription(std::forward<VersionDescriptionT>(value));
163 return *this;
164 }
166
168
171 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
172 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
173 template <typename EncryptionConfigurationT = EncryptionConfiguration>
174 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
175 m_encryptionConfigurationHasBeenSet = true;
176 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
177 }
178 template <typename EncryptionConfigurationT = EncryptionConfiguration>
179 UpdateStateMachineRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
180 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_stateMachineArn;
186
187 Aws::String m_definition;
188
189 Aws::String m_roleArn;
190
191 LoggingConfiguration m_loggingConfiguration;
192
193 TracingConfiguration m_tracingConfiguration;
194
195 bool m_publish{false};
196
197 Aws::String m_versionDescription;
198
199 EncryptionConfiguration m_encryptionConfiguration;
200 bool m_stateMachineArnHasBeenSet = false;
201 bool m_definitionHasBeenSet = false;
202 bool m_roleArnHasBeenSet = false;
203 bool m_loggingConfigurationHasBeenSet = false;
204 bool m_tracingConfigurationHasBeenSet = false;
205 bool m_publishHasBeenSet = false;
206 bool m_versionDescriptionHasBeenSet = false;
207 bool m_encryptionConfigurationHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace SFN
212} // namespace Aws
UpdateStateMachineRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetVersionDescription(VersionDescriptionT &&value)
const LoggingConfiguration & GetLoggingConfiguration() const
UpdateStateMachineRequest & WithRoleArn(RoleArnT &&value)
UpdateStateMachineRequest & WithPublish(bool value)
UpdateStateMachineRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
UpdateStateMachineRequest & WithStateMachineArn(StateMachineArnT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
UpdateStateMachineRequest & WithTracingConfiguration(TracingConfigurationT &&value)
AWS_SFN_API Aws::String SerializePayload() const override
AWS_SFN_API UpdateStateMachineRequest()=default
const TracingConfiguration & GetTracingConfiguration() const
UpdateStateMachineRequest & WithDefinition(DefinitionT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetLoggingConfiguration(LoggingConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
UpdateStateMachineRequest & WithVersionDescription(VersionDescriptionT &&value)
void SetTracingConfiguration(TracingConfigurationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String