AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateServiceInstanceRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/proton/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Proton
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceInstance"; }
34
35 AWS_PROTON_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline CreateServiceInstanceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline CreateServiceInstanceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline CreateServiceInstanceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline CreateServiceInstanceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline CreateServiceInstanceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline CreateServiceInstanceRequest& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
73 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
74 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
75 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
76 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
77 inline CreateServiceInstanceRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
78 inline CreateServiceInstanceRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
79 inline CreateServiceInstanceRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
81
83
86 inline const Aws::String& GetSpec() const{ return m_spec; }
87 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
88 inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; }
89 inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
90 inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); }
91 inline CreateServiceInstanceRequest& WithSpec(const Aws::String& value) { SetSpec(value); return *this;}
92 inline CreateServiceInstanceRequest& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;}
93 inline CreateServiceInstanceRequest& WithSpec(const char* value) { SetSpec(value); return *this;}
95
97
103 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
106 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
107 inline CreateServiceInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
108 inline CreateServiceInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
109 inline CreateServiceInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
110 inline CreateServiceInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
112
114
118 inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; }
119 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
120 inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; }
121 inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); }
122 inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); }
125 inline CreateServiceInstanceRequest& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;}
127
129
133 inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; }
134 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
135 inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; }
136 inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); }
137 inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); }
140 inline CreateServiceInstanceRequest& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;}
142 private:
143
144 Aws::String m_clientToken;
145 bool m_clientTokenHasBeenSet = false;
146
147 Aws::String m_name;
148 bool m_nameHasBeenSet = false;
149
150 Aws::String m_serviceName;
151 bool m_serviceNameHasBeenSet = false;
152
153 Aws::String m_spec;
154 bool m_specHasBeenSet = false;
155
156 Aws::Vector<Tag> m_tags;
157 bool m_tagsHasBeenSet = false;
158
159 Aws::String m_templateMajorVersion;
160 bool m_templateMajorVersionHasBeenSet = false;
161
162 Aws::String m_templateMinorVersion;
163 bool m_templateMinorVersionHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace Proton
168} // namespace Aws
CreateServiceInstanceRequest & WithServiceName(const Aws::String &value)
CreateServiceInstanceRequest & AddTags(const Tag &value)
CreateServiceInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateServiceInstanceRequest & WithClientToken(const Aws::String &value)
CreateServiceInstanceRequest & WithTemplateMinorVersion(Aws::String &&value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
CreateServiceInstanceRequest & WithName(const char *value)
CreateServiceInstanceRequest & WithSpec(const char *value)
CreateServiceInstanceRequest & WithName(Aws::String &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
CreateServiceInstanceRequest & WithServiceName(Aws::String &&value)
CreateServiceInstanceRequest & WithTemplateMinorVersion(const Aws::String &value)
CreateServiceInstanceRequest & AddTags(Tag &&value)
CreateServiceInstanceRequest & WithName(const Aws::String &value)
CreateServiceInstanceRequest & WithTemplateMajorVersion(const char *value)
CreateServiceInstanceRequest & WithClientToken(const char *value)
CreateServiceInstanceRequest & WithTemplateMajorVersion(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateServiceInstanceRequest & WithServiceName(const char *value)
CreateServiceInstanceRequest & WithSpec(Aws::String &&value)
CreateServiceInstanceRequest & WithTemplateMajorVersion(const Aws::String &value)
CreateServiceInstanceRequest & WithClientToken(Aws::String &&value)
CreateServiceInstanceRequest & WithSpec(const Aws::String &value)
CreateServiceInstanceRequest & WithTemplateMinorVersion(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