AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
47 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
48 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
49 inline StartDeploymentRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
50 inline StartDeploymentRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
51 inline StartDeploymentRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
53
55
58 inline const Aws::String& GetBranchName() const{ return m_branchName; }
59 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
60 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
61 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
62 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
63 inline StartDeploymentRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
64 inline StartDeploymentRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
65 inline StartDeploymentRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
67
69
73 inline const Aws::String& GetJobId() const{ return m_jobId; }
74 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
75 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
76 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
77 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
78 inline StartDeploymentRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
79 inline StartDeploymentRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
80 inline StartDeploymentRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
82
84
90 inline const Aws::String& GetSourceUrl() const{ return m_sourceUrl; }
91 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
92 inline void SetSourceUrl(const Aws::String& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = value; }
93 inline void SetSourceUrl(Aws::String&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::move(value); }
94 inline void SetSourceUrl(const char* value) { m_sourceUrlHasBeenSet = true; m_sourceUrl.assign(value); }
95 inline StartDeploymentRequest& WithSourceUrl(const Aws::String& value) { SetSourceUrl(value); return *this;}
96 inline StartDeploymentRequest& WithSourceUrl(Aws::String&& value) { SetSourceUrl(std::move(value)); return *this;}
97 inline StartDeploymentRequest& WithSourceUrl(const char* value) { SetSourceUrl(value); return *this;}
99
101
107 inline const SourceUrlType& GetSourceUrlType() const{ return m_sourceUrlType; }
108 inline bool SourceUrlTypeHasBeenSet() const { return m_sourceUrlTypeHasBeenSet; }
109 inline void SetSourceUrlType(const SourceUrlType& value) { m_sourceUrlTypeHasBeenSet = true; m_sourceUrlType = value; }
110 inline void SetSourceUrlType(SourceUrlType&& value) { m_sourceUrlTypeHasBeenSet = true; m_sourceUrlType = std::move(value); }
111 inline StartDeploymentRequest& WithSourceUrlType(const SourceUrlType& value) { SetSourceUrlType(value); return *this;}
112 inline StartDeploymentRequest& WithSourceUrlType(SourceUrlType&& value) { SetSourceUrlType(std::move(value)); return *this;}
114 private:
115
116 Aws::String m_appId;
117 bool m_appIdHasBeenSet = false;
118
119 Aws::String m_branchName;
120 bool m_branchNameHasBeenSet = false;
121
122 Aws::String m_jobId;
123 bool m_jobIdHasBeenSet = false;
124
125 Aws::String m_sourceUrl;
126 bool m_sourceUrlHasBeenSet = false;
127
128 SourceUrlType m_sourceUrlType;
129 bool m_sourceUrlTypeHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Amplify
134} // namespace Aws
StartDeploymentRequest & WithJobId(const char *value)
void SetSourceUrlType(const SourceUrlType &value)
StartDeploymentRequest & WithAppId(const Aws::String &value)
StartDeploymentRequest & WithSourceUrl(Aws::String &&value)
StartDeploymentRequest & WithBranchName(const Aws::String &value)
StartDeploymentRequest & WithBranchName(Aws::String &&value)
StartDeploymentRequest & WithJobId(Aws::String &&value)
StartDeploymentRequest & WithBranchName(const char *value)
StartDeploymentRequest & WithAppId(Aws::String &&value)
StartDeploymentRequest & WithSourceUrl(const char *value)
StartDeploymentRequest & WithJobId(const Aws::String &value)
StartDeploymentRequest & WithAppId(const char *value)
StartDeploymentRequest & WithSourceUrlType(SourceUrlType &&value)
virtual const char * GetServiceRequestName() const override
StartDeploymentRequest & WithSourceUrlType(const SourceUrlType &value)
AWS_AMPLIFY_API Aws::String SerializePayload() const override
StartDeploymentRequest & WithSourceUrl(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String