AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BuildConfiguration.h
1
6#pragma once
7#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticbeanstalk/model/ComputeType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticBeanstalk
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ELASTICBEANSTALK_API BuildConfiguration() = default;
36 AWS_ELASTICBEANSTALK_API BuildConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICBEANSTALK_API BuildConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
52 inline const Aws::String& GetArtifactName() const { return m_artifactName; }
53 inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
54 template<typename ArtifactNameT = Aws::String>
55 void SetArtifactName(ArtifactNameT&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::forward<ArtifactNameT>(value); }
56 template<typename ArtifactNameT = Aws::String>
57 BuildConfiguration& WithArtifactName(ArtifactNameT&& value) { SetArtifactName(std::forward<ArtifactNameT>(value)); return *this;}
59
61
66 inline const Aws::String& GetCodeBuildServiceRole() const { return m_codeBuildServiceRole; }
67 inline bool CodeBuildServiceRoleHasBeenSet() const { return m_codeBuildServiceRoleHasBeenSet; }
68 template<typename CodeBuildServiceRoleT = Aws::String>
69 void SetCodeBuildServiceRole(CodeBuildServiceRoleT&& value) { m_codeBuildServiceRoleHasBeenSet = true; m_codeBuildServiceRole = std::forward<CodeBuildServiceRoleT>(value); }
70 template<typename CodeBuildServiceRoleT = Aws::String>
71 BuildConfiguration& WithCodeBuildServiceRole(CodeBuildServiceRoleT&& value) { SetCodeBuildServiceRole(std::forward<CodeBuildServiceRoleT>(value)); return *this;}
73
75
83 inline ComputeType GetComputeType() const { return m_computeType; }
84 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
85 inline void SetComputeType(ComputeType value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
86 inline BuildConfiguration& WithComputeType(ComputeType value) { SetComputeType(value); return *this;}
88
90
93 inline const Aws::String& GetImage() const { return m_image; }
94 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
95 template<typename ImageT = Aws::String>
96 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
97 template<typename ImageT = Aws::String>
98 BuildConfiguration& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
100
102
107 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
108 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
109 inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
110 inline BuildConfiguration& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
112 private:
113
114 Aws::String m_artifactName;
115 bool m_artifactNameHasBeenSet = false;
116
117 Aws::String m_codeBuildServiceRole;
118 bool m_codeBuildServiceRoleHasBeenSet = false;
119
120 ComputeType m_computeType{ComputeType::NOT_SET};
121 bool m_computeTypeHasBeenSet = false;
122
123 Aws::String m_image;
124 bool m_imageHasBeenSet = false;
125
126 int m_timeoutInMinutes{0};
127 bool m_timeoutInMinutesHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace ElasticBeanstalk
132} // namespace Aws
AWS_ELASTICBEANSTALK_API BuildConfiguration()=default
BuildConfiguration & WithComputeType(ComputeType value)
BuildConfiguration & WithTimeoutInMinutes(int value)
BuildConfiguration & WithImage(ImageT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API BuildConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API BuildConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
BuildConfiguration & WithCodeBuildServiceRole(CodeBuildServiceRoleT &&value)
void SetCodeBuildServiceRole(CodeBuildServiceRoleT &&value)
BuildConfiguration & WithArtifactName(ArtifactNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream