AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEnvironmentTemplateVersionRequest.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/proton/model/TemplateVersionStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Proton
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironmentTemplateVersion"; }
32
33 AWS_PROTON_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetDescription() const{ return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
45 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
46 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
48 inline UpdateEnvironmentTemplateVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
49 inline UpdateEnvironmentTemplateVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
51
53
57 inline const Aws::String& GetMajorVersion() const{ return m_majorVersion; }
58 inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; }
59 inline void SetMajorVersion(const Aws::String& value) { m_majorVersionHasBeenSet = true; m_majorVersion = value; }
60 inline void SetMajorVersion(Aws::String&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::move(value); }
61 inline void SetMajorVersion(const char* value) { m_majorVersionHasBeenSet = true; m_majorVersion.assign(value); }
63 inline UpdateEnvironmentTemplateVersionRequest& WithMajorVersion(Aws::String&& value) { SetMajorVersion(std::move(value)); return *this;}
64 inline UpdateEnvironmentTemplateVersionRequest& WithMajorVersion(const char* value) { SetMajorVersion(value); return *this;}
66
68
72 inline const Aws::String& GetMinorVersion() const{ return m_minorVersion; }
73 inline bool MinorVersionHasBeenSet() const { return m_minorVersionHasBeenSet; }
74 inline void SetMinorVersion(const Aws::String& value) { m_minorVersionHasBeenSet = true; m_minorVersion = value; }
75 inline void SetMinorVersion(Aws::String&& value) { m_minorVersionHasBeenSet = true; m_minorVersion = std::move(value); }
76 inline void SetMinorVersion(const char* value) { m_minorVersionHasBeenSet = true; m_minorVersion.assign(value); }
78 inline UpdateEnvironmentTemplateVersionRequest& WithMinorVersion(Aws::String&& value) { SetMinorVersion(std::move(value)); return *this;}
79 inline UpdateEnvironmentTemplateVersionRequest& WithMinorVersion(const char* value) { SetMinorVersion(value); return *this;}
81
83
86 inline const TemplateVersionStatus& GetStatus() const{ return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(const TemplateVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
89 inline void SetStatus(TemplateVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
91 inline UpdateEnvironmentTemplateVersionRequest& WithStatus(TemplateVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
99 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
100 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
101 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
102 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
104 inline UpdateEnvironmentTemplateVersionRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
105 inline UpdateEnvironmentTemplateVersionRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
107 private:
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
112 Aws::String m_majorVersion;
113 bool m_majorVersionHasBeenSet = false;
114
115 Aws::String m_minorVersion;
116 bool m_minorVersionHasBeenSet = false;
117
118 TemplateVersionStatus m_status;
119 bool m_statusHasBeenSet = false;
120
121 Aws::String m_templateName;
122 bool m_templateNameHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Proton
127} // namespace Aws
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEnvironmentTemplateVersionRequest & WithStatus(const TemplateVersionStatus &value)
UpdateEnvironmentTemplateVersionRequest & WithDescription(Aws::String &&value)
UpdateEnvironmentTemplateVersionRequest & WithMajorVersion(const Aws::String &value)
UpdateEnvironmentTemplateVersionRequest & WithMinorVersion(Aws::String &&value)
UpdateEnvironmentTemplateVersionRequest & WithMinorVersion(const char *value)
UpdateEnvironmentTemplateVersionRequest & WithTemplateName(Aws::String &&value)
UpdateEnvironmentTemplateVersionRequest & WithMajorVersion(Aws::String &&value)
UpdateEnvironmentTemplateVersionRequest & WithMajorVersion(const char *value)
UpdateEnvironmentTemplateVersionRequest & WithTemplateName(const Aws::String &value)
AWS_PROTON_API Aws::String SerializePayload() const override
UpdateEnvironmentTemplateVersionRequest & WithDescription(const Aws::String &value)
UpdateEnvironmentTemplateVersionRequest & WithMinorVersion(const Aws::String &value)
UpdateEnvironmentTemplateVersionRequest & WithStatus(TemplateVersionStatus &&value)
UpdateEnvironmentTemplateVersionRequest & WithDescription(const char *value)
UpdateEnvironmentTemplateVersionRequest & WithTemplateName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String