AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CodeConfiguration.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/CodeConfigurationValues.h>
9#include <aws/apprunner/model/ConfigurationSource.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppRunner {
21namespace Model {
22
30 public:
31 AWS_APPRUNNER_API CodeConfiguration() = default;
32 AWS_APPRUNNER_API CodeConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
46 inline ConfigurationSource GetConfigurationSource() const { return m_configurationSource; }
47 inline bool ConfigurationSourceHasBeenSet() const { return m_configurationSourceHasBeenSet; }
49 m_configurationSourceHasBeenSet = true;
50 m_configurationSource = value;
51 }
54 return *this;
55 }
57
59
65 inline const CodeConfigurationValues& GetCodeConfigurationValues() const { return m_codeConfigurationValues; }
66 inline bool CodeConfigurationValuesHasBeenSet() const { return m_codeConfigurationValuesHasBeenSet; }
67 template <typename CodeConfigurationValuesT = CodeConfigurationValues>
68 void SetCodeConfigurationValues(CodeConfigurationValuesT&& value) {
69 m_codeConfigurationValuesHasBeenSet = true;
70 m_codeConfigurationValues = std::forward<CodeConfigurationValuesT>(value);
71 }
72 template <typename CodeConfigurationValuesT = CodeConfigurationValues>
73 CodeConfiguration& WithCodeConfigurationValues(CodeConfigurationValuesT&& value) {
74 SetCodeConfigurationValues(std::forward<CodeConfigurationValuesT>(value));
75 return *this;
76 }
78 private:
80
81 CodeConfigurationValues m_codeConfigurationValues;
82 bool m_configurationSourceHasBeenSet = false;
83 bool m_codeConfigurationValuesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace AppRunner
88} // namespace Aws
AWS_APPRUNNER_API CodeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeConfiguration & WithCodeConfigurationValues(CodeConfigurationValuesT &&value)
CodeConfiguration & WithConfigurationSource(ConfigurationSource value)
void SetCodeConfigurationValues(CodeConfigurationValuesT &&value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigurationSource GetConfigurationSource() const
const CodeConfigurationValues & GetCodeConfigurationValues() const
void SetConfigurationSource(ConfigurationSource value)
AWS_APPRUNNER_API CodeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API CodeConfiguration()=default
Aws::Utils::Json::JsonValue JsonValue