AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateServiceInstanceRequest.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/DeploymentUpdateType.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:
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 "UpdateServiceInstance"; }
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 UpdateServiceInstanceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline UpdateServiceInstanceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline UpdateServiceInstanceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
72 inline const DeploymentUpdateType& GetDeploymentType() const{ return m_deploymentType; }
73 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
74 inline void SetDeploymentType(const DeploymentUpdateType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
75 inline void SetDeploymentType(DeploymentUpdateType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
79
81
84 inline const Aws::String& GetName() const{ return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
87 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
88 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
89 inline UpdateServiceInstanceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
90 inline UpdateServiceInstanceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
91 inline UpdateServiceInstanceRequest& WithName(const char* value) { SetName(value); return *this;}
93
95
98 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
99 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
100 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
101 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
102 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
103 inline UpdateServiceInstanceRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
104 inline UpdateServiceInstanceRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
105 inline UpdateServiceInstanceRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
107
109
112 inline const Aws::String& GetSpec() const{ return m_spec; }
113 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
114 inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; }
115 inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
116 inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); }
117 inline UpdateServiceInstanceRequest& WithSpec(const Aws::String& value) { SetSpec(value); return *this;}
118 inline UpdateServiceInstanceRequest& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;}
119 inline UpdateServiceInstanceRequest& WithSpec(const char* value) { SetSpec(value); return *this;}
121
123
126 inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; }
127 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
128 inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; }
129 inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); }
130 inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); }
133 inline UpdateServiceInstanceRequest& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;}
135
137
140 inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; }
141 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
142 inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; }
143 inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); }
144 inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); }
147 inline UpdateServiceInstanceRequest& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;}
149 private:
150
151 Aws::String m_clientToken;
152 bool m_clientTokenHasBeenSet = false;
153
154 DeploymentUpdateType m_deploymentType;
155 bool m_deploymentTypeHasBeenSet = false;
156
157 Aws::String m_name;
158 bool m_nameHasBeenSet = false;
159
160 Aws::String m_serviceName;
161 bool m_serviceNameHasBeenSet = false;
162
163 Aws::String m_spec;
164 bool m_specHasBeenSet = false;
165
166 Aws::String m_templateMajorVersion;
167 bool m_templateMajorVersionHasBeenSet = false;
168
169 Aws::String m_templateMinorVersion;
170 bool m_templateMinorVersionHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Proton
175} // namespace Aws
UpdateServiceInstanceRequest & WithClientToken(const char *value)
UpdateServiceInstanceRequest & WithDeploymentType(const DeploymentUpdateType &value)
UpdateServiceInstanceRequest & WithClientToken(const Aws::String &value)
UpdateServiceInstanceRequest & WithTemplateMajorVersion(const char *value)
UpdateServiceInstanceRequest & WithClientToken(Aws::String &&value)
UpdateServiceInstanceRequest & WithTemplateMajorVersion(Aws::String &&value)
UpdateServiceInstanceRequest & WithTemplateMajorVersion(const Aws::String &value)
UpdateServiceInstanceRequest & WithServiceName(const Aws::String &value)
AWS_PROTON_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateServiceInstanceRequest & WithName(Aws::String &&value)
UpdateServiceInstanceRequest & WithSpec(const Aws::String &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDeploymentType(const DeploymentUpdateType &value)
UpdateServiceInstanceRequest & WithName(const Aws::String &value)
UpdateServiceInstanceRequest & WithDeploymentType(DeploymentUpdateType &&value)
UpdateServiceInstanceRequest & WithSpec(Aws::String &&value)
UpdateServiceInstanceRequest & WithTemplateMinorVersion(const char *value)
UpdateServiceInstanceRequest & WithTemplateMinorVersion(Aws::String &&value)
UpdateServiceInstanceRequest & WithTemplateMinorVersion(const Aws::String &value)
UpdateServiceInstanceRequest & WithServiceName(const char *value)
UpdateServiceInstanceRequest & WithName(const char *value)
UpdateServiceInstanceRequest & WithSpec(const char *value)
UpdateServiceInstanceRequest & WithServiceName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String