AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
30 AWS_PROTON_API CreateServiceTemplateVersionRequest() = default;
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 template<typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<typename ClientTokenT = Aws::String>
53 CreateServiceTemplateVersionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
55
57
62 inline const Aws::Vector<CompatibleEnvironmentTemplateInput>& GetCompatibleEnvironmentTemplates() const { return m_compatibleEnvironmentTemplates; }
63 inline bool CompatibleEnvironmentTemplatesHasBeenSet() const { return m_compatibleEnvironmentTemplatesHasBeenSet; }
64 template<typename CompatibleEnvironmentTemplatesT = Aws::Vector<CompatibleEnvironmentTemplateInput>>
65 void SetCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = std::forward<CompatibleEnvironmentTemplatesT>(value); }
66 template<typename CompatibleEnvironmentTemplatesT = Aws::Vector<CompatibleEnvironmentTemplateInput>>
67 CreateServiceTemplateVersionRequest& WithCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT&& value) { SetCompatibleEnvironmentTemplates(std::forward<CompatibleEnvironmentTemplatesT>(value)); return *this;}
68 template<typename CompatibleEnvironmentTemplatesT = CompatibleEnvironmentTemplateInput>
69 CreateServiceTemplateVersionRequest& AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.emplace_back(std::forward<CompatibleEnvironmentTemplatesT>(value)); return *this; }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 CreateServiceTemplateVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
90 inline const Aws::String& GetMajorVersion() const { return m_majorVersion; }
91 inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; }
92 template<typename MajorVersionT = Aws::String>
93 void SetMajorVersion(MajorVersionT&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::forward<MajorVersionT>(value); }
94 template<typename MajorVersionT = Aws::String>
95 CreateServiceTemplateVersionRequest& WithMajorVersion(MajorVersionT&& value) { SetMajorVersion(std::forward<MajorVersionT>(value)); return *this;}
97
99
103 inline const TemplateVersionSourceInput& GetSource() const { return m_source; }
104 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
105 template<typename SourceT = TemplateVersionSourceInput>
106 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
107 template<typename SourceT = TemplateVersionSourceInput>
108 CreateServiceTemplateVersionRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
110
112
119 inline const Aws::Vector<ServiceTemplateSupportedComponentSourceType>& GetSupportedComponentSources() const { return m_supportedComponentSources; }
120 inline bool SupportedComponentSourcesHasBeenSet() const { return m_supportedComponentSourcesHasBeenSet; }
121 template<typename SupportedComponentSourcesT = Aws::Vector<ServiceTemplateSupportedComponentSourceType>>
122 void SetSupportedComponentSources(SupportedComponentSourcesT&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = std::forward<SupportedComponentSourcesT>(value); }
123 template<typename SupportedComponentSourcesT = Aws::Vector<ServiceTemplateSupportedComponentSourceType>>
124 CreateServiceTemplateVersionRequest& WithSupportedComponentSources(SupportedComponentSourcesT&& value) { SetSupportedComponentSources(std::forward<SupportedComponentSourcesT>(value)); return *this;}
125 inline CreateServiceTemplateVersionRequest& AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(value); return *this; }
127
129
136 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template<typename TagsT = Aws::Vector<Tag>>
139 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
140 template<typename TagsT = Aws::Vector<Tag>>
141 CreateServiceTemplateVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
142 template<typename TagsT = Tag>
143 CreateServiceTemplateVersionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
145
147
150 inline const Aws::String& GetTemplateName() const { return m_templateName; }
151 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
152 template<typename TemplateNameT = Aws::String>
153 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
154 template<typename TemplateNameT = Aws::String>
155 CreateServiceTemplateVersionRequest& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
157 private:
158
160 bool m_clientTokenHasBeenSet = true;
161
162 Aws::Vector<CompatibleEnvironmentTemplateInput> m_compatibleEnvironmentTemplates;
163 bool m_compatibleEnvironmentTemplatesHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167
168 Aws::String m_majorVersion;
169 bool m_majorVersionHasBeenSet = false;
170
171 TemplateVersionSourceInput m_source;
172 bool m_sourceHasBeenSet = false;
173
175 bool m_supportedComponentSourcesHasBeenSet = false;
176
177 Aws::Vector<Tag> m_tags;
178 bool m_tagsHasBeenSet = false;
179
180 Aws::String m_templateName;
181 bool m_templateNameHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Proton
186} // namespace Aws
CreateServiceTemplateVersionRequest & AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT &&value)
void SetCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT &&value)
CreateServiceTemplateVersionRequest & AddTags(TagsT &&value)
CreateServiceTemplateVersionRequest & WithTemplateName(TemplateNameT &&value)
CreateServiceTemplateVersionRequest & WithSource(SourceT &&value)
CreateServiceTemplateVersionRequest & WithSupportedComponentSources(SupportedComponentSourcesT &&value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceTemplateVersionRequest & WithCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT &&value)
CreateServiceTemplateVersionRequest & WithTags(TagsT &&value)
CreateServiceTemplateVersionRequest & WithDescription(DescriptionT &&value)
CreateServiceTemplateVersionRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< ServiceTemplateSupportedComponentSourceType > & GetSupportedComponentSources() const
CreateServiceTemplateVersionRequest & AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType value)
CreateServiceTemplateVersionRequest & WithMajorVersion(MajorVersionT &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
const Aws::Vector< CompatibleEnvironmentTemplateInput > & GetCompatibleEnvironmentTemplates() const
static Aws::Utils::UUID PseudoRandomUUID()
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