AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
47 template<typename ClientTokenT = Aws::String>
48 UpdateComponentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
50
52
62 inline ComponentDeploymentUpdateType GetDeploymentType() const { return m_deploymentType; }
63 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
64 inline void SetDeploymentType(ComponentDeploymentUpdateType value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 UpdateComponentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template<typename NameT = Aws::String>
87 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
88 template<typename NameT = Aws::String>
89 UpdateComponentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
91
93
100 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
101 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
102 template<typename ServiceInstanceNameT = Aws::String>
103 void SetServiceInstanceName(ServiceInstanceNameT&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value); }
104 template<typename ServiceInstanceNameT = Aws::String>
105 UpdateComponentRequest& WithServiceInstanceName(ServiceInstanceNameT&& value) { SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value)); return *this;}
107
109
116 inline const Aws::String& GetServiceName() const { return m_serviceName; }
117 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
118 template<typename ServiceNameT = Aws::String>
119 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
120 template<typename ServiceNameT = Aws::String>
121 UpdateComponentRequest& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
123
125
129 inline const Aws::String& GetServiceSpec() const { return m_serviceSpec; }
130 inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; }
131 template<typename ServiceSpecT = Aws::String>
132 void SetServiceSpec(ServiceSpecT&& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = std::forward<ServiceSpecT>(value); }
133 template<typename ServiceSpecT = Aws::String>
134 UpdateComponentRequest& WithServiceSpec(ServiceSpecT&& value) { SetServiceSpec(std::forward<ServiceSpecT>(value)); return *this;}
136
138
143 inline const Aws::String& GetTemplateFile() const { return m_templateFile; }
144 inline bool TemplateFileHasBeenSet() const { return m_templateFileHasBeenSet; }
145 template<typename TemplateFileT = Aws::String>
146 void SetTemplateFile(TemplateFileT&& value) { m_templateFileHasBeenSet = true; m_templateFile = std::forward<TemplateFileT>(value); }
147 template<typename TemplateFileT = Aws::String>
148 UpdateComponentRequest& WithTemplateFile(TemplateFileT&& value) { SetTemplateFile(std::forward<TemplateFileT>(value)); return *this;}
150 private:
151
153 bool m_clientTokenHasBeenSet = true;
154
156 bool m_deploymentTypeHasBeenSet = false;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_serviceInstanceName;
165 bool m_serviceInstanceNameHasBeenSet = false;
166
167 Aws::String m_serviceName;
168 bool m_serviceNameHasBeenSet = false;
169
170 Aws::String m_serviceSpec;
171 bool m_serviceSpecHasBeenSet = false;
172
173 Aws::String m_templateFile;
174 bool m_templateFileHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace Proton
179} // namespace Aws
UpdateComponentRequest & WithClientToken(ClientTokenT &&value)
UpdateComponentRequest & WithTemplateFile(TemplateFileT &&value)
UpdateComponentRequest & WithDeploymentType(ComponentDeploymentUpdateType value)
UpdateComponentRequest & WithServiceInstanceName(ServiceInstanceNameT &&value)
void SetServiceInstanceName(ServiceInstanceNameT &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
UpdateComponentRequest & WithDescription(DescriptionT &&value)
UpdateComponentRequest & WithName(NameT &&value)
void SetDeploymentType(ComponentDeploymentUpdateType value)
virtual const char * GetServiceRequestName() const override
ComponentDeploymentUpdateType GetDeploymentType() const
AWS_PROTON_API UpdateComponentRequest()=default
UpdateComponentRequest & WithServiceSpec(ServiceSpecT &&value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateComponentRequest & WithServiceName(ServiceNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String