AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateServiceRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/proton/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Proton
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PROTON_API CreateServiceRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateService"; }
33
34 AWS_PROTON_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetBranchName() const{ return m_branchName; }
46 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
47 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
48 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
49 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
50 inline CreateServiceRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
51 inline CreateServiceRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
52 inline CreateServiceRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateServiceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateServiceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateServiceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline CreateServiceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline CreateServiceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline CreateServiceRequest& WithName(const char* value) { SetName(value); return *this;}
82
84
92 inline const Aws::String& GetRepositoryConnectionArn() const{ return m_repositoryConnectionArn; }
93 inline bool RepositoryConnectionArnHasBeenSet() const { return m_repositoryConnectionArnHasBeenSet; }
94 inline void SetRepositoryConnectionArn(const Aws::String& value) { m_repositoryConnectionArnHasBeenSet = true; m_repositoryConnectionArn = value; }
95 inline void SetRepositoryConnectionArn(Aws::String&& value) { m_repositoryConnectionArnHasBeenSet = true; m_repositoryConnectionArn = std::move(value); }
96 inline void SetRepositoryConnectionArn(const char* value) { m_repositoryConnectionArnHasBeenSet = true; m_repositoryConnectionArn.assign(value); }
99 inline CreateServiceRequest& WithRepositoryConnectionArn(const char* value) { SetRepositoryConnectionArn(value); return *this;}
101
103
107 inline const Aws::String& GetRepositoryId() const{ return m_repositoryId; }
108 inline bool RepositoryIdHasBeenSet() const { return m_repositoryIdHasBeenSet; }
109 inline void SetRepositoryId(const Aws::String& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; }
110 inline void SetRepositoryId(Aws::String&& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = std::move(value); }
111 inline void SetRepositoryId(const char* value) { m_repositoryIdHasBeenSet = true; m_repositoryId.assign(value); }
112 inline CreateServiceRequest& WithRepositoryId(const Aws::String& value) { SetRepositoryId(value); return *this;}
113 inline CreateServiceRequest& WithRepositoryId(Aws::String&& value) { SetRepositoryId(std::move(value)); return *this;}
114 inline CreateServiceRequest& WithRepositoryId(const char* value) { SetRepositoryId(value); return *this;}
116
118
126 inline const Aws::String& GetSpec() const{ return m_spec; }
127 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
128 inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; }
129 inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
130 inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); }
131 inline CreateServiceRequest& WithSpec(const Aws::String& value) { SetSpec(value); return *this;}
132 inline CreateServiceRequest& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;}
133 inline CreateServiceRequest& WithSpec(const char* value) { SetSpec(value); return *this;}
135
137
143 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
147 inline CreateServiceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
148 inline CreateServiceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
149 inline CreateServiceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
150 inline CreateServiceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
152
154
158 inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; }
159 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
160 inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; }
161 inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); }
162 inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); }
164 inline CreateServiceRequest& WithTemplateMajorVersion(Aws::String&& value) { SetTemplateMajorVersion(std::move(value)); return *this;}
165 inline CreateServiceRequest& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;}
167
169
173 inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; }
174 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
175 inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; }
176 inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); }
177 inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); }
179 inline CreateServiceRequest& WithTemplateMinorVersion(Aws::String&& value) { SetTemplateMinorVersion(std::move(value)); return *this;}
180 inline CreateServiceRequest& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;}
182
184
187 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
188 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
189 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
190 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
191 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
192 inline CreateServiceRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
193 inline CreateServiceRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
194 inline CreateServiceRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
196 private:
197
198 Aws::String m_branchName;
199 bool m_branchNameHasBeenSet = false;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Aws::String m_repositoryConnectionArn;
208 bool m_repositoryConnectionArnHasBeenSet = false;
209
210 Aws::String m_repositoryId;
211 bool m_repositoryIdHasBeenSet = false;
212
213 Aws::String m_spec;
214 bool m_specHasBeenSet = false;
215
216 Aws::Vector<Tag> m_tags;
217 bool m_tagsHasBeenSet = false;
218
219 Aws::String m_templateMajorVersion;
220 bool m_templateMajorVersionHasBeenSet = false;
221
222 Aws::String m_templateMinorVersion;
223 bool m_templateMinorVersionHasBeenSet = false;
224
225 Aws::String m_templateName;
226 bool m_templateNameHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace Proton
231} // namespace Aws
CreateServiceRequest & WithSpec(Aws::String &&value)
CreateServiceRequest & WithSpec(const char *value)
CreateServiceRequest & WithDescription(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
CreateServiceRequest & WithRepositoryId(const char *value)
CreateServiceRequest & WithTemplateMinorVersion(Aws::String &&value)
CreateServiceRequest & WithRepositoryConnectionArn(const char *value)
CreateServiceRequest & WithDescription(const char *value)
void SetRepositoryConnectionArn(Aws::String &&value)
void SetTemplateMinorVersion(const Aws::String &value)
CreateServiceRequest & WithTemplateMajorVersion(const char *value)
CreateServiceRequest & WithRepositoryId(const Aws::String &value)
void SetTemplateMajorVersion(const Aws::String &value)
CreateServiceRequest & WithTemplateMinorVersion(const char *value)
CreateServiceRequest & WithName(const Aws::String &value)
void SetRepositoryConnectionArn(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateServiceRequest & WithTemplateMinorVersion(const Aws::String &value)
const Aws::String & GetTemplateMinorVersion() const
const Aws::String & GetRepositoryConnectionArn() const
void SetBranchName(const Aws::String &value)
CreateServiceRequest & WithRepositoryConnectionArn(Aws::String &&value)
CreateServiceRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateServiceRequest & WithRepositoryConnectionArn(const Aws::String &value)
CreateServiceRequest & WithDescription(const Aws::String &value)
CreateServiceRequest & WithBranchName(const Aws::String &value)
CreateServiceRequest & WithTemplateMajorVersion(const Aws::String &value)
CreateServiceRequest & WithBranchName(const char *value)
CreateServiceRequest & WithBranchName(Aws::String &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
void SetTemplateName(const Aws::String &value)
CreateServiceRequest & AddTags(Tag &&value)
CreateServiceRequest & WithTemplateName(const char *value)
CreateServiceRequest & WithTemplateName(const Aws::String &value)
CreateServiceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateServiceRequest & WithName(const char *value)
CreateServiceRequest & WithSpec(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceRequest & AddTags(const Tag &value)
CreateServiceRequest & WithName(Aws::String &&value)
void SetDescription(const Aws::String &value)
CreateServiceRequest & WithTemplateName(Aws::String &&value)
CreateServiceRequest & WithRepositoryId(Aws::String &&value)
CreateServiceRequest & WithTemplateMajorVersion(Aws::String &&value)
const Aws::String & GetTemplateMajorVersion() const
void SetRepositoryId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector