AWS SDK for C++  1.8.95
AWS SDK for C++
BuildConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace ElasticBeanstalk
23 {
24 namespace Model
25 {
26 
33  {
34  public:
37  BuildConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
51  inline const Aws::String& GetArtifactName() const{ return m_artifactName; }
52 
61  inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
62 
71  inline void SetArtifactName(const Aws::String& value) { m_artifactNameHasBeenSet = true; m_artifactName = value; }
72 
81  inline void SetArtifactName(Aws::String&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::move(value); }
82 
91  inline void SetArtifactName(const char* value) { m_artifactNameHasBeenSet = true; m_artifactName.assign(value); }
92 
101  inline BuildConfiguration& WithArtifactName(const Aws::String& value) { SetArtifactName(value); return *this;}
102 
111  inline BuildConfiguration& WithArtifactName(Aws::String&& value) { SetArtifactName(std::move(value)); return *this;}
112 
121  inline BuildConfiguration& WithArtifactName(const char* value) { SetArtifactName(value); return *this;}
122 
123 
129  inline const Aws::String& GetCodeBuildServiceRole() const{ return m_codeBuildServiceRole; }
130 
136  inline bool CodeBuildServiceRoleHasBeenSet() const { return m_codeBuildServiceRoleHasBeenSet; }
137 
143  inline void SetCodeBuildServiceRole(const Aws::String& value) { m_codeBuildServiceRoleHasBeenSet = true; m_codeBuildServiceRole = value; }
144 
150  inline void SetCodeBuildServiceRole(Aws::String&& value) { m_codeBuildServiceRoleHasBeenSet = true; m_codeBuildServiceRole = std::move(value); }
151 
157  inline void SetCodeBuildServiceRole(const char* value) { m_codeBuildServiceRoleHasBeenSet = true; m_codeBuildServiceRole.assign(value); }
158 
164  inline BuildConfiguration& WithCodeBuildServiceRole(const Aws::String& value) { SetCodeBuildServiceRole(value); return *this;}
165 
171  inline BuildConfiguration& WithCodeBuildServiceRole(Aws::String&& value) { SetCodeBuildServiceRole(std::move(value)); return *this;}
172 
178  inline BuildConfiguration& WithCodeBuildServiceRole(const char* value) { SetCodeBuildServiceRole(value); return *this;}
179 
180 
189  inline const ComputeType& GetComputeType() const{ return m_computeType; }
190 
199  inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
200 
209  inline void SetComputeType(const ComputeType& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
210 
219  inline void SetComputeType(ComputeType&& value) { m_computeTypeHasBeenSet = true; m_computeType = std::move(value); }
220 
229  inline BuildConfiguration& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
230 
239  inline BuildConfiguration& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;}
240 
241 
245  inline const Aws::String& GetImage() const{ return m_image; }
246 
250  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
251 
255  inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
256 
260  inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
261 
265  inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
266 
270  inline BuildConfiguration& WithImage(const Aws::String& value) { SetImage(value); return *this;}
271 
275  inline BuildConfiguration& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
276 
280  inline BuildConfiguration& WithImage(const char* value) { SetImage(value); return *this;}
281 
282 
288  inline int GetTimeoutInMinutes() const{ return m_timeoutInMinutes; }
289 
295  inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
296 
302  inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
303 
309  inline BuildConfiguration& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
310 
311  private:
312 
313  Aws::String m_artifactName;
314  bool m_artifactNameHasBeenSet;
315 
316  Aws::String m_codeBuildServiceRole;
317  bool m_codeBuildServiceRoleHasBeenSet;
318 
319  ComputeType m_computeType;
320  bool m_computeTypeHasBeenSet;
321 
322  Aws::String m_image;
323  bool m_imageHasBeenSet;
324 
325  int m_timeoutInMinutes;
326  bool m_timeoutInMinutesHasBeenSet;
327  };
328 
329 } // namespace Model
330 } // namespace ElasticBeanstalk
331 } // namespace Aws
BuildConfiguration & WithImage(const Aws::String &value)
#define AWS_ELASTICBEANSTALK_API
BuildConfiguration & WithCodeBuildServiceRole(const Aws::String &value)
BuildConfiguration & WithCodeBuildServiceRole(const char *value)
BuildConfiguration & WithComputeType(const ComputeType &value)
int index
Definition: cJSON.h:171
BuildConfiguration & WithComputeType(ComputeType &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
BuildConfiguration & WithArtifactName(Aws::String &&value)
BuildConfiguration & WithArtifactName(const Aws::String &value)
BuildConfiguration & WithTimeoutInMinutes(int value)
BuildConfiguration & WithCodeBuildServiceRole(Aws::String &&value)
BuildConfiguration & WithImage(const char *value)
BuildConfiguration & WithArtifactName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
BuildConfiguration & WithImage(Aws::String &&value)
void SetCodeBuildServiceRole(const Aws::String &value)