AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartDeploymentRequest.h
1
6#pragma once
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/SourceUrlType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Amplify
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_AMPLIFY_API StartDeploymentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartDeployment"; }
36
37 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetAppId() const { return m_appId; }
45 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
46 template<typename AppIdT = Aws::String>
47 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
48 template<typename AppIdT = Aws::String>
49 StartDeploymentRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetBranchName() const { return m_branchName; }
57 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
58 template<typename BranchNameT = Aws::String>
59 void SetBranchName(BranchNameT&& value) { m_branchNameHasBeenSet = true; m_branchName = std::forward<BranchNameT>(value); }
60 template<typename BranchNameT = Aws::String>
61 StartDeploymentRequest& WithBranchName(BranchNameT&& value) { SetBranchName(std::forward<BranchNameT>(value)); return *this;}
63
65
69 inline const Aws::String& GetJobId() const { return m_jobId; }
70 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
71 template<typename JobIdT = Aws::String>
72 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
73 template<typename JobIdT = Aws::String>
74 StartDeploymentRequest& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
76
78
84 inline const Aws::String& GetSourceUrl() const { return m_sourceUrl; }
85 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
86 template<typename SourceUrlT = Aws::String>
87 void SetSourceUrl(SourceUrlT&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::forward<SourceUrlT>(value); }
88 template<typename SourceUrlT = Aws::String>
89 StartDeploymentRequest& WithSourceUrl(SourceUrlT&& value) { SetSourceUrl(std::forward<SourceUrlT>(value)); return *this;}
91
93
99 inline SourceUrlType GetSourceUrlType() const { return m_sourceUrlType; }
100 inline bool SourceUrlTypeHasBeenSet() const { return m_sourceUrlTypeHasBeenSet; }
101 inline void SetSourceUrlType(SourceUrlType value) { m_sourceUrlTypeHasBeenSet = true; m_sourceUrlType = value; }
104 private:
105
106 Aws::String m_appId;
107 bool m_appIdHasBeenSet = false;
108
109 Aws::String m_branchName;
110 bool m_branchNameHasBeenSet = false;
111
112 Aws::String m_jobId;
113 bool m_jobIdHasBeenSet = false;
114
115 Aws::String m_sourceUrl;
116 bool m_sourceUrlHasBeenSet = false;
117
118 SourceUrlType m_sourceUrlType{SourceUrlType::NOT_SET};
119 bool m_sourceUrlTypeHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Amplify
124} // namespace Aws
AWS_AMPLIFY_API StartDeploymentRequest()=default
StartDeploymentRequest & WithJobId(JobIdT &&value)
StartDeploymentRequest & WithAppId(AppIdT &&value)
virtual const char * GetServiceRequestName() const override
StartDeploymentRequest & WithSourceUrlType(SourceUrlType value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
StartDeploymentRequest & WithBranchName(BranchNameT &&value)
StartDeploymentRequest & WithSourceUrl(SourceUrlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String