AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SourceControlDetails.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/SourceControlProvider.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/SourceControlAuthStrategy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_GLUE_API SourceControlDetails() = default;
42
43
45
48 inline SourceControlProvider GetProvider() const { return m_provider; }
49 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
50 inline void SetProvider(SourceControlProvider value) { m_providerHasBeenSet = true; m_provider = value; }
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) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
62 template<typename RepositoryT = Aws::String>
63 SourceControlDetails& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
65
67
70 inline const Aws::String& GetOwner() const { return m_owner; }
71 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
72 template<typename OwnerT = Aws::String>
73 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
74 template<typename OwnerT = Aws::String>
75 SourceControlDetails& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
77
79
82 inline const Aws::String& GetBranch() const { return m_branch; }
83 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
84 template<typename BranchT = Aws::String>
85 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
86 template<typename BranchT = Aws::String>
87 SourceControlDetails& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
89
91
94 inline const Aws::String& GetFolder() const { return m_folder; }
95 inline bool FolderHasBeenSet() const { return m_folderHasBeenSet; }
96 template<typename FolderT = Aws::String>
97 void SetFolder(FolderT&& value) { m_folderHasBeenSet = true; m_folder = std::forward<FolderT>(value); }
98 template<typename FolderT = Aws::String>
99 SourceControlDetails& WithFolder(FolderT&& value) { SetFolder(std::forward<FolderT>(value)); return *this;}
101
103
106 inline const Aws::String& GetLastCommitId() const { return m_lastCommitId; }
107 inline bool LastCommitIdHasBeenSet() const { return m_lastCommitIdHasBeenSet; }
108 template<typename LastCommitIdT = Aws::String>
109 void SetLastCommitId(LastCommitIdT&& value) { m_lastCommitIdHasBeenSet = true; m_lastCommitId = std::forward<LastCommitIdT>(value); }
110 template<typename LastCommitIdT = Aws::String>
111 SourceControlDetails& WithLastCommitId(LastCommitIdT&& value) { SetLastCommitId(std::forward<LastCommitIdT>(value)); return *this;}
113
115
119 inline SourceControlAuthStrategy GetAuthStrategy() const { return m_authStrategy; }
120 inline bool AuthStrategyHasBeenSet() const { return m_authStrategyHasBeenSet; }
121 inline void SetAuthStrategy(SourceControlAuthStrategy value) { m_authStrategyHasBeenSet = true; m_authStrategy = value; }
124
126
129 inline const Aws::String& GetAuthToken() const { return m_authToken; }
130 inline bool AuthTokenHasBeenSet() const { return m_authTokenHasBeenSet; }
131 template<typename AuthTokenT = Aws::String>
132 void SetAuthToken(AuthTokenT&& value) { m_authTokenHasBeenSet = true; m_authToken = std::forward<AuthTokenT>(value); }
133 template<typename AuthTokenT = Aws::String>
134 SourceControlDetails& WithAuthToken(AuthTokenT&& value) { SetAuthToken(std::forward<AuthTokenT>(value)); return *this;}
136 private:
137
139 bool m_providerHasBeenSet = false;
140
141 Aws::String m_repository;
142 bool m_repositoryHasBeenSet = false;
143
144 Aws::String m_owner;
145 bool m_ownerHasBeenSet = false;
146
147 Aws::String m_branch;
148 bool m_branchHasBeenSet = false;
149
150 Aws::String m_folder;
151 bool m_folderHasBeenSet = false;
152
153 Aws::String m_lastCommitId;
154 bool m_lastCommitIdHasBeenSet = false;
155
157 bool m_authStrategyHasBeenSet = false;
158
159 Aws::String m_authToken;
160 bool m_authTokenHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Glue
165} // 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