AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
BuildConfiguration.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/ComputeType.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
29 public:
30 AWS_ELASTICBEANSTALK_API BuildConfiguration() = default;
31 AWS_ELASTICBEANSTALK_API BuildConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICBEANSTALK_API BuildConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
47 inline const Aws::String& GetArtifactName() const { return m_artifactName; }
48 inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
49 template <typename ArtifactNameT = Aws::String>
50 void SetArtifactName(ArtifactNameT&& value) {
51 m_artifactNameHasBeenSet = true;
52 m_artifactName = std::forward<ArtifactNameT>(value);
53 }
54 template <typename ArtifactNameT = Aws::String>
55 BuildConfiguration& WithArtifactName(ArtifactNameT&& value) {
56 SetArtifactName(std::forward<ArtifactNameT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetCodeBuildServiceRole() const { return m_codeBuildServiceRole; }
68 inline bool CodeBuildServiceRoleHasBeenSet() const { return m_codeBuildServiceRoleHasBeenSet; }
69 template <typename CodeBuildServiceRoleT = Aws::String>
70 void SetCodeBuildServiceRole(CodeBuildServiceRoleT&& value) {
71 m_codeBuildServiceRoleHasBeenSet = true;
72 m_codeBuildServiceRole = std::forward<CodeBuildServiceRoleT>(value);
73 }
74 template <typename CodeBuildServiceRoleT = Aws::String>
75 BuildConfiguration& WithCodeBuildServiceRole(CodeBuildServiceRoleT&& value) {
76 SetCodeBuildServiceRole(std::forward<CodeBuildServiceRoleT>(value));
77 return *this;
78 }
80
82
90 inline ComputeType GetComputeType() const { return m_computeType; }
91 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
92 inline void SetComputeType(ComputeType value) {
93 m_computeTypeHasBeenSet = true;
94 m_computeType = value;
95 }
97 SetComputeType(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetImage() const { return m_image; }
107 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
108 template <typename ImageT = Aws::String>
109 void SetImage(ImageT&& value) {
110 m_imageHasBeenSet = true;
111 m_image = std::forward<ImageT>(value);
112 }
113 template <typename ImageT = Aws::String>
114 BuildConfiguration& WithImage(ImageT&& value) {
115 SetImage(std::forward<ImageT>(value));
116 return *this;
117 }
119
121
126 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
127 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
128 inline void SetTimeoutInMinutes(int value) {
129 m_timeoutInMinutesHasBeenSet = true;
130 m_timeoutInMinutes = value;
131 }
133 SetTimeoutInMinutes(value);
134 return *this;
135 }
137 private:
138 Aws::String m_artifactName;
139
140 Aws::String m_codeBuildServiceRole;
141
142 ComputeType m_computeType{ComputeType::NOT_SET};
143
144 Aws::String m_image;
145
146 int m_timeoutInMinutes{0};
147 bool m_artifactNameHasBeenSet = false;
148 bool m_codeBuildServiceRoleHasBeenSet = false;
149 bool m_computeTypeHasBeenSet = false;
150 bool m_imageHasBeenSet = false;
151 bool m_timeoutInMinutesHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace ElasticBeanstalk
156} // 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