AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42
43
45
48 inline const SourceControlProvider& GetProvider() const{ return m_provider; }
49 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
50 inline void SetProvider(const SourceControlProvider& value) { m_providerHasBeenSet = true; m_provider = value; }
51 inline void SetProvider(SourceControlProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
52 inline SourceControlDetails& WithProvider(const SourceControlProvider& value) { SetProvider(value); return *this;}
53 inline SourceControlDetails& WithProvider(SourceControlProvider&& value) { SetProvider(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetRepository() const{ return m_repository; }
61 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
62 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
63 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
64 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
65 inline SourceControlDetails& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
66 inline SourceControlDetails& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
67 inline SourceControlDetails& WithRepository(const char* value) { SetRepository(value); return *this;}
69
71
74 inline const Aws::String& GetOwner() const{ return m_owner; }
75 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
76 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
77 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
78 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
79 inline SourceControlDetails& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
80 inline SourceControlDetails& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
81 inline SourceControlDetails& WithOwner(const char* value) { SetOwner(value); return *this;}
83
85
88 inline const Aws::String& GetBranch() const{ return m_branch; }
89 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
90 inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; }
91 inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); }
92 inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); }
93 inline SourceControlDetails& WithBranch(const Aws::String& value) { SetBranch(value); return *this;}
94 inline SourceControlDetails& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;}
95 inline SourceControlDetails& WithBranch(const char* value) { SetBranch(value); return *this;}
97
99
102 inline const Aws::String& GetFolder() const{ return m_folder; }
103 inline bool FolderHasBeenSet() const { return m_folderHasBeenSet; }
104 inline void SetFolder(const Aws::String& value) { m_folderHasBeenSet = true; m_folder = value; }
105 inline void SetFolder(Aws::String&& value) { m_folderHasBeenSet = true; m_folder = std::move(value); }
106 inline void SetFolder(const char* value) { m_folderHasBeenSet = true; m_folder.assign(value); }
107 inline SourceControlDetails& WithFolder(const Aws::String& value) { SetFolder(value); return *this;}
108 inline SourceControlDetails& WithFolder(Aws::String&& value) { SetFolder(std::move(value)); return *this;}
109 inline SourceControlDetails& WithFolder(const char* value) { SetFolder(value); return *this;}
111
113
116 inline const Aws::String& GetLastCommitId() const{ return m_lastCommitId; }
117 inline bool LastCommitIdHasBeenSet() const { return m_lastCommitIdHasBeenSet; }
118 inline void SetLastCommitId(const Aws::String& value) { m_lastCommitIdHasBeenSet = true; m_lastCommitId = value; }
119 inline void SetLastCommitId(Aws::String&& value) { m_lastCommitIdHasBeenSet = true; m_lastCommitId = std::move(value); }
120 inline void SetLastCommitId(const char* value) { m_lastCommitIdHasBeenSet = true; m_lastCommitId.assign(value); }
121 inline SourceControlDetails& WithLastCommitId(const Aws::String& value) { SetLastCommitId(value); return *this;}
122 inline SourceControlDetails& WithLastCommitId(Aws::String&& value) { SetLastCommitId(std::move(value)); return *this;}
123 inline SourceControlDetails& WithLastCommitId(const char* value) { SetLastCommitId(value); return *this;}
125
127
131 inline const SourceControlAuthStrategy& GetAuthStrategy() const{ return m_authStrategy; }
132 inline bool AuthStrategyHasBeenSet() const { return m_authStrategyHasBeenSet; }
133 inline void SetAuthStrategy(const SourceControlAuthStrategy& value) { m_authStrategyHasBeenSet = true; m_authStrategy = value; }
134 inline void SetAuthStrategy(SourceControlAuthStrategy&& value) { m_authStrategyHasBeenSet = true; m_authStrategy = std::move(value); }
136 inline SourceControlDetails& WithAuthStrategy(SourceControlAuthStrategy&& value) { SetAuthStrategy(std::move(value)); return *this;}
138
140
143 inline const Aws::String& GetAuthToken() const{ return m_authToken; }
144 inline bool AuthTokenHasBeenSet() const { return m_authTokenHasBeenSet; }
145 inline void SetAuthToken(const Aws::String& value) { m_authTokenHasBeenSet = true; m_authToken = value; }
146 inline void SetAuthToken(Aws::String&& value) { m_authTokenHasBeenSet = true; m_authToken = std::move(value); }
147 inline void SetAuthToken(const char* value) { m_authTokenHasBeenSet = true; m_authToken.assign(value); }
148 inline SourceControlDetails& WithAuthToken(const Aws::String& value) { SetAuthToken(value); return *this;}
149 inline SourceControlDetails& WithAuthToken(Aws::String&& value) { SetAuthToken(std::move(value)); return *this;}
150 inline SourceControlDetails& WithAuthToken(const char* value) { SetAuthToken(value); return *this;}
152 private:
153
154 SourceControlProvider m_provider;
155 bool m_providerHasBeenSet = false;
156
157 Aws::String m_repository;
158 bool m_repositoryHasBeenSet = false;
159
160 Aws::String m_owner;
161 bool m_ownerHasBeenSet = false;
162
163 Aws::String m_branch;
164 bool m_branchHasBeenSet = false;
165
166 Aws::String m_folder;
167 bool m_folderHasBeenSet = false;
168
169 Aws::String m_lastCommitId;
170 bool m_lastCommitIdHasBeenSet = false;
171
172 SourceControlAuthStrategy m_authStrategy;
173 bool m_authStrategyHasBeenSet = false;
174
175 Aws::String m_authToken;
176 bool m_authTokenHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace Glue
181} // namespace Aws
const SourceControlProvider & GetProvider() const
SourceControlDetails & WithOwner(Aws::String &&value)
void SetLastCommitId(const Aws::String &value)
void SetFolder(const Aws::String &value)
SourceControlDetails & WithFolder(const Aws::String &value)
AWS_GLUE_API SourceControlDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceControlDetails & WithRepository(const char *value)
SourceControlDetails & WithRepository(Aws::String &&value)
SourceControlDetails & WithAuthStrategy(const SourceControlAuthStrategy &value)
void SetOwner(const Aws::String &value)
SourceControlDetails & WithAuthToken(const char *value)
SourceControlDetails & WithLastCommitId(Aws::String &&value)
SourceControlDetails & WithLastCommitId(const char *value)
SourceControlDetails & WithFolder(const char *value)
void SetAuthToken(const Aws::String &value)
SourceControlDetails & WithAuthToken(const Aws::String &value)
SourceControlDetails & WithAuthStrategy(SourceControlAuthStrategy &&value)
SourceControlDetails & WithFolder(Aws::String &&value)
SourceControlDetails & WithBranch(const Aws::String &value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const SourceControlAuthStrategy & GetAuthStrategy() const
SourceControlDetails & WithRepository(const Aws::String &value)
SourceControlDetails & WithOwner(const Aws::String &value)
void SetProvider(SourceControlProvider &&value)
void SetRepository(const Aws::String &value)
void SetAuthStrategy(SourceControlAuthStrategy &&value)
SourceControlDetails & WithAuthToken(Aws::String &&value)
SourceControlDetails & WithOwner(const char *value)
const Aws::String & GetLastCommitId() const
const Aws::String & GetRepository() const
SourceControlDetails & WithProvider(const SourceControlProvider &value)
SourceControlDetails & WithBranch(const char *value)
SourceControlDetails & WithProvider(SourceControlProvider &&value)
SourceControlDetails & WithLastCommitId(const Aws::String &value)
SourceControlDetails & WithBranch(Aws::String &&value)
void SetBranch(const Aws::String &value)
AWS_GLUE_API SourceControlDetails(Aws::Utils::Json::JsonView jsonValue)
void SetProvider(const SourceControlProvider &value)
void SetAuthStrategy(const SourceControlAuthStrategy &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue