AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateServiceTemplateVersionRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/proton/model/TemplateVersionStatus.h>
12#include <aws/proton/model/CompatibleEnvironmentTemplateInput.h>
13#include <aws/proton/model/ServiceTemplateSupportedComponentSourceType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Proton
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_PROTON_API UpdateServiceTemplateVersionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateServiceTemplateVersion"; }
35
36 AWS_PROTON_API Aws::String SerializePayload() const override;
37
39
40
42
47 inline const Aws::Vector<CompatibleEnvironmentTemplateInput>& GetCompatibleEnvironmentTemplates() const { return m_compatibleEnvironmentTemplates; }
48 inline bool CompatibleEnvironmentTemplatesHasBeenSet() const { return m_compatibleEnvironmentTemplatesHasBeenSet; }
49 template<typename CompatibleEnvironmentTemplatesT = Aws::Vector<CompatibleEnvironmentTemplateInput>>
50 void SetCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = std::forward<CompatibleEnvironmentTemplatesT>(value); }
51 template<typename CompatibleEnvironmentTemplatesT = Aws::Vector<CompatibleEnvironmentTemplateInput>>
52 UpdateServiceTemplateVersionRequest& WithCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT&& value) { SetCompatibleEnvironmentTemplates(std::forward<CompatibleEnvironmentTemplatesT>(value)); return *this;}
53 template<typename CompatibleEnvironmentTemplatesT = CompatibleEnvironmentTemplateInput>
54 UpdateServiceTemplateVersionRequest& AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.emplace_back(std::forward<CompatibleEnvironmentTemplatesT>(value)); return *this; }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 UpdateServiceTemplateVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
74 inline const Aws::String& GetMajorVersion() const { return m_majorVersion; }
75 inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; }
76 template<typename MajorVersionT = Aws::String>
77 void SetMajorVersion(MajorVersionT&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::forward<MajorVersionT>(value); }
78 template<typename MajorVersionT = Aws::String>
79 UpdateServiceTemplateVersionRequest& WithMajorVersion(MajorVersionT&& value) { SetMajorVersion(std::forward<MajorVersionT>(value)); return *this;}
81
83
87 inline const Aws::String& GetMinorVersion() const { return m_minorVersion; }
88 inline bool MinorVersionHasBeenSet() const { return m_minorVersionHasBeenSet; }
89 template<typename MinorVersionT = Aws::String>
90 void SetMinorVersion(MinorVersionT&& value) { m_minorVersionHasBeenSet = true; m_minorVersion = std::forward<MinorVersionT>(value); }
91 template<typename MinorVersionT = Aws::String>
92 UpdateServiceTemplateVersionRequest& WithMinorVersion(MinorVersionT&& value) { SetMinorVersion(std::forward<MinorVersionT>(value)); return *this;}
94
96
99 inline TemplateVersionStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(TemplateVersionStatus value) { m_statusHasBeenSet = true; m_status = value; }
104
106
116 inline const Aws::Vector<ServiceTemplateSupportedComponentSourceType>& GetSupportedComponentSources() const { return m_supportedComponentSources; }
117 inline bool SupportedComponentSourcesHasBeenSet() const { return m_supportedComponentSourcesHasBeenSet; }
118 template<typename SupportedComponentSourcesT = Aws::Vector<ServiceTemplateSupportedComponentSourceType>>
119 void SetSupportedComponentSources(SupportedComponentSourcesT&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = std::forward<SupportedComponentSourcesT>(value); }
120 template<typename SupportedComponentSourcesT = Aws::Vector<ServiceTemplateSupportedComponentSourceType>>
121 UpdateServiceTemplateVersionRequest& WithSupportedComponentSources(SupportedComponentSourcesT&& value) { SetSupportedComponentSources(std::forward<SupportedComponentSourcesT>(value)); return *this;}
122 inline UpdateServiceTemplateVersionRequest& AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(value); return *this; }
124
126
129 inline const Aws::String& GetTemplateName() const { return m_templateName; }
130 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
131 template<typename TemplateNameT = Aws::String>
132 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
133 template<typename TemplateNameT = Aws::String>
134 UpdateServiceTemplateVersionRequest& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
136 private:
137
138 Aws::Vector<CompatibleEnvironmentTemplateInput> m_compatibleEnvironmentTemplates;
139 bool m_compatibleEnvironmentTemplatesHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
144 Aws::String m_majorVersion;
145 bool m_majorVersionHasBeenSet = false;
146
147 Aws::String m_minorVersion;
148 bool m_minorVersionHasBeenSet = false;
149
151 bool m_statusHasBeenSet = false;
152
154 bool m_supportedComponentSourcesHasBeenSet = false;
155
156 Aws::String m_templateName;
157 bool m_templateNameHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Proton
162} // namespace Aws
AWS_PROTON_API Aws::String SerializePayload() const override
UpdateServiceTemplateVersionRequest & WithStatus(TemplateVersionStatus value)
UpdateServiceTemplateVersionRequest & AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType value)
UpdateServiceTemplateVersionRequest & WithSupportedComponentSources(SupportedComponentSourcesT &&value)
UpdateServiceTemplateVersionRequest & AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT &&value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< CompatibleEnvironmentTemplateInput > & GetCompatibleEnvironmentTemplates() const
UpdateServiceTemplateVersionRequest & WithMinorVersion(MinorVersionT &&value)
void SetCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT &&value)
UpdateServiceTemplateVersionRequest & WithCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT &&value)
UpdateServiceTemplateVersionRequest & WithMajorVersion(MajorVersionT &&value)
const Aws::Vector< ServiceTemplateSupportedComponentSourceType > & GetSupportedComponentSources() const
UpdateServiceTemplateVersionRequest & WithTemplateName(TemplateNameT &&value)
UpdateServiceTemplateVersionRequest & WithDescription(DescriptionT &&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