AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
AppSourceConfig.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AppGitHubSource.h>
9#include <aws/amplifygen3/model/AppGitLabSource.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyGen3 {
21namespace Model {
22
30 public:
31 AWS_AMPLIFYGEN3_API AppSourceConfig() = default;
32 AWS_AMPLIFYGEN3_API AppSourceConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYGEN3_API AppSourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const AppGitHubSource& GetGitHubSource() const { return m_gitHubSource; }
41 inline bool GitHubSourceHasBeenSet() const { return m_gitHubSourceHasBeenSet; }
42 template <typename GitHubSourceT = AppGitHubSource>
43 void SetGitHubSource(GitHubSourceT&& value) {
44 m_gitHubSourceHasBeenSet = true;
45 m_gitHubSource = std::forward<GitHubSourceT>(value);
46 }
47 template <typename GitHubSourceT = AppGitHubSource>
48 AppSourceConfig& WithGitHubSource(GitHubSourceT&& value) {
49 SetGitHubSource(std::forward<GitHubSourceT>(value));
50 return *this;
51 }
53
55
58 inline const AppGitLabSource& GetGitLabSource() const { return m_gitLabSource; }
59 inline bool GitLabSourceHasBeenSet() const { return m_gitLabSourceHasBeenSet; }
60 template <typename GitLabSourceT = AppGitLabSource>
61 void SetGitLabSource(GitLabSourceT&& value) {
62 m_gitLabSourceHasBeenSet = true;
63 m_gitLabSource = std::forward<GitLabSourceT>(value);
64 }
65 template <typename GitLabSourceT = AppGitLabSource>
66 AppSourceConfig& WithGitLabSource(GitLabSourceT&& value) {
67 SetGitLabSource(std::forward<GitLabSourceT>(value));
68 return *this;
69 }
71 private:
72 AppGitHubSource m_gitHubSource;
73
74 AppGitLabSource m_gitLabSource;
75 bool m_gitHubSourceHasBeenSet = false;
76 bool m_gitLabSourceHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AmplifyGen3
81} // namespace Aws
AWS_AMPLIFYGEN3_API AppSourceConfig()=default
void SetGitLabSource(GitLabSourceT &&value)
void SetGitHubSource(GitHubSourceT &&value)
AppSourceConfig & WithGitHubSource(GitHubSourceT &&value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYGEN3_API AppSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const AppGitHubSource & GetGitHubSource() const
AppSourceConfig & WithGitLabSource(GitLabSourceT &&value)
const AppGitLabSource & GetGitLabSource() const
AWS_AMPLIFYGEN3_API AppSourceConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue