AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateServiceTemplateVersionRequest.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/TemplateVersionSourceInput.h>
12#include <aws/proton/model/CompatibleEnvironmentTemplateInput.h>
13#include <aws/proton/model/ServiceTemplateSupportedComponentSourceType.h>
14#include <aws/proton/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace Proton
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceTemplateVersion"; }
37
38 AWS_PROTON_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
54 inline CreateServiceTemplateVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline CreateServiceTemplateVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
64 inline const Aws::Vector<CompatibleEnvironmentTemplateInput>& GetCompatibleEnvironmentTemplates() const{ return m_compatibleEnvironmentTemplates; }
65 inline bool CompatibleEnvironmentTemplatesHasBeenSet() const { return m_compatibleEnvironmentTemplatesHasBeenSet; }
66 inline void SetCompatibleEnvironmentTemplates(const Aws::Vector<CompatibleEnvironmentTemplateInput>& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = value; }
67 inline void SetCompatibleEnvironmentTemplates(Aws::Vector<CompatibleEnvironmentTemplateInput>&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = std::move(value); }
70 inline CreateServiceTemplateVersionRequest& AddCompatibleEnvironmentTemplates(const CompatibleEnvironmentTemplateInput& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.push_back(value); return *this; }
71 inline CreateServiceTemplateVersionRequest& AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplateInput&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.push_back(std::move(value)); return *this; }
73
75
78 inline const Aws::String& GetDescription() const{ return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
82 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline CreateServiceTemplateVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 inline CreateServiceTemplateVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
87
89
94 inline const Aws::String& GetMajorVersion() const{ return m_majorVersion; }
95 inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; }
96 inline void SetMajorVersion(const Aws::String& value) { m_majorVersionHasBeenSet = true; m_majorVersion = value; }
97 inline void SetMajorVersion(Aws::String&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::move(value); }
98 inline void SetMajorVersion(const char* value) { m_majorVersionHasBeenSet = true; m_majorVersion.assign(value); }
100 inline CreateServiceTemplateVersionRequest& WithMajorVersion(Aws::String&& value) { SetMajorVersion(std::move(value)); return *this;}
101 inline CreateServiceTemplateVersionRequest& WithMajorVersion(const char* value) { SetMajorVersion(value); return *this;}
103
105
109 inline const TemplateVersionSourceInput& GetSource() const{ return m_source; }
110 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
111 inline void SetSource(const TemplateVersionSourceInput& value) { m_sourceHasBeenSet = true; m_source = value; }
112 inline void SetSource(TemplateVersionSourceInput&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
114 inline CreateServiceTemplateVersionRequest& WithSource(TemplateVersionSourceInput&& value) { SetSource(std::move(value)); return *this;}
116
118
125 inline const Aws::Vector<ServiceTemplateSupportedComponentSourceType>& GetSupportedComponentSources() const{ return m_supportedComponentSources; }
126 inline bool SupportedComponentSourcesHasBeenSet() const { return m_supportedComponentSourcesHasBeenSet; }
127 inline void SetSupportedComponentSources(const Aws::Vector<ServiceTemplateSupportedComponentSourceType>& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = value; }
128 inline void SetSupportedComponentSources(Aws::Vector<ServiceTemplateSupportedComponentSourceType>&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = std::move(value); }
131 inline CreateServiceTemplateVersionRequest& AddSupportedComponentSources(const ServiceTemplateSupportedComponentSourceType& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(value); return *this; }
132 inline CreateServiceTemplateVersionRequest& AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(std::move(value)); return *this; }
134
136
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 CreateServiceTemplateVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
148 inline CreateServiceTemplateVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
149 inline CreateServiceTemplateVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
150 inline CreateServiceTemplateVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
152
154
157 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
158 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
159 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
160 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
161 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
163 inline CreateServiceTemplateVersionRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
164 inline CreateServiceTemplateVersionRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
166 private:
167
168 Aws::String m_clientToken;
169 bool m_clientTokenHasBeenSet = false;
170
171 Aws::Vector<CompatibleEnvironmentTemplateInput> m_compatibleEnvironmentTemplates;
172 bool m_compatibleEnvironmentTemplatesHasBeenSet = false;
173
174 Aws::String m_description;
175 bool m_descriptionHasBeenSet = false;
176
177 Aws::String m_majorVersion;
178 bool m_majorVersionHasBeenSet = false;
179
181 bool m_sourceHasBeenSet = false;
182
184 bool m_supportedComponentSourcesHasBeenSet = false;
185
186 Aws::Vector<Tag> m_tags;
187 bool m_tagsHasBeenSet = false;
188
189 Aws::String m_templateName;
190 bool m_templateNameHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace Proton
195} // namespace Aws
CreateServiceTemplateVersionRequest & WithSupportedComponentSources(const Aws::Vector< ServiceTemplateSupportedComponentSourceType > &value)
CreateServiceTemplateVersionRequest & WithClientToken(const char *value)
CreateServiceTemplateVersionRequest & WithTemplateName(Aws::String &&value)
void SetSupportedComponentSources(Aws::Vector< ServiceTemplateSupportedComponentSourceType > &&value)
CreateServiceTemplateVersionRequest & WithDescription(const char *value)
CreateServiceTemplateVersionRequest & WithClientToken(Aws::String &&value)
CreateServiceTemplateVersionRequest & AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType &&value)
CreateServiceTemplateVersionRequest & WithSource(TemplateVersionSourceInput &&value)
CreateServiceTemplateVersionRequest & WithDescription(const Aws::String &value)
CreateServiceTemplateVersionRequest & WithClientToken(const Aws::String &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceTemplateVersionRequest & AddTags(const Tag &value)
CreateServiceTemplateVersionRequest & AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplateInput &&value)
CreateServiceTemplateVersionRequest & WithMajorVersion(const Aws::String &value)
CreateServiceTemplateVersionRequest & WithMajorVersion(Aws::String &&value)
CreateServiceTemplateVersionRequest & AddCompatibleEnvironmentTemplates(const CompatibleEnvironmentTemplateInput &value)
CreateServiceTemplateVersionRequest & WithTemplateName(const Aws::String &value)
CreateServiceTemplateVersionRequest & WithCompatibleEnvironmentTemplates(Aws::Vector< CompatibleEnvironmentTemplateInput > &&value)
CreateServiceTemplateVersionRequest & AddSupportedComponentSources(const ServiceTemplateSupportedComponentSourceType &value)
CreateServiceTemplateVersionRequest & WithSupportedComponentSources(Aws::Vector< ServiceTemplateSupportedComponentSourceType > &&value)
CreateServiceTemplateVersionRequest & WithMajorVersion(const char *value)
void SetCompatibleEnvironmentTemplates(Aws::Vector< CompatibleEnvironmentTemplateInput > &&value)
CreateServiceTemplateVersionRequest & WithDescription(Aws::String &&value)
void SetSupportedComponentSources(const Aws::Vector< ServiceTemplateSupportedComponentSourceType > &value)
CreateServiceTemplateVersionRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< ServiceTemplateSupportedComponentSourceType > & GetSupportedComponentSources() const
CreateServiceTemplateVersionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateServiceTemplateVersionRequest & WithTemplateName(const char *value)
void SetCompatibleEnvironmentTemplates(const Aws::Vector< CompatibleEnvironmentTemplateInput > &value)
AWS_PROTON_API Aws::String SerializePayload() const override
CreateServiceTemplateVersionRequest & WithCompatibleEnvironmentTemplates(const Aws::Vector< CompatibleEnvironmentTemplateInput > &value)
const Aws::Vector< CompatibleEnvironmentTemplateInput > & GetCompatibleEnvironmentTemplates() const
CreateServiceTemplateVersionRequest & WithSource(const TemplateVersionSourceInput &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