7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/AmplifyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amplify/model/Stage.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/amplify/model/Backend.h>
48 template<
typename AppIdT = Aws::String>
49 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet =
true; m_appId = std::forward<AppIdT>(value); }
50 template<
typename AppIdT = Aws::String>
60 template<
typename BranchNameT = Aws::String>
61 void SetBranchName(BranchNameT&& value) { m_branchNameHasBeenSet =
true; m_branchName = std::forward<BranchNameT>(value); }
62 template<
typename BranchNameT = Aws::String>
72 template<
typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
74 template<
typename DescriptionT = Aws::String>
84 template<
typename FrameworkT = Aws::String>
85 void SetFramework(FrameworkT&& value) { m_frameworkHasBeenSet =
true; m_framework = std::forward<FrameworkT>(value); }
86 template<
typename FrameworkT = Aws::String>
96 inline void SetStage(
Stage value) { m_stageHasBeenSet =
true; m_stage = value; }
106 inline void SetEnableNotification(
bool value) { m_enableNotificationHasBeenSet =
true; m_enableNotification = value; }
116 inline void SetEnableAutoBuild(
bool value) { m_enableAutoBuildHasBeenSet =
true; m_enableAutoBuild = value; }
143 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
144 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet =
true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
145 template<
typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
147 template<
typename EnvironmentVariablesKeyT = Aws::String,
typename EnvironmentVariablesValueT = Aws::String>
149 m_environmentVariablesHasBeenSet =
true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
return *
this;
161 template<
typename BasicAuthCredentialsT = Aws::String>
162 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet =
true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
163 template<
typename BasicAuthCredentialsT = Aws::String>
173 inline void SetEnableBasicAuth(
bool value) { m_enableBasicAuthHasBeenSet =
true; m_enableBasicAuth = value; }
196 template<
typename BuildSpecT = Aws::String>
197 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet =
true; m_buildSpec = std::forward<BuildSpecT>(value); }
198 template<
typename BuildSpecT = Aws::String>
208 template<
typename TtlT = Aws::String>
209 void SetTtl(TtlT&& value) { m_ttlHasBeenSet =
true; m_ttl = std::forward<TtlT>(value); }
210 template<
typename TtlT = Aws::String>
221 template<
typename DisplayNameT = Aws::String>
222 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet =
true; m_displayName = std::forward<DisplayNameT>(value); }
223 template<
typename DisplayNameT = Aws::String>
243 template<
typename PullRequestEnvironmentNameT = Aws::String>
244 void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) { m_pullRequestEnvironmentNameHasBeenSet =
true; m_pullRequestEnvironmentName = std::forward<PullRequestEnvironmentNameT>(value); }
245 template<
typename PullRequestEnvironmentNameT = Aws::String>
258 template<
typename BackendEnvironmentArnT = Aws::String>
259 void SetBackendEnvironmentArn(BackendEnvironmentArnT&& value) { m_backendEnvironmentArnHasBeenSet =
true; m_backendEnvironmentArn = std::forward<BackendEnvironmentArnT>(value); }
260 template<
typename BackendEnvironmentArnT = Aws::String>
273 template<
typename BackendT = Backend>
274 void SetBackend(BackendT&& value) { m_backendHasBeenSet =
true; m_backend = std::forward<BackendT>(value); }
275 template<
typename BackendT = Backend>
290 template<
typename ComputeRoleArnT = Aws::String>
291 void SetComputeRoleArn(ComputeRoleArnT&& value) { m_computeRoleArnHasBeenSet =
true; m_computeRoleArn = std::forward<ComputeRoleArnT>(value); }
292 template<
typename ComputeRoleArnT = Aws::String>
298 bool m_appIdHasBeenSet =
false;
301 bool m_branchNameHasBeenSet =
false;
304 bool m_descriptionHasBeenSet =
false;
307 bool m_frameworkHasBeenSet =
false;
310 bool m_stageHasBeenSet =
false;
312 bool m_enableNotification{
false};
313 bool m_enableNotificationHasBeenSet =
false;
315 bool m_enableAutoBuild{
false};
316 bool m_enableAutoBuildHasBeenSet =
false;
318 bool m_enableSkewProtection{
false};
319 bool m_enableSkewProtectionHasBeenSet =
false;
322 bool m_environmentVariablesHasBeenSet =
false;
325 bool m_basicAuthCredentialsHasBeenSet =
false;
327 bool m_enableBasicAuth{
false};
328 bool m_enableBasicAuthHasBeenSet =
false;
330 bool m_enablePerformanceMode{
false};
331 bool m_enablePerformanceModeHasBeenSet =
false;
334 bool m_buildSpecHasBeenSet =
false;
337 bool m_ttlHasBeenSet =
false;
340 bool m_displayNameHasBeenSet =
false;
342 bool m_enablePullRequestPreview{
false};
343 bool m_enablePullRequestPreviewHasBeenSet =
false;
346 bool m_pullRequestEnvironmentNameHasBeenSet =
false;
349 bool m_backendEnvironmentArnHasBeenSet =
false;
352 bool m_backendHasBeenSet =
false;
355 bool m_computeRoleArnHasBeenSet =
false;
bool EnableSkewProtectionHasBeenSet() const
UpdateBranchRequest & WithFramework(FrameworkT &&value)
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
void SetBackend(BackendT &&value)
UpdateBranchRequest & WithAppId(AppIdT &&value)
const Aws::String & GetDisplayName() const
void SetFramework(FrameworkT &&value)
void SetComputeRoleArn(ComputeRoleArnT &&value)
bool BackendEnvironmentArnHasBeenSet() const
bool GetEnableNotification() const
void SetAppId(AppIdT &&value)
UpdateBranchRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
bool BuildSpecHasBeenSet() const
UpdateBranchRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateBranchRequest & WithTtl(TtlT &&value)
bool GetEnableSkewProtection() const
const Aws::String & GetBackendEnvironmentArn() const
UpdateBranchRequest & WithBuildSpec(BuildSpecT &&value)
bool EnvironmentVariablesHasBeenSet() const
UpdateBranchRequest & WithPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
const Aws::String & GetBasicAuthCredentials() const
void SetEnableBasicAuth(bool value)
void SetEnablePerformanceMode(bool value)
bool BranchNameHasBeenSet() const
UpdateBranchRequest & WithDisplayName(DisplayNameT &&value)
bool ComputeRoleArnHasBeenSet() const
UpdateBranchRequest & WithEnableBasicAuth(bool value)
bool GetEnablePullRequestPreview() const
const Aws::String & GetComputeRoleArn() const
UpdateBranchRequest & WithComputeRoleArn(ComputeRoleArnT &&value)
bool AppIdHasBeenSet() const
UpdateBranchRequest & WithEnableAutoBuild(bool value)
void SetEnablePullRequestPreview(bool value)
bool EnablePerformanceModeHasBeenSet() const
const Aws::String & GetBuildSpec() const
bool PullRequestEnvironmentNameHasBeenSet() const
bool EnableAutoBuildHasBeenSet() const
void SetEnableSkewProtection(bool value)
UpdateBranchRequest & WithBackendEnvironmentArn(BackendEnvironmentArnT &&value)
const Backend & GetBackend() const
bool BackendHasBeenSet() const
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetFramework() const
bool EnableBasicAuthHasBeenSet() const
void SetEnableAutoBuild(bool value)
void SetBackendEnvironmentArn(BackendEnvironmentArnT &&value)
virtual const char * GetServiceRequestName() const override
UpdateBranchRequest & WithStage(Stage value)
UpdateBranchRequest & WithEnableNotification(bool value)
UpdateBranchRequest & WithBackend(BackendT &&value)
bool FrameworkHasBeenSet() const
UpdateBranchRequest & WithEnablePerformanceMode(bool value)
const Aws::String & GetAppId() const
bool GetEnableBasicAuth() const
const Aws::String & GetBranchName() const
void SetTtl(TtlT &&value)
UpdateBranchRequest & WithEnableSkewProtection(bool value)
bool BasicAuthCredentialsHasBeenSet() const
void SetDescription(DescriptionT &&value)
void SetBuildSpec(BuildSpecT &&value)
UpdateBranchRequest & WithEnablePullRequestPreview(bool value)
bool DisplayNameHasBeenSet() const
AWS_AMPLIFY_API Aws::String SerializePayload() const override
bool DescriptionHasBeenSet() const
bool StageHasBeenSet() const
bool EnableNotificationHasBeenSet() const
AWS_AMPLIFY_API UpdateBranchRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
void SetStage(Stage value)
const Aws::String & GetDescription() const
bool GetEnableAutoBuild() const
void SetBranchName(BranchNameT &&value)
void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
const Aws::String & GetPullRequestEnvironmentName() const
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
bool TtlHasBeenSet() const
UpdateBranchRequest & WithBranchName(BranchNameT &&value)
bool GetEnablePerformanceMode() const
const Aws::String & GetTtl() const
void SetEnableNotification(bool value)
bool EnablePullRequestPreviewHasBeenSet() const
UpdateBranchRequest & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
UpdateBranchRequest & WithDescription(DescriptionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String