AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartDeploymentRequest.h
1
6#pragma once
7#include <aws/amplify/AmplifyRequest.h>
8#include <aws/amplify/Amplify_EXPORTS.h>
9#include <aws/amplify/model/SourceUrlType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Amplify {
16namespace Model {
17
25 public:
26 AWS_AMPLIFY_API StartDeploymentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartDeployment"; }
33
34 AWS_AMPLIFY_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetAppId() const { return m_appId; }
41 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
42 template <typename AppIdT = Aws::String>
43 void SetAppId(AppIdT&& value) {
44 m_appIdHasBeenSet = true;
45 m_appId = std::forward<AppIdT>(value);
46 }
47 template <typename AppIdT = Aws::String>
49 SetAppId(std::forward<AppIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetBranchName() const { return m_branchName; }
59 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
60 template <typename BranchNameT = Aws::String>
61 void SetBranchName(BranchNameT&& value) {
62 m_branchNameHasBeenSet = true;
63 m_branchName = std::forward<BranchNameT>(value);
64 }
65 template <typename BranchNameT = Aws::String>
66 StartDeploymentRequest& WithBranchName(BranchNameT&& value) {
67 SetBranchName(std::forward<BranchNameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetJobId() const { return m_jobId; }
78 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
79 template <typename JobIdT = Aws::String>
80 void SetJobId(JobIdT&& value) {
81 m_jobIdHasBeenSet = true;
82 m_jobId = std::forward<JobIdT>(value);
83 }
84 template <typename JobIdT = Aws::String>
86 SetJobId(std::forward<JobIdT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::String& GetSourceUrl() const { return m_sourceUrl; }
99 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
100 template <typename SourceUrlT = Aws::String>
101 void SetSourceUrl(SourceUrlT&& value) {
102 m_sourceUrlHasBeenSet = true;
103 m_sourceUrl = std::forward<SourceUrlT>(value);
104 }
105 template <typename SourceUrlT = Aws::String>
107 SetSourceUrl(std::forward<SourceUrlT>(value));
108 return *this;
109 }
111
113
119 inline SourceUrlType GetSourceUrlType() const { return m_sourceUrlType; }
120 inline bool SourceUrlTypeHasBeenSet() const { return m_sourceUrlTypeHasBeenSet; }
121 inline void SetSourceUrlType(SourceUrlType value) {
122 m_sourceUrlTypeHasBeenSet = true;
123 m_sourceUrlType = value;
124 }
126 SetSourceUrlType(value);
127 return *this;
128 }
130 private:
131 Aws::String m_appId;
132
133 Aws::String m_branchName;
134
135 Aws::String m_jobId;
136
137 Aws::String m_sourceUrl;
138
139 SourceUrlType m_sourceUrlType{SourceUrlType::NOT_SET};
140 bool m_appIdHasBeenSet = false;
141 bool m_branchNameHasBeenSet = false;
142 bool m_jobIdHasBeenSet = false;
143 bool m_sourceUrlHasBeenSet = false;
144 bool m_sourceUrlTypeHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace Amplify
149} // 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