AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetCompatibleEnvironmentTemplates(const Aws::Vector<CompatibleEnvironmentTemplateInput>& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = value; }
50 inline void SetCompatibleEnvironmentTemplates(Aws::Vector<CompatibleEnvironmentTemplateInput>&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = std::move(value); }
53 inline UpdateServiceTemplateVersionRequest& AddCompatibleEnvironmentTemplates(const CompatibleEnvironmentTemplateInput& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.push_back(value); return *this; }
54 inline UpdateServiceTemplateVersionRequest& AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplateInput&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline UpdateServiceTemplateVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline UpdateServiceTemplateVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
76 inline const Aws::String& GetMajorVersion() const{ return m_majorVersion; }
77 inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; }
78 inline void SetMajorVersion(const Aws::String& value) { m_majorVersionHasBeenSet = true; m_majorVersion = value; }
79 inline void SetMajorVersion(Aws::String&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::move(value); }
80 inline void SetMajorVersion(const char* value) { m_majorVersionHasBeenSet = true; m_majorVersion.assign(value); }
82 inline UpdateServiceTemplateVersionRequest& WithMajorVersion(Aws::String&& value) { SetMajorVersion(std::move(value)); return *this;}
83 inline UpdateServiceTemplateVersionRequest& WithMajorVersion(const char* value) { SetMajorVersion(value); return *this;}
85
87
91 inline const Aws::String& GetMinorVersion() const{ return m_minorVersion; }
92 inline bool MinorVersionHasBeenSet() const { return m_minorVersionHasBeenSet; }
93 inline void SetMinorVersion(const Aws::String& value) { m_minorVersionHasBeenSet = true; m_minorVersion = value; }
94 inline void SetMinorVersion(Aws::String&& value) { m_minorVersionHasBeenSet = true; m_minorVersion = std::move(value); }
95 inline void SetMinorVersion(const char* value) { m_minorVersionHasBeenSet = true; m_minorVersion.assign(value); }
97 inline UpdateServiceTemplateVersionRequest& WithMinorVersion(Aws::String&& value) { SetMinorVersion(std::move(value)); return *this;}
98 inline UpdateServiceTemplateVersionRequest& WithMinorVersion(const char* value) { SetMinorVersion(value); return *this;}
100
102
105 inline const TemplateVersionStatus& GetStatus() const{ return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(const TemplateVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
108 inline void SetStatus(TemplateVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
110 inline UpdateServiceTemplateVersionRequest& WithStatus(TemplateVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
112
114
124 inline const Aws::Vector<ServiceTemplateSupportedComponentSourceType>& GetSupportedComponentSources() const{ return m_supportedComponentSources; }
125 inline bool SupportedComponentSourcesHasBeenSet() const { return m_supportedComponentSourcesHasBeenSet; }
126 inline void SetSupportedComponentSources(const Aws::Vector<ServiceTemplateSupportedComponentSourceType>& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = value; }
127 inline void SetSupportedComponentSources(Aws::Vector<ServiceTemplateSupportedComponentSourceType>&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = std::move(value); }
130 inline UpdateServiceTemplateVersionRequest& AddSupportedComponentSources(const ServiceTemplateSupportedComponentSourceType& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(value); return *this; }
131 inline UpdateServiceTemplateVersionRequest& AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(std::move(value)); return *this; }
133
135
138 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
139 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
140 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
141 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
142 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
144 inline UpdateServiceTemplateVersionRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
145 inline UpdateServiceTemplateVersionRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
147 private:
148
149 Aws::Vector<CompatibleEnvironmentTemplateInput> m_compatibleEnvironmentTemplates;
150 bool m_compatibleEnvironmentTemplatesHasBeenSet = false;
151
152 Aws::String m_description;
153 bool m_descriptionHasBeenSet = false;
154
155 Aws::String m_majorVersion;
156 bool m_majorVersionHasBeenSet = false;
157
158 Aws::String m_minorVersion;
159 bool m_minorVersionHasBeenSet = false;
160
161 TemplateVersionStatus m_status;
162 bool m_statusHasBeenSet = false;
163
165 bool m_supportedComponentSourcesHasBeenSet = false;
166
167 Aws::String m_templateName;
168 bool m_templateNameHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Proton
173} // namespace Aws
UpdateServiceTemplateVersionRequest & AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplateInput &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
UpdateServiceTemplateVersionRequest & WithDescription(Aws::String &&value)
UpdateServiceTemplateVersionRequest & WithSupportedComponentSources(const Aws::Vector< ServiceTemplateSupportedComponentSourceType > &value)
UpdateServiceTemplateVersionRequest & WithStatus(const TemplateVersionStatus &value)
UpdateServiceTemplateVersionRequest & WithMajorVersion(const char *value)
UpdateServiceTemplateVersionRequest & WithMinorVersion(const char *value)
UpdateServiceTemplateVersionRequest & WithSupportedComponentSources(Aws::Vector< ServiceTemplateSupportedComponentSourceType > &&value)
UpdateServiceTemplateVersionRequest & AddCompatibleEnvironmentTemplates(const CompatibleEnvironmentTemplateInput &value)
UpdateServiceTemplateVersionRequest & WithMinorVersion(const Aws::String &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< CompatibleEnvironmentTemplateInput > & GetCompatibleEnvironmentTemplates() const
UpdateServiceTemplateVersionRequest & AddSupportedComponentSources(const ServiceTemplateSupportedComponentSourceType &value)
void SetSupportedComponentSources(const Aws::Vector< ServiceTemplateSupportedComponentSourceType > &value)
UpdateServiceTemplateVersionRequest & WithCompatibleEnvironmentTemplates(const Aws::Vector< CompatibleEnvironmentTemplateInput > &value)
UpdateServiceTemplateVersionRequest & WithDescription(const Aws::String &value)
void SetCompatibleEnvironmentTemplates(Aws::Vector< CompatibleEnvironmentTemplateInput > &&value)
UpdateServiceTemplateVersionRequest & WithDescription(const char *value)
UpdateServiceTemplateVersionRequest & WithMajorVersion(const Aws::String &value)
void SetSupportedComponentSources(Aws::Vector< ServiceTemplateSupportedComponentSourceType > &&value)
UpdateServiceTemplateVersionRequest & WithCompatibleEnvironmentTemplates(Aws::Vector< CompatibleEnvironmentTemplateInput > &&value)
UpdateServiceTemplateVersionRequest & WithStatus(TemplateVersionStatus &&value)
UpdateServiceTemplateVersionRequest & WithMajorVersion(Aws::String &&value)
const Aws::Vector< ServiceTemplateSupportedComponentSourceType > & GetSupportedComponentSources() const
UpdateServiceTemplateVersionRequest & AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType &&value)
UpdateServiceTemplateVersionRequest & WithMinorVersion(Aws::String &&value)
void SetCompatibleEnvironmentTemplates(const Aws::Vector< CompatibleEnvironmentTemplateInput > &value)
UpdateServiceTemplateVersionRequest & WithTemplateName(const Aws::String &value)
UpdateServiceTemplateVersionRequest & WithTemplateName(const char *value)
UpdateServiceTemplateVersionRequest & WithTemplateName(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