AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateSourceControlFromJobRequest.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:
26 AWS_GLUE_API UpdateSourceControlFromJobRequest() = 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 "UpdateSourceControlFromJob"; }
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 template<typename JobNameT = Aws::String>
47 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
48 template<typename JobNameT = Aws::String>
49 UpdateSourceControlFromJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
51
53
57 inline SourceControlProvider GetProvider() const { return m_provider; }
58 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
59 inline void SetProvider(SourceControlProvider value) { m_providerHasBeenSet = true; m_provider = value; }
62
64
70 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
71 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
72 template<typename RepositoryNameT = Aws::String>
73 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
74 template<typename RepositoryNameT = Aws::String>
75 UpdateSourceControlFromJobRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
77
79
82 inline const Aws::String& GetRepositoryOwner() const { return m_repositoryOwner; }
83 inline bool RepositoryOwnerHasBeenSet() const { return m_repositoryOwnerHasBeenSet; }
84 template<typename RepositoryOwnerT = Aws::String>
85 void SetRepositoryOwner(RepositoryOwnerT&& value) { m_repositoryOwnerHasBeenSet = true; m_repositoryOwner = std::forward<RepositoryOwnerT>(value); }
86 template<typename RepositoryOwnerT = Aws::String>
87 UpdateSourceControlFromJobRequest& WithRepositoryOwner(RepositoryOwnerT&& value) { SetRepositoryOwner(std::forward<RepositoryOwnerT>(value)); return *this;}
89
91
94 inline const Aws::String& GetBranchName() const { return m_branchName; }
95 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
96 template<typename BranchNameT = Aws::String>
97 void SetBranchName(BranchNameT&& value) { m_branchNameHasBeenSet = true; m_branchName = std::forward<BranchNameT>(value); }
98 template<typename BranchNameT = Aws::String>
99 UpdateSourceControlFromJobRequest& WithBranchName(BranchNameT&& value) { SetBranchName(std::forward<BranchNameT>(value)); return *this;}
101
103
106 inline const Aws::String& GetFolder() const { return m_folder; }
107 inline bool FolderHasBeenSet() const { return m_folderHasBeenSet; }
108 template<typename FolderT = Aws::String>
109 void SetFolder(FolderT&& value) { m_folderHasBeenSet = true; m_folder = std::forward<FolderT>(value); }
110 template<typename FolderT = Aws::String>
111 UpdateSourceControlFromJobRequest& WithFolder(FolderT&& value) { SetFolder(std::forward<FolderT>(value)); return *this;}
113
115
118 inline const Aws::String& GetCommitId() const { return m_commitId; }
119 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
120 template<typename CommitIdT = Aws::String>
121 void SetCommitId(CommitIdT&& value) { m_commitIdHasBeenSet = true; m_commitId = std::forward<CommitIdT>(value); }
122 template<typename CommitIdT = Aws::String>
123 UpdateSourceControlFromJobRequest& WithCommitId(CommitIdT&& value) { SetCommitId(std::forward<CommitIdT>(value)); return *this;}
125
127
131 inline SourceControlAuthStrategy GetAuthStrategy() const { return m_authStrategy; }
132 inline bool AuthStrategyHasBeenSet() const { return m_authStrategyHasBeenSet; }
133 inline void SetAuthStrategy(SourceControlAuthStrategy value) { m_authStrategyHasBeenSet = true; m_authStrategy = value; }
136
138
141 inline const Aws::String& GetAuthToken() const { return m_authToken; }
142 inline bool AuthTokenHasBeenSet() const { return m_authTokenHasBeenSet; }
143 template<typename AuthTokenT = Aws::String>
144 void SetAuthToken(AuthTokenT&& value) { m_authTokenHasBeenSet = true; m_authToken = std::forward<AuthTokenT>(value); }
145 template<typename AuthTokenT = Aws::String>
146 UpdateSourceControlFromJobRequest& WithAuthToken(AuthTokenT&& value) { SetAuthToken(std::forward<AuthTokenT>(value)); return *this;}
148 private:
149
150 Aws::String m_jobName;
151 bool m_jobNameHasBeenSet = false;
152
154 bool m_providerHasBeenSet = false;
155
156 Aws::String m_repositoryName;
157 bool m_repositoryNameHasBeenSet = false;
158
159 Aws::String m_repositoryOwner;
160 bool m_repositoryOwnerHasBeenSet = false;
161
162 Aws::String m_branchName;
163 bool m_branchNameHasBeenSet = false;
164
165 Aws::String m_folder;
166 bool m_folderHasBeenSet = false;
167
168 Aws::String m_commitId;
169 bool m_commitIdHasBeenSet = false;
170
172 bool m_authStrategyHasBeenSet = false;
173
174 Aws::String m_authToken;
175 bool m_authTokenHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace Glue
180} // namespace Aws
UpdateSourceControlFromJobRequest & WithCommitId(CommitIdT &&value)
UpdateSourceControlFromJobRequest & WithFolder(FolderT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
UpdateSourceControlFromJobRequest & WithRepositoryName(RepositoryNameT &&value)
UpdateSourceControlFromJobRequest & WithAuthStrategy(SourceControlAuthStrategy value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSourceControlFromJobRequest & WithJobName(JobNameT &&value)
UpdateSourceControlFromJobRequest & WithAuthToken(AuthTokenT &&value)
UpdateSourceControlFromJobRequest & WithBranchName(BranchNameT &&value)
UpdateSourceControlFromJobRequest & WithProvider(SourceControlProvider value)
UpdateSourceControlFromJobRequest & WithRepositoryOwner(RepositoryOwnerT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String