AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateJobFromSourceControlRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/SourceControlProvider.h>
11#include <aws/glue/model/SourceControlAuthStrategy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
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 "UpdateJobFromSourceControl"; }
33
34 AWS_GLUE_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetJobName() const{ return m_jobName; }
45 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
46 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
47 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
48 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
49 inline UpdateJobFromSourceControlRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
50 inline UpdateJobFromSourceControlRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
51 inline UpdateJobFromSourceControlRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
53
55
59 inline const SourceControlProvider& GetProvider() const{ return m_provider; }
60 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
61 inline void SetProvider(const SourceControlProvider& value) { m_providerHasBeenSet = true; m_provider = value; }
62 inline void SetProvider(SourceControlProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
64 inline UpdateJobFromSourceControlRequest& WithProvider(SourceControlProvider&& value) { SetProvider(std::move(value)); return *this;}
66
68
74 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
75 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
76 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
77 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
78 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
80 inline UpdateJobFromSourceControlRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
81 inline UpdateJobFromSourceControlRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
83
85
88 inline const Aws::String& GetRepositoryOwner() const{ return m_repositoryOwner; }
89 inline bool RepositoryOwnerHasBeenSet() const { return m_repositoryOwnerHasBeenSet; }
90 inline void SetRepositoryOwner(const Aws::String& value) { m_repositoryOwnerHasBeenSet = true; m_repositoryOwner = value; }
91 inline void SetRepositoryOwner(Aws::String&& value) { m_repositoryOwnerHasBeenSet = true; m_repositoryOwner = std::move(value); }
92 inline void SetRepositoryOwner(const char* value) { m_repositoryOwnerHasBeenSet = true; m_repositoryOwner.assign(value); }
94 inline UpdateJobFromSourceControlRequest& WithRepositoryOwner(Aws::String&& value) { SetRepositoryOwner(std::move(value)); return *this;}
95 inline UpdateJobFromSourceControlRequest& WithRepositoryOwner(const char* value) { SetRepositoryOwner(value); return *this;}
97
99
102 inline const Aws::String& GetBranchName() const{ return m_branchName; }
103 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
104 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
105 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
106 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
107 inline UpdateJobFromSourceControlRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
108 inline UpdateJobFromSourceControlRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
109 inline UpdateJobFromSourceControlRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
111
113
116 inline const Aws::String& GetFolder() const{ return m_folder; }
117 inline bool FolderHasBeenSet() const { return m_folderHasBeenSet; }
118 inline void SetFolder(const Aws::String& value) { m_folderHasBeenSet = true; m_folder = value; }
119 inline void SetFolder(Aws::String&& value) { m_folderHasBeenSet = true; m_folder = std::move(value); }
120 inline void SetFolder(const char* value) { m_folderHasBeenSet = true; m_folder.assign(value); }
121 inline UpdateJobFromSourceControlRequest& WithFolder(const Aws::String& value) { SetFolder(value); return *this;}
122 inline UpdateJobFromSourceControlRequest& WithFolder(Aws::String&& value) { SetFolder(std::move(value)); return *this;}
123 inline UpdateJobFromSourceControlRequest& WithFolder(const char* value) { SetFolder(value); return *this;}
125
127
130 inline const Aws::String& GetCommitId() const{ return m_commitId; }
131 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
132 inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
133 inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
134 inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
135 inline UpdateJobFromSourceControlRequest& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
136 inline UpdateJobFromSourceControlRequest& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
137 inline UpdateJobFromSourceControlRequest& WithCommitId(const char* value) { SetCommitId(value); return *this;}
139
141
145 inline const SourceControlAuthStrategy& GetAuthStrategy() const{ return m_authStrategy; }
146 inline bool AuthStrategyHasBeenSet() const { return m_authStrategyHasBeenSet; }
147 inline void SetAuthStrategy(const SourceControlAuthStrategy& value) { m_authStrategyHasBeenSet = true; m_authStrategy = value; }
148 inline void SetAuthStrategy(SourceControlAuthStrategy&& value) { m_authStrategyHasBeenSet = true; m_authStrategy = std::move(value); }
152
154
157 inline const Aws::String& GetAuthToken() const{ return m_authToken; }
158 inline bool AuthTokenHasBeenSet() const { return m_authTokenHasBeenSet; }
159 inline void SetAuthToken(const Aws::String& value) { m_authTokenHasBeenSet = true; m_authToken = value; }
160 inline void SetAuthToken(Aws::String&& value) { m_authTokenHasBeenSet = true; m_authToken = std::move(value); }
161 inline void SetAuthToken(const char* value) { m_authTokenHasBeenSet = true; m_authToken.assign(value); }
162 inline UpdateJobFromSourceControlRequest& WithAuthToken(const Aws::String& value) { SetAuthToken(value); return *this;}
163 inline UpdateJobFromSourceControlRequest& WithAuthToken(Aws::String&& value) { SetAuthToken(std::move(value)); return *this;}
164 inline UpdateJobFromSourceControlRequest& WithAuthToken(const char* value) { SetAuthToken(value); return *this;}
166 private:
167
168 Aws::String m_jobName;
169 bool m_jobNameHasBeenSet = false;
170
171 SourceControlProvider m_provider;
172 bool m_providerHasBeenSet = false;
173
174 Aws::String m_repositoryName;
175 bool m_repositoryNameHasBeenSet = false;
176
177 Aws::String m_repositoryOwner;
178 bool m_repositoryOwnerHasBeenSet = false;
179
180 Aws::String m_branchName;
181 bool m_branchNameHasBeenSet = false;
182
183 Aws::String m_folder;
184 bool m_folderHasBeenSet = false;
185
186 Aws::String m_commitId;
187 bool m_commitIdHasBeenSet = false;
188
189 SourceControlAuthStrategy m_authStrategy;
190 bool m_authStrategyHasBeenSet = false;
191
192 Aws::String m_authToken;
193 bool m_authTokenHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace Glue
198} // namespace Aws
UpdateJobFromSourceControlRequest & WithCommitId(const Aws::String &value)
UpdateJobFromSourceControlRequest & WithFolder(Aws::String &&value)
UpdateJobFromSourceControlRequest & WithRepositoryOwner(Aws::String &&value)
UpdateJobFromSourceControlRequest & WithAuthToken(const char *value)
UpdateJobFromSourceControlRequest & WithFolder(const Aws::String &value)
UpdateJobFromSourceControlRequest & WithCommitId(const char *value)
UpdateJobFromSourceControlRequest & WithAuthToken(const Aws::String &value)
UpdateJobFromSourceControlRequest & WithJobName(Aws::String &&value)
UpdateJobFromSourceControlRequest & WithBranchName(Aws::String &&value)
UpdateJobFromSourceControlRequest & WithJobName(const char *value)
UpdateJobFromSourceControlRequest & WithBranchName(const Aws::String &value)
UpdateJobFromSourceControlRequest & WithProvider(const SourceControlProvider &value)
UpdateJobFromSourceControlRequest & WithAuthStrategy(const SourceControlAuthStrategy &value)
UpdateJobFromSourceControlRequest & WithFolder(const char *value)
UpdateJobFromSourceControlRequest & WithRepositoryName(Aws::String &&value)
UpdateJobFromSourceControlRequest & WithRepositoryOwner(const char *value)
AWS_GLUE_API Aws::String SerializePayload() const override
UpdateJobFromSourceControlRequest & WithProvider(SourceControlProvider &&value)
UpdateJobFromSourceControlRequest & WithBranchName(const char *value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateJobFromSourceControlRequest & WithRepositoryName(const char *value)
UpdateJobFromSourceControlRequest & WithRepositoryOwner(const Aws::String &value)
UpdateJobFromSourceControlRequest & WithRepositoryName(const Aws::String &value)
UpdateJobFromSourceControlRequest & WithAuthStrategy(SourceControlAuthStrategy &&value)
UpdateJobFromSourceControlRequest & WithCommitId(Aws::String &&value)
UpdateJobFromSourceControlRequest & WithJobName(const Aws::String &value)
UpdateJobFromSourceControlRequest & WithAuthToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String