AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEnvironmentTemplateVersionRequest.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/TemplateVersionSourceInput.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/proton/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
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 "CreateEnvironmentTemplateVersion"; }
35
36 AWS_PROTON_API Aws::String SerializePayload() const override;
37
39
40
42
47 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
51 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
53 inline CreateEnvironmentTemplateVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
54 inline CreateEnvironmentTemplateVersionRequest& WithClientToken(const char* value) { SetClientToken(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 CreateEnvironmentTemplateVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline CreateEnvironmentTemplateVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
77 inline const Aws::String& GetMajorVersion() const{ return m_majorVersion; }
78 inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; }
79 inline void SetMajorVersion(const Aws::String& value) { m_majorVersionHasBeenSet = true; m_majorVersion = value; }
80 inline void SetMajorVersion(Aws::String&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::move(value); }
81 inline void SetMajorVersion(const char* value) { m_majorVersionHasBeenSet = true; m_majorVersion.assign(value); }
83 inline CreateEnvironmentTemplateVersionRequest& WithMajorVersion(Aws::String&& value) { SetMajorVersion(std::move(value)); return *this;}
84 inline CreateEnvironmentTemplateVersionRequest& WithMajorVersion(const char* value) { SetMajorVersion(value); return *this;}
86
88
92 inline const TemplateVersionSourceInput& GetSource() const{ return m_source; }
93 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
94 inline void SetSource(const TemplateVersionSourceInput& value) { m_sourceHasBeenSet = true; m_source = value; }
95 inline void SetSource(TemplateVersionSourceInput&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
99
101
108 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
111 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
112 inline CreateEnvironmentTemplateVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
113 inline CreateEnvironmentTemplateVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
114 inline CreateEnvironmentTemplateVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
115 inline CreateEnvironmentTemplateVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
117
119
122 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
123 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
124 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
125 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
126 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
128 inline CreateEnvironmentTemplateVersionRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
129 inline CreateEnvironmentTemplateVersionRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
131 private:
132
133 Aws::String m_clientToken;
134 bool m_clientTokenHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 Aws::String m_majorVersion;
140 bool m_majorVersionHasBeenSet = false;
141
143 bool m_sourceHasBeenSet = false;
144
145 Aws::Vector<Tag> m_tags;
146 bool m_tagsHasBeenSet = false;
147
148 Aws::String m_templateName;
149 bool m_templateNameHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace Proton
154} // namespace Aws
CreateEnvironmentTemplateVersionRequest & WithMajorVersion(const Aws::String &value)
CreateEnvironmentTemplateVersionRequest & WithDescription(const char *value)
CreateEnvironmentTemplateVersionRequest & WithMajorVersion(Aws::String &&value)
CreateEnvironmentTemplateVersionRequest & AddTags(const Tag &value)
CreateEnvironmentTemplateVersionRequest & WithClientToken(Aws::String &&value)
CreateEnvironmentTemplateVersionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEnvironmentTemplateVersionRequest & WithClientToken(const Aws::String &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEnvironmentTemplateVersionRequest & WithSource(const TemplateVersionSourceInput &value)
CreateEnvironmentTemplateVersionRequest & WithMajorVersion(const char *value)
CreateEnvironmentTemplateVersionRequest & WithTemplateName(Aws::String &&value)
CreateEnvironmentTemplateVersionRequest & WithDescription(const Aws::String &value)
CreateEnvironmentTemplateVersionRequest & WithSource(TemplateVersionSourceInput &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
CreateEnvironmentTemplateVersionRequest & WithTemplateName(const Aws::String &value)
CreateEnvironmentTemplateVersionRequest & WithDescription(Aws::String &&value)
CreateEnvironmentTemplateVersionRequest & WithClientToken(const char *value)
CreateEnvironmentTemplateVersionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEnvironmentTemplateVersionRequest & WithTemplateName(const char *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