AWS SDK for C++  1.8.95
AWS SDK for C++
SourceBuildInformation.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace ElasticBeanstalk
24 {
25 namespace Model
26 {
27 
35  {
36  public:
39  SourceBuildInformation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
49  inline const SourceType& GetSourceType() const{ return m_sourceType; }
50 
55  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
56 
61  inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
62 
67  inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
68 
73  inline SourceBuildInformation& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;}
74 
79  inline SourceBuildInformation& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;}
80 
81 
86  inline const SourceRepository& GetSourceRepository() const{ return m_sourceRepository; }
87 
92  inline bool SourceRepositoryHasBeenSet() const { return m_sourceRepositoryHasBeenSet; }
93 
98  inline void SetSourceRepository(const SourceRepository& value) { m_sourceRepositoryHasBeenSet = true; m_sourceRepository = value; }
99 
104  inline void SetSourceRepository(SourceRepository&& value) { m_sourceRepositoryHasBeenSet = true; m_sourceRepository = std::move(value); }
105 
110  inline SourceBuildInformation& WithSourceRepository(const SourceRepository& value) { SetSourceRepository(value); return *this;}
111 
116  inline SourceBuildInformation& WithSourceRepository(SourceRepository&& value) { SetSourceRepository(std::move(value)); return *this;}
117 
118 
129  inline const Aws::String& GetSourceLocation() const{ return m_sourceLocation; }
130 
141  inline bool SourceLocationHasBeenSet() const { return m_sourceLocationHasBeenSet; }
142 
153  inline void SetSourceLocation(const Aws::String& value) { m_sourceLocationHasBeenSet = true; m_sourceLocation = value; }
154 
165  inline void SetSourceLocation(Aws::String&& value) { m_sourceLocationHasBeenSet = true; m_sourceLocation = std::move(value); }
166 
177  inline void SetSourceLocation(const char* value) { m_sourceLocationHasBeenSet = true; m_sourceLocation.assign(value); }
178 
189  inline SourceBuildInformation& WithSourceLocation(const Aws::String& value) { SetSourceLocation(value); return *this;}
190 
201  inline SourceBuildInformation& WithSourceLocation(Aws::String&& value) { SetSourceLocation(std::move(value)); return *this;}
202 
213  inline SourceBuildInformation& WithSourceLocation(const char* value) { SetSourceLocation(value); return *this;}
214 
215  private:
216 
217  SourceType m_sourceType;
218  bool m_sourceTypeHasBeenSet;
219 
220  SourceRepository m_sourceRepository;
221  bool m_sourceRepositoryHasBeenSet;
222 
223  Aws::String m_sourceLocation;
224  bool m_sourceLocationHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace ElasticBeanstalk
229 } // namespace Aws
#define AWS_ELASTICBEANSTALK_API
int index
Definition: cJSON.h:171
void SetSourceRepository(const SourceRepository &value)
SourceBuildInformation & WithSourceLocation(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
SourceBuildInformation & WithSourceType(const SourceType &value)
SourceBuildInformation & WithSourceLocation(const Aws::String &value)
SourceBuildInformation & WithSourceRepository(const SourceRepository &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SourceBuildInformation & WithSourceType(SourceType &&value)
SourceBuildInformation & WithSourceLocation(Aws::String &&value)
SourceBuildInformation & WithSourceRepository(SourceRepository &&value)