AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SourceConfiguration.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/AuthenticationConfiguration.h>
9#include <aws/apprunner/model/CodeRepository.h>
10#include <aws/apprunner/model/ImageRepository.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppRunner {
22namespace Model {
23
31 public:
32 AWS_APPRUNNER_API SourceConfiguration() = default;
33 AWS_APPRUNNER_API SourceConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const CodeRepository& GetCodeRepository() const { return m_codeRepository; }
43 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
44 template <typename CodeRepositoryT = CodeRepository>
45 void SetCodeRepository(CodeRepositoryT&& value) {
46 m_codeRepositoryHasBeenSet = true;
47 m_codeRepository = std::forward<CodeRepositoryT>(value);
48 }
49 template <typename CodeRepositoryT = CodeRepository>
50 SourceConfiguration& WithCodeRepository(CodeRepositoryT&& value) {
51 SetCodeRepository(std::forward<CodeRepositoryT>(value));
52 return *this;
53 }
55
57
61 inline const ImageRepository& GetImageRepository() const { return m_imageRepository; }
62 inline bool ImageRepositoryHasBeenSet() const { return m_imageRepositoryHasBeenSet; }
63 template <typename ImageRepositoryT = ImageRepository>
64 void SetImageRepository(ImageRepositoryT&& value) {
65 m_imageRepositoryHasBeenSet = true;
66 m_imageRepository = std::forward<ImageRepositoryT>(value);
67 }
68 template <typename ImageRepositoryT = ImageRepository>
69 SourceConfiguration& WithImageRepository(ImageRepositoryT&& value) {
70 SetImageRepository(std::forward<ImageRepositoryT>(value));
71 return *this;
72 }
74
76
86 inline bool GetAutoDeploymentsEnabled() const { return m_autoDeploymentsEnabled; }
87 inline bool AutoDeploymentsEnabledHasBeenSet() const { return m_autoDeploymentsEnabledHasBeenSet; }
88 inline void SetAutoDeploymentsEnabled(bool value) {
89 m_autoDeploymentsEnabledHasBeenSet = true;
90 m_autoDeploymentsEnabled = value;
91 }
94 return *this;
95 }
97
99
103 inline const AuthenticationConfiguration& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
104 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
105 template <typename AuthenticationConfigurationT = AuthenticationConfiguration>
106 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
107 m_authenticationConfigurationHasBeenSet = true;
108 m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value);
109 }
110 template <typename AuthenticationConfigurationT = AuthenticationConfiguration>
111 SourceConfiguration& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) {
112 SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value));
113 return *this;
114 }
116 private:
117 CodeRepository m_codeRepository;
118
119 ImageRepository m_imageRepository;
120
121 bool m_autoDeploymentsEnabled{false};
122
123 AuthenticationConfiguration m_authenticationConfiguration;
124 bool m_codeRepositoryHasBeenSet = false;
125 bool m_imageRepositoryHasBeenSet = false;
126 bool m_autoDeploymentsEnabledHasBeenSet = false;
127 bool m_authenticationConfigurationHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace AppRunner
132} // namespace Aws
AWS_APPRUNNER_API SourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAuthenticationConfiguration(AuthenticationConfigurationT &&value)
SourceConfiguration & WithCodeRepository(CodeRepositoryT &&value)
void SetCodeRepository(CodeRepositoryT &&value)
SourceConfiguration & WithAutoDeploymentsEnabled(bool value)
const AuthenticationConfiguration & GetAuthenticationConfiguration() const
void SetImageRepository(ImageRepositoryT &&value)
const ImageRepository & GetImageRepository() const
SourceConfiguration & WithImageRepository(ImageRepositoryT &&value)
AWS_APPRUNNER_API SourceConfiguration()=default
const CodeRepository & GetCodeRepository() const
AWS_APPRUNNER_API SourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
SourceConfiguration & WithAuthenticationConfiguration(AuthenticationConfigurationT &&value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue