AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SourceConfiguration.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/CodeRepository.h>
9#include <aws/apprunner/model/ImageRepository.h>
10#include <aws/apprunner/model/AuthenticationConfiguration.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 AppRunner
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPRUNNER_API SourceConfiguration() = default;
38 AWS_APPRUNNER_API SourceConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const CodeRepository& GetCodeRepository() const { return m_codeRepository; }
49 inline bool CodeRepositoryHasBeenSet() const { return m_codeRepositoryHasBeenSet; }
50 template<typename CodeRepositoryT = CodeRepository>
51 void SetCodeRepository(CodeRepositoryT&& value) { m_codeRepositoryHasBeenSet = true; m_codeRepository = std::forward<CodeRepositoryT>(value); }
52 template<typename CodeRepositoryT = CodeRepository>
53 SourceConfiguration& WithCodeRepository(CodeRepositoryT&& value) { SetCodeRepository(std::forward<CodeRepositoryT>(value)); return *this;}
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) { m_imageRepositoryHasBeenSet = true; m_imageRepository = std::forward<ImageRepositoryT>(value); }
65 template<typename ImageRepositoryT = ImageRepository>
66 SourceConfiguration& WithImageRepository(ImageRepositoryT&& value) { SetImageRepository(std::forward<ImageRepositoryT>(value)); return *this;}
68
70
80 inline bool GetAutoDeploymentsEnabled() const { return m_autoDeploymentsEnabled; }
81 inline bool AutoDeploymentsEnabledHasBeenSet() const { return m_autoDeploymentsEnabledHasBeenSet; }
82 inline void SetAutoDeploymentsEnabled(bool value) { m_autoDeploymentsEnabledHasBeenSet = true; m_autoDeploymentsEnabled = value; }
85
87
91 inline const AuthenticationConfiguration& GetAuthenticationConfiguration() const { return m_authenticationConfiguration; }
92 inline bool AuthenticationConfigurationHasBeenSet() const { return m_authenticationConfigurationHasBeenSet; }
93 template<typename AuthenticationConfigurationT = AuthenticationConfiguration>
94 void SetAuthenticationConfiguration(AuthenticationConfigurationT&& value) { m_authenticationConfigurationHasBeenSet = true; m_authenticationConfiguration = std::forward<AuthenticationConfigurationT>(value); }
95 template<typename AuthenticationConfigurationT = AuthenticationConfiguration>
96 SourceConfiguration& WithAuthenticationConfiguration(AuthenticationConfigurationT&& value) { SetAuthenticationConfiguration(std::forward<AuthenticationConfigurationT>(value)); return *this;}
98 private:
99
100 CodeRepository m_codeRepository;
101 bool m_codeRepositoryHasBeenSet = false;
102
103 ImageRepository m_imageRepository;
104 bool m_imageRepositoryHasBeenSet = false;
105
106 bool m_autoDeploymentsEnabled{false};
107 bool m_autoDeploymentsEnabledHasBeenSet = false;
108
109 AuthenticationConfiguration m_authenticationConfiguration;
110 bool m_authenticationConfigurationHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace AppRunner
115} // 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