AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArtifactName(const Aws::String& value) { m_artifactNameHasBeenSet = true; m_artifactName = value; }
55 inline void SetArtifactName(Aws::String&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::move(value); }
56 inline void SetArtifactName(const char* value) { m_artifactNameHasBeenSet = true; m_artifactName.assign(value); }
57 inline BuildConfiguration& WithArtifactName(const Aws::String& value) { SetArtifactName(value); return *this;}
58 inline BuildConfiguration& WithArtifactName(Aws::String&& value) { SetArtifactName(std::move(value)); return *this;}
59 inline BuildConfiguration& WithArtifactName(const char* value) { SetArtifactName(value); return *this;}
61
63
68 inline const Aws::String& GetCodeBuildServiceRole() const{ return m_codeBuildServiceRole; }
69 inline bool CodeBuildServiceRoleHasBeenSet() const { return m_codeBuildServiceRoleHasBeenSet; }
70 inline void SetCodeBuildServiceRole(const Aws::String& value) { m_codeBuildServiceRoleHasBeenSet = true; m_codeBuildServiceRole = value; }
71 inline void SetCodeBuildServiceRole(Aws::String&& value) { m_codeBuildServiceRoleHasBeenSet = true; m_codeBuildServiceRole = std::move(value); }
72 inline void SetCodeBuildServiceRole(const char* value) { m_codeBuildServiceRoleHasBeenSet = true; m_codeBuildServiceRole.assign(value); }
74 inline BuildConfiguration& WithCodeBuildServiceRole(Aws::String&& value) { SetCodeBuildServiceRole(std::move(value)); return *this;}
75 inline BuildConfiguration& WithCodeBuildServiceRole(const char* value) { SetCodeBuildServiceRole(value); return *this;}
77
79
87 inline const ComputeType& GetComputeType() const{ return m_computeType; }
88 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
89 inline void SetComputeType(const ComputeType& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
90 inline void SetComputeType(ComputeType&& value) { m_computeTypeHasBeenSet = true; m_computeType = std::move(value); }
91 inline BuildConfiguration& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
92 inline BuildConfiguration& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;}
94
96
99 inline const Aws::String& GetImage() const{ return m_image; }
100 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
101 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
102 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
103 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
104 inline BuildConfiguration& WithImage(const Aws::String& value) { SetImage(value); return *this;}
105 inline BuildConfiguration& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
106 inline BuildConfiguration& WithImage(const char* value) { SetImage(value); return *this;}
108
110
115 inline int GetTimeoutInMinutes() const{ return m_timeoutInMinutes; }
116 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
117 inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
118 inline BuildConfiguration& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
120 private:
121
122 Aws::String m_artifactName;
123 bool m_artifactNameHasBeenSet = false;
124
125 Aws::String m_codeBuildServiceRole;
126 bool m_codeBuildServiceRoleHasBeenSet = false;
127
128 ComputeType m_computeType;
129 bool m_computeTypeHasBeenSet = false;
130
131 Aws::String m_image;
132 bool m_imageHasBeenSet = false;
133
134 int m_timeoutInMinutes;
135 bool m_timeoutInMinutesHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace ElasticBeanstalk
140} // namespace Aws
BuildConfiguration & WithArtifactName(Aws::String &&value)
BuildConfiguration & WithImage(const char *value)
BuildConfiguration & WithTimeoutInMinutes(int value)
BuildConfiguration & WithComputeType(ComputeType &&value)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
BuildConfiguration & WithArtifactName(const char *value)
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(const Aws::String &value)
void SetCodeBuildServiceRole(const Aws::String &value)
BuildConfiguration & WithImage(Aws::String &&value)
BuildConfiguration & WithArtifactName(const Aws::String &value)
BuildConfiguration & WithCodeBuildServiceRole(Aws::String &&value)
BuildConfiguration & WithImage(const Aws::String &value)
BuildConfiguration & WithComputeType(const ComputeType &value)
BuildConfiguration & WithCodeBuildServiceRole(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream