AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SourceControlDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/SourceControlAuthStrategy.h>
10#include <aws/glue/model/SourceControlProvider.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
32 public:
33 AWS_GLUE_API SourceControlDetails() = default;
37
39
42 inline SourceControlProvider GetProvider() const { return m_provider; }
43 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
45 m_providerHasBeenSet = true;
46 m_provider = value;
47 }
49 SetProvider(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRepository() const { return m_repository; }
59 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
60 template <typename RepositoryT = Aws::String>
61 void SetRepository(RepositoryT&& value) {
62 m_repositoryHasBeenSet = true;
63 m_repository = std::forward<RepositoryT>(value);
64 }
65 template <typename RepositoryT = Aws::String>
66 SourceControlDetails& WithRepository(RepositoryT&& value) {
67 SetRepository(std::forward<RepositoryT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetOwner() const { return m_owner; }
77 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
78 template <typename OwnerT = Aws::String>
79 void SetOwner(OwnerT&& value) {
80 m_ownerHasBeenSet = true;
81 m_owner = std::forward<OwnerT>(value);
82 }
83 template <typename OwnerT = Aws::String>
85 SetOwner(std::forward<OwnerT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetBranch() const { return m_branch; }
95 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
96 template <typename BranchT = Aws::String>
97 void SetBranch(BranchT&& value) {
98 m_branchHasBeenSet = true;
99 m_branch = std::forward<BranchT>(value);
100 }
101 template <typename BranchT = Aws::String>
103 SetBranch(std::forward<BranchT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetFolder() const { return m_folder; }
113 inline bool FolderHasBeenSet() const { return m_folderHasBeenSet; }
114 template <typename FolderT = Aws::String>
115 void SetFolder(FolderT&& value) {
116 m_folderHasBeenSet = true;
117 m_folder = std::forward<FolderT>(value);
118 }
119 template <typename FolderT = Aws::String>
121 SetFolder(std::forward<FolderT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetLastCommitId() const { return m_lastCommitId; }
131 inline bool LastCommitIdHasBeenSet() const { return m_lastCommitIdHasBeenSet; }
132 template <typename LastCommitIdT = Aws::String>
133 void SetLastCommitId(LastCommitIdT&& value) {
134 m_lastCommitIdHasBeenSet = true;
135 m_lastCommitId = std::forward<LastCommitIdT>(value);
136 }
137 template <typename LastCommitIdT = Aws::String>
138 SourceControlDetails& WithLastCommitId(LastCommitIdT&& value) {
139 SetLastCommitId(std::forward<LastCommitIdT>(value));
140 return *this;
141 }
143
145
149 inline SourceControlAuthStrategy GetAuthStrategy() const { return m_authStrategy; }
150 inline bool AuthStrategyHasBeenSet() const { return m_authStrategyHasBeenSet; }
152 m_authStrategyHasBeenSet = true;
153 m_authStrategy = value;
154 }
156 SetAuthStrategy(value);
157 return *this;
158 }
160
162
165 inline const Aws::String& GetAuthToken() const { return m_authToken; }
166 inline bool AuthTokenHasBeenSet() const { return m_authTokenHasBeenSet; }
167 template <typename AuthTokenT = Aws::String>
168 void SetAuthToken(AuthTokenT&& value) {
169 m_authTokenHasBeenSet = true;
170 m_authToken = std::forward<AuthTokenT>(value);
171 }
172 template <typename AuthTokenT = Aws::String>
173 SourceControlDetails& WithAuthToken(AuthTokenT&& value) {
174 SetAuthToken(std::forward<AuthTokenT>(value));
175 return *this;
176 }
178 private:
180
181 Aws::String m_repository;
182
183 Aws::String m_owner;
184
185 Aws::String m_branch;
186
187 Aws::String m_folder;
188
189 Aws::String m_lastCommitId;
190
192
193 Aws::String m_authToken;
194 bool m_providerHasBeenSet = false;
195 bool m_repositoryHasBeenSet = false;
196 bool m_ownerHasBeenSet = false;
197 bool m_branchHasBeenSet = false;
198 bool m_folderHasBeenSet = false;
199 bool m_lastCommitIdHasBeenSet = false;
200 bool m_authStrategyHasBeenSet = false;
201 bool m_authTokenHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace Glue
206} // namespace Aws
SourceControlDetails & WithLastCommitId(LastCommitIdT &&value)
void SetProvider(SourceControlProvider value)
SourceControlDetails & WithAuthToken(AuthTokenT &&value)
SourceControlDetails & WithFolder(FolderT &&value)
AWS_GLUE_API SourceControlDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceControlDetails & WithAuthStrategy(SourceControlAuthStrategy value)
SourceControlDetails & WithProvider(SourceControlProvider value)
SourceControlProvider GetProvider() const
SourceControlDetails & WithOwner(OwnerT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API SourceControlDetails()=default
SourceControlDetails & WithRepository(RepositoryT &&value)
void SetLastCommitId(LastCommitIdT &&value)
const Aws::String & GetLastCommitId() const
const Aws::String & GetRepository() const
SourceControlDetails & WithBranch(BranchT &&value)
AWS_GLUE_API SourceControlDetails(Aws::Utils::Json::JsonView jsonValue)
SourceControlAuthStrategy GetAuthStrategy() const
void SetAuthStrategy(SourceControlAuthStrategy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue