AWS SDK for C++  1.9.155
AWS SDK for C++
StartDeploymentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Amplify
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "StartDeployment"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetAppId() const{ return m_appId; }
43 
47  inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
48 
52  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
53 
57  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
58 
62  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
63 
67  inline StartDeploymentRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
68 
72  inline StartDeploymentRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
73 
77  inline StartDeploymentRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
78 
79 
83  inline const Aws::String& GetBranchName() const{ return m_branchName; }
84 
88  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
89 
93  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
94 
98  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
99 
103  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
104 
108  inline StartDeploymentRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
109 
113  inline StartDeploymentRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
114 
118  inline StartDeploymentRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
119 
120 
125  inline const Aws::String& GetJobId() const{ return m_jobId; }
126 
131  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
132 
137  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
138 
143  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
144 
149  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
150 
155  inline StartDeploymentRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
156 
161  inline StartDeploymentRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
162 
167  inline StartDeploymentRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
168 
169 
175  inline const Aws::String& GetSourceUrl() const{ return m_sourceUrl; }
176 
182  inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
183 
189  inline void SetSourceUrl(const Aws::String& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = value; }
190 
196  inline void SetSourceUrl(Aws::String&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::move(value); }
197 
203  inline void SetSourceUrl(const char* value) { m_sourceUrlHasBeenSet = true; m_sourceUrl.assign(value); }
204 
210  inline StartDeploymentRequest& WithSourceUrl(const Aws::String& value) { SetSourceUrl(value); return *this;}
211 
217  inline StartDeploymentRequest& WithSourceUrl(Aws::String&& value) { SetSourceUrl(std::move(value)); return *this;}
218 
224  inline StartDeploymentRequest& WithSourceUrl(const char* value) { SetSourceUrl(value); return *this;}
225 
226  private:
227 
228  Aws::String m_appId;
229  bool m_appIdHasBeenSet;
230 
231  Aws::String m_branchName;
232  bool m_branchNameHasBeenSet;
233 
234  Aws::String m_jobId;
235  bool m_jobIdHasBeenSet;
236 
237  Aws::String m_sourceUrl;
238  bool m_sourceUrlHasBeenSet;
239  };
240 
241 } // namespace Model
242 } // namespace Amplify
243 } // namespace Aws
Aws::Amplify::Model::StartDeploymentRequest::WithBranchName
StartDeploymentRequest & WithBranchName(Aws::String &&value)
Definition: StartDeploymentRequest.h:113
Amplify_EXPORTS.h
Aws::Amplify::Model::StartDeploymentRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: StartDeploymentRequest.h:131
Aws::Amplify::Model::StartDeploymentRequest::WithBranchName
StartDeploymentRequest & WithBranchName(const Aws::String &value)
Definition: StartDeploymentRequest.h:108
Aws::Amplify::Model::StartDeploymentRequest::WithJobId
StartDeploymentRequest & WithJobId(const char *value)
Definition: StartDeploymentRequest.h:167
Aws::Amplify::Model::StartDeploymentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Amplify::Model::StartDeploymentRequest::SetAppId
void SetAppId(const Aws::String &value)
Definition: StartDeploymentRequest.h:52
Aws::Amplify::Model::StartDeploymentRequest::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: StartDeploymentRequest.h:98
Aws::Amplify::Model::StartDeploymentRequest::SetAppId
void SetAppId(Aws::String &&value)
Definition: StartDeploymentRequest.h:57
Aws::Amplify::Model::StartDeploymentRequest::GetSourceUrl
const Aws::String & GetSourceUrl() const
Definition: StartDeploymentRequest.h:175
Aws::Amplify::Model::StartDeploymentRequest::SetSourceUrl
void SetSourceUrl(const Aws::String &value)
Definition: StartDeploymentRequest.h:189
Aws::Amplify::Model::StartDeploymentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartDeploymentRequest.h:34
Aws::Amplify::Model::StartDeploymentRequest::WithJobId
StartDeploymentRequest & WithJobId(const Aws::String &value)
Definition: StartDeploymentRequest.h:155
Aws::Amplify::Model::StartDeploymentRequest::SetJobId
void SetJobId(const char *value)
Definition: StartDeploymentRequest.h:149
AmplifyRequest.h
Aws::Amplify::Model::StartDeploymentRequest::WithSourceUrl
StartDeploymentRequest & WithSourceUrl(Aws::String &&value)
Definition: StartDeploymentRequest.h:217
Aws::Amplify::AmplifyRequest
Definition: AmplifyRequest.h:17
Aws::Amplify::Model::StartDeploymentRequest::WithBranchName
StartDeploymentRequest & WithBranchName(const char *value)
Definition: StartDeploymentRequest.h:118
Aws::Amplify::Model::StartDeploymentRequest::GetAppId
const Aws::String & GetAppId() const
Definition: StartDeploymentRequest.h:42
Aws::Amplify::Model::StartDeploymentRequest::GetBranchName
const Aws::String & GetBranchName() const
Definition: StartDeploymentRequest.h:83
Aws::Amplify::Model::StartDeploymentRequest::SetSourceUrl
void SetSourceUrl(const char *value)
Definition: StartDeploymentRequest.h:203
Aws::Amplify::Model::StartDeploymentRequest::WithAppId
StartDeploymentRequest & WithAppId(Aws::String &&value)
Definition: StartDeploymentRequest.h:72
Aws::Amplify::Model::StartDeploymentRequest::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: StartDeploymentRequest.h:93
AWSString.h
Aws::Amplify::Model::StartDeploymentRequest::WithSourceUrl
StartDeploymentRequest & WithSourceUrl(const char *value)
Definition: StartDeploymentRequest.h:224
Aws::Amplify::Model::StartDeploymentRequest::WithAppId
StartDeploymentRequest & WithAppId(const char *value)
Definition: StartDeploymentRequest.h:77
Aws::Amplify::Model::StartDeploymentRequest::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: StartDeploymentRequest.h:88
Aws::Amplify::Model::StartDeploymentRequest::WithJobId
StartDeploymentRequest & WithJobId(Aws::String &&value)
Definition: StartDeploymentRequest.h:161
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::StartDeploymentRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: StartDeploymentRequest.h:143
Aws::Amplify::Model::StartDeploymentRequest::SourceUrlHasBeenSet
bool SourceUrlHasBeenSet() const
Definition: StartDeploymentRequest.h:182
Aws::Amplify::Model::StartDeploymentRequest::WithAppId
StartDeploymentRequest & WithAppId(const Aws::String &value)
Definition: StartDeploymentRequest.h:67
Aws::Amplify::Model::StartDeploymentRequest::WithSourceUrl
StartDeploymentRequest & WithSourceUrl(const Aws::String &value)
Definition: StartDeploymentRequest.h:210
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::StartDeploymentRequest::SetSourceUrl
void SetSourceUrl(Aws::String &&value)
Definition: StartDeploymentRequest.h:196
Aws::Amplify::Model::StartDeploymentRequest::StartDeploymentRequest
StartDeploymentRequest()
Aws::Amplify::Model::StartDeploymentRequest::SetAppId
void SetAppId(const char *value)
Definition: StartDeploymentRequest.h:62
Aws::Amplify::Model::StartDeploymentRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: StartDeploymentRequest.h:137
Aws::Amplify::Model::StartDeploymentRequest::SetBranchName
void SetBranchName(const char *value)
Definition: StartDeploymentRequest.h:103
Aws::Amplify::Model::StartDeploymentRequest::GetJobId
const Aws::String & GetJobId() const
Definition: StartDeploymentRequest.h:125
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28
Aws::Amplify::Model::StartDeploymentRequest::AppIdHasBeenSet
bool AppIdHasBeenSet() const
Definition: StartDeploymentRequest.h:47
Aws::Amplify::Model::StartDeploymentRequest
Definition: StartDeploymentRequest.h:26