AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
ImageConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
9#include <aws/elasticbeanstalk/model/ImageBuildConfiguration.h>
10#include <aws/elasticbeanstalk/model/ImageSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace ElasticBeanstalk {
21namespace Model {
22
31 public:
32 AWS_ELASTICBEANSTALK_API ImageConfiguration() = default;
33 AWS_ELASTICBEANSTALK_API ImageConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICBEANSTALK_API ImageConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
37 const char* locationValue) const;
38 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
47 inline const ImageSource& GetSource() const { return m_source; }
48 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
49 template <typename SourceT = ImageSource>
50 void SetSource(SourceT&& value) {
51 m_sourceHasBeenSet = true;
52 m_source = std::forward<SourceT>(value);
53 }
54 template <typename SourceT = ImageSource>
55 ImageConfiguration& WithSource(SourceT&& value) {
56 SetSource(std::forward<SourceT>(value));
57 return *this;
58 }
60
62
68 inline const ImageBuildConfiguration& GetBuild() const { return m_build; }
69 inline bool BuildHasBeenSet() const { return m_buildHasBeenSet; }
70 template <typename BuildT = ImageBuildConfiguration>
71 void SetBuild(BuildT&& value) {
72 m_buildHasBeenSet = true;
73 m_build = std::forward<BuildT>(value);
74 }
75 template <typename BuildT = ImageBuildConfiguration>
76 ImageConfiguration& WithBuild(BuildT&& value) {
77 SetBuild(std::forward<BuildT>(value));
78 return *this;
79 }
81 private:
82 ImageSource m_source;
83
85 bool m_sourceHasBeenSet = false;
86 bool m_buildHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace ElasticBeanstalk
91} // namespace Aws
ImageConfiguration & WithSource(SourceT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API ImageConfiguration()=default
AWS_ELASTICBEANSTALK_API ImageConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API ImageConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ImageConfiguration & WithBuild(BuildT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const ImageBuildConfiguration & GetBuild() const
std::basic_ostream< char, std::char_traits< char > > OStream