AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
ImageBuildConfiguration.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/ArchitectureType.h>
11#include <aws/elasticbeanstalk/model/ComputeType.h>
12#include <aws/elasticbeanstalk/model/ImageBuildType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElasticBeanstalk {
23namespace Model {
24
32 public:
33 AWS_ELASTICBEANSTALK_API ImageBuildConfiguration() = default;
34 AWS_ELASTICBEANSTALK_API ImageBuildConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_ELASTICBEANSTALK_API ImageBuildConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
38 const char* locationValue) const;
39 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
51 inline ImageBuildType GetType() const { return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(ImageBuildType value) {
54 m_typeHasBeenSet = true;
55 m_type = value;
56 }
58 SetType(value);
59 return *this;
60 }
62
64
71 inline const Aws::String& GetDockerfileLocation() const { return m_dockerfileLocation; }
72 inline bool DockerfileLocationHasBeenSet() const { return m_dockerfileLocationHasBeenSet; }
73 template <typename DockerfileLocationT = Aws::String>
74 void SetDockerfileLocation(DockerfileLocationT&& value) {
75 m_dockerfileLocationHasBeenSet = true;
76 m_dockerfileLocation = std::forward<DockerfileLocationT>(value);
77 }
78 template <typename DockerfileLocationT = Aws::String>
79 ImageBuildConfiguration& WithDockerfileLocation(DockerfileLocationT&& value) {
80 SetDockerfileLocation(std::forward<DockerfileLocationT>(value));
81 return *this;
82 }
84
86
93 inline const Aws::String& GetBuildpack() const { return m_buildpack; }
94 inline bool BuildpackHasBeenSet() const { return m_buildpackHasBeenSet; }
95 template <typename BuildpackT = Aws::String>
96 void SetBuildpack(BuildpackT&& value) {
97 m_buildpackHasBeenSet = true;
98 m_buildpack = std::forward<BuildpackT>(value);
99 }
100 template <typename BuildpackT = Aws::String>
102 SetBuildpack(std::forward<BuildpackT>(value));
103 return *this;
104 }
106
108
116 inline ArchitectureType GetArchitecture() const { return m_architecture; }
117 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
119 m_architectureHasBeenSet = true;
120 m_architecture = value;
121 }
123 SetArchitecture(value);
124 return *this;
125 }
127
129
135 inline const Aws::String& GetCodeBuildServiceRole() const { return m_codeBuildServiceRole; }
136 inline bool CodeBuildServiceRoleHasBeenSet() const { return m_codeBuildServiceRoleHasBeenSet; }
137 template <typename CodeBuildServiceRoleT = Aws::String>
138 void SetCodeBuildServiceRole(CodeBuildServiceRoleT&& value) {
139 m_codeBuildServiceRoleHasBeenSet = true;
140 m_codeBuildServiceRole = std::forward<CodeBuildServiceRoleT>(value);
141 }
142 template <typename CodeBuildServiceRoleT = Aws::String>
143 ImageBuildConfiguration& WithCodeBuildServiceRole(CodeBuildServiceRoleT&& value) {
144 SetCodeBuildServiceRole(std::forward<CodeBuildServiceRoleT>(value));
145 return *this;
146 }
148
150
159 inline ComputeType GetComputeType() const { return m_computeType; }
160 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
161 inline void SetComputeType(ComputeType value) {
162 m_computeTypeHasBeenSet = true;
163 m_computeType = value;
164 }
166 SetComputeType(value);
167 return *this;
168 }
170
172
176 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
177 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
178 inline void SetTimeoutInMinutes(int value) {
179 m_timeoutInMinutesHasBeenSet = true;
180 m_timeoutInMinutes = value;
181 }
183 SetTimeoutInMinutes(value);
184 return *this;
185 }
187 private:
189
190 Aws::String m_dockerfileLocation;
191
192 Aws::String m_buildpack;
193
195
196 Aws::String m_codeBuildServiceRole;
197
198 ComputeType m_computeType{ComputeType::NOT_SET};
199
200 int m_timeoutInMinutes{0};
201 bool m_typeHasBeenSet = false;
202 bool m_dockerfileLocationHasBeenSet = false;
203 bool m_buildpackHasBeenSet = false;
204 bool m_architectureHasBeenSet = false;
205 bool m_codeBuildServiceRoleHasBeenSet = false;
206 bool m_computeTypeHasBeenSet = false;
207 bool m_timeoutInMinutesHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace ElasticBeanstalk
212} // namespace Aws
AWS_ELASTICBEANSTALK_API ImageBuildConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API ImageBuildConfiguration()=default
ImageBuildConfiguration & WithDockerfileLocation(DockerfileLocationT &&value)
ImageBuildConfiguration & WithType(ImageBuildType value)
ImageBuildConfiguration & WithBuildpack(BuildpackT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ImageBuildConfiguration & WithCodeBuildServiceRole(CodeBuildServiceRoleT &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ImageBuildConfiguration & WithComputeType(ComputeType value)
ImageBuildConfiguration & WithArchitecture(ArchitectureType value)
AWS_ELASTICBEANSTALK_API ImageBuildConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream