AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateComponentRequest.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/ComponentDeploymentUpdateType.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Proton
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PROTON_API UpdateComponentRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateComponent"; }
33
34 AWS_PROTON_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
46 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
47 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
48 inline UpdateComponentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline UpdateComponentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline UpdateComponentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
64 inline const ComponentDeploymentUpdateType& GetDeploymentType() const{ return m_deploymentType; }
65 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
66 inline void SetDeploymentType(const ComponentDeploymentUpdateType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
67 inline void SetDeploymentType(ComponentDeploymentUpdateType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
71
73
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
79 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
80 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 inline UpdateComponentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
82 inline UpdateComponentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
83 inline UpdateComponentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
85
87
90 inline const Aws::String& GetName() const{ return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
94 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
95 inline UpdateComponentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
96 inline UpdateComponentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
97 inline UpdateComponentRequest& WithName(const char* value) { SetName(value); return *this;}
99
101
108 inline const Aws::String& GetServiceInstanceName() const{ return m_serviceInstanceName; }
109 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
110 inline void SetServiceInstanceName(const Aws::String& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = value; }
111 inline void SetServiceInstanceName(Aws::String&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::move(value); }
112 inline void SetServiceInstanceName(const char* value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName.assign(value); }
114 inline UpdateComponentRequest& WithServiceInstanceName(Aws::String&& value) { SetServiceInstanceName(std::move(value)); return *this;}
115 inline UpdateComponentRequest& WithServiceInstanceName(const char* value) { SetServiceInstanceName(value); return *this;}
117
119
126 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
127 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
128 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
129 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
130 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
131 inline UpdateComponentRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
132 inline UpdateComponentRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
133 inline UpdateComponentRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
135
137
141 inline const Aws::String& GetServiceSpec() const{ return m_serviceSpec; }
142 inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; }
143 inline void SetServiceSpec(const Aws::String& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = value; }
144 inline void SetServiceSpec(Aws::String&& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = std::move(value); }
145 inline void SetServiceSpec(const char* value) { m_serviceSpecHasBeenSet = true; m_serviceSpec.assign(value); }
146 inline UpdateComponentRequest& WithServiceSpec(const Aws::String& value) { SetServiceSpec(value); return *this;}
147 inline UpdateComponentRequest& WithServiceSpec(Aws::String&& value) { SetServiceSpec(std::move(value)); return *this;}
148 inline UpdateComponentRequest& WithServiceSpec(const char* value) { SetServiceSpec(value); return *this;}
150
152
157 inline const Aws::String& GetTemplateFile() const{ return m_templateFile; }
158 inline bool TemplateFileHasBeenSet() const { return m_templateFileHasBeenSet; }
159 inline void SetTemplateFile(const Aws::String& value) { m_templateFileHasBeenSet = true; m_templateFile = value; }
160 inline void SetTemplateFile(Aws::String&& value) { m_templateFileHasBeenSet = true; m_templateFile = std::move(value); }
161 inline void SetTemplateFile(const char* value) { m_templateFileHasBeenSet = true; m_templateFile.assign(value); }
162 inline UpdateComponentRequest& WithTemplateFile(const Aws::String& value) { SetTemplateFile(value); return *this;}
163 inline UpdateComponentRequest& WithTemplateFile(Aws::String&& value) { SetTemplateFile(std::move(value)); return *this;}
164 inline UpdateComponentRequest& WithTemplateFile(const char* value) { SetTemplateFile(value); return *this;}
166 private:
167
168 Aws::String m_clientToken;
169 bool m_clientTokenHasBeenSet = false;
170
171 ComponentDeploymentUpdateType m_deploymentType;
172 bool m_deploymentTypeHasBeenSet = false;
173
174 Aws::String m_description;
175 bool m_descriptionHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 Aws::String m_serviceInstanceName;
181 bool m_serviceInstanceNameHasBeenSet = false;
182
183 Aws::String m_serviceName;
184 bool m_serviceNameHasBeenSet = false;
185
186 Aws::String m_serviceSpec;
187 bool m_serviceSpecHasBeenSet = false;
188
189 Aws::String m_templateFile;
190 bool m_templateFileHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace Proton
195} // namespace Aws
void SetDeploymentType(ComponentDeploymentUpdateType &&value)
UpdateComponentRequest & WithDescription(const char *value)
UpdateComponentRequest & WithTemplateFile(const Aws::String &value)
UpdateComponentRequest & WithServiceName(Aws::String &&value)
UpdateComponentRequest & WithName(const char *value)
UpdateComponentRequest & WithServiceInstanceName(const char *value)
UpdateComponentRequest & WithDescription(const Aws::String &value)
UpdateComponentRequest & WithTemplateFile(const char *value)
UpdateComponentRequest & WithClientToken(const Aws::String &value)
UpdateComponentRequest & WithName(Aws::String &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
UpdateComponentRequest & WithDescription(Aws::String &&value)
UpdateComponentRequest & WithTemplateFile(Aws::String &&value)
UpdateComponentRequest & WithServiceName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateComponentRequest & WithServiceInstanceName(Aws::String &&value)
UpdateComponentRequest & WithServiceInstanceName(const Aws::String &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateComponentRequest & WithClientToken(Aws::String &&value)
UpdateComponentRequest & WithDeploymentType(const ComponentDeploymentUpdateType &value)
UpdateComponentRequest & WithServiceName(const char *value)
void SetDeploymentType(const ComponentDeploymentUpdateType &value)
void SetServiceInstanceName(const Aws::String &value)
UpdateComponentRequest & WithDeploymentType(ComponentDeploymentUpdateType &&value)
const ComponentDeploymentUpdateType & GetDeploymentType() const
UpdateComponentRequest & WithServiceSpec(const char *value)
UpdateComponentRequest & WithName(const Aws::String &value)
UpdateComponentRequest & WithServiceSpec(const Aws::String &value)
UpdateComponentRequest & WithServiceSpec(Aws::String &&value)
UpdateComponentRequest & WithClientToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String