AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
SourceBuildInformation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
10#include <aws/elasticbeanstalk/model/SourceRepository.h>
11#include <aws/elasticbeanstalk/model/SourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticBeanstalk {
22namespace Model {
23
31 public:
32 AWS_ELASTICBEANSTALK_API SourceBuildInformation() = default;
33 AWS_ELASTICBEANSTALK_API SourceBuildInformation(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICBEANSTALK_API SourceBuildInformation& 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
45 inline SourceType GetSourceType() const { return m_sourceType; }
46 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
47 inline void SetSourceType(SourceType value) {
48 m_sourceTypeHasBeenSet = true;
49 m_sourceType = value;
50 }
52 SetSourceType(value);
53 return *this;
54 }
56
58
62 inline SourceRepository GetSourceRepository() const { return m_sourceRepository; }
63 inline bool SourceRepositoryHasBeenSet() const { return m_sourceRepositoryHasBeenSet; }
65 m_sourceRepositoryHasBeenSet = true;
66 m_sourceRepository = value;
67 }
70 return *this;
71 }
73
75
85 inline const Aws::String& GetSourceLocation() const { return m_sourceLocation; }
86 inline bool SourceLocationHasBeenSet() const { return m_sourceLocationHasBeenSet; }
87 template <typename SourceLocationT = Aws::String>
88 void SetSourceLocation(SourceLocationT&& value) {
89 m_sourceLocationHasBeenSet = true;
90 m_sourceLocation = std::forward<SourceLocationT>(value);
91 }
92 template <typename SourceLocationT = Aws::String>
93 SourceBuildInformation& WithSourceLocation(SourceLocationT&& value) {
94 SetSourceLocation(std::forward<SourceLocationT>(value));
95 return *this;
96 }
98 private:
99 SourceType m_sourceType{SourceType::NOT_SET};
100
102
103 Aws::String m_sourceLocation;
104 bool m_sourceTypeHasBeenSet = false;
105 bool m_sourceRepositoryHasBeenSet = false;
106 bool m_sourceLocationHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ElasticBeanstalk
111} // namespace Aws
SourceBuildInformation & WithSourceRepository(SourceRepository value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API SourceBuildInformation(const Aws::Utils::Xml::XmlNode &xmlNode)
SourceBuildInformation & WithSourceLocation(SourceLocationT &&value)
SourceBuildInformation & WithSourceType(SourceType value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API SourceBuildInformation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API SourceBuildInformation()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream