AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateServiceRequest.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/AppRunnerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apprunner/model/SourceConfiguration.h>
11#include <aws/apprunner/model/InstanceConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/apprunner/model/EncryptionConfiguration.h>
14#include <aws/apprunner/model/HealthCheckConfiguration.h>
15#include <aws/apprunner/model/NetworkConfiguration.h>
16#include <aws/apprunner/model/ServiceObservabilityConfiguration.h>
17#include <aws/apprunner/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace AppRunner
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_APPRUNNER_API CreateServiceRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateService"; }
39
40 AWS_APPRUNNER_API Aws::String SerializePayload() const override;
41
43
44
46
51 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
52 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
53 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
54 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
55 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
56 inline CreateServiceRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
57 inline CreateServiceRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
58 inline CreateServiceRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
60
62
66 inline const SourceConfiguration& GetSourceConfiguration() const{ return m_sourceConfiguration; }
67 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
68 inline void SetSourceConfiguration(const SourceConfiguration& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = value; }
69 inline void SetSourceConfiguration(SourceConfiguration&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::move(value); }
73
75
78 inline const InstanceConfiguration& GetInstanceConfiguration() const{ return m_instanceConfiguration; }
79 inline bool InstanceConfigurationHasBeenSet() const { return m_instanceConfigurationHasBeenSet; }
80 inline void SetInstanceConfiguration(const InstanceConfiguration& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = value; }
81 inline void SetInstanceConfiguration(InstanceConfiguration&& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = std::move(value); }
85
87
91 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline CreateServiceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline CreateServiceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline CreateServiceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline CreateServiceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100
102
107 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
108 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
109 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
110 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
114
116
120 inline const HealthCheckConfiguration& GetHealthCheckConfiguration() const{ return m_healthCheckConfiguration; }
121 inline bool HealthCheckConfigurationHasBeenSet() const { return m_healthCheckConfigurationHasBeenSet; }
122 inline void SetHealthCheckConfiguration(const HealthCheckConfiguration& value) { m_healthCheckConfigurationHasBeenSet = true; m_healthCheckConfiguration = value; }
123 inline void SetHealthCheckConfiguration(HealthCheckConfiguration&& value) { m_healthCheckConfigurationHasBeenSet = true; m_healthCheckConfiguration = std::move(value); }
127
129
140 inline const Aws::String& GetAutoScalingConfigurationArn() const{ return m_autoScalingConfigurationArn; }
141 inline bool AutoScalingConfigurationArnHasBeenSet() const { return m_autoScalingConfigurationArnHasBeenSet; }
142 inline void SetAutoScalingConfigurationArn(const Aws::String& value) { m_autoScalingConfigurationArnHasBeenSet = true; m_autoScalingConfigurationArn = value; }
143 inline void SetAutoScalingConfigurationArn(Aws::String&& value) { m_autoScalingConfigurationArnHasBeenSet = true; m_autoScalingConfigurationArn = std::move(value); }
144 inline void SetAutoScalingConfigurationArn(const char* value) { m_autoScalingConfigurationArnHasBeenSet = true; m_autoScalingConfigurationArn.assign(value); }
149
151
155 inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
156 inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
157 inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
158 inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
162
164
167 inline const ServiceObservabilityConfiguration& GetObservabilityConfiguration() const{ return m_observabilityConfiguration; }
168 inline bool ObservabilityConfigurationHasBeenSet() const { return m_observabilityConfigurationHasBeenSet; }
169 inline void SetObservabilityConfiguration(const ServiceObservabilityConfiguration& value) { m_observabilityConfigurationHasBeenSet = true; m_observabilityConfiguration = value; }
170 inline void SetObservabilityConfiguration(ServiceObservabilityConfiguration&& value) { m_observabilityConfigurationHasBeenSet = true; m_observabilityConfiguration = std::move(value); }
174 private:
175
176 Aws::String m_serviceName;
177 bool m_serviceNameHasBeenSet = false;
178
179 SourceConfiguration m_sourceConfiguration;
180 bool m_sourceConfigurationHasBeenSet = false;
181
182 InstanceConfiguration m_instanceConfiguration;
183 bool m_instanceConfigurationHasBeenSet = false;
184
185 Aws::Vector<Tag> m_tags;
186 bool m_tagsHasBeenSet = false;
187
188 EncryptionConfiguration m_encryptionConfiguration;
189 bool m_encryptionConfigurationHasBeenSet = false;
190
191 HealthCheckConfiguration m_healthCheckConfiguration;
192 bool m_healthCheckConfigurationHasBeenSet = false;
193
194 Aws::String m_autoScalingConfigurationArn;
195 bool m_autoScalingConfigurationArnHasBeenSet = false;
196
197 NetworkConfiguration m_networkConfiguration;
198 bool m_networkConfigurationHasBeenSet = false;
199
200 ServiceObservabilityConfiguration m_observabilityConfiguration;
201 bool m_observabilityConfigurationHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace AppRunner
206} // namespace Aws
CreateServiceRequest & WithNetworkConfiguration(const NetworkConfiguration &value)
void SetServiceName(const Aws::String &value)
CreateServiceRequest & WithAutoScalingConfigurationArn(const Aws::String &value)
CreateServiceRequest & WithHealthCheckConfiguration(HealthCheckConfiguration &&value)
CreateServiceRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
CreateServiceRequest & WithServiceName(const char *value)
void SetSourceConfiguration(SourceConfiguration &&value)
void SetNetworkConfiguration(NetworkConfiguration &&value)
CreateServiceRequest & AddTags(const Tag &value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateServiceRequest & WithSourceConfiguration(SourceConfiguration &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceRequest & WithServiceName(Aws::String &&value)
const InstanceConfiguration & GetInstanceConfiguration() const
void SetObservabilityConfiguration(ServiceObservabilityConfiguration &&value)
void SetNetworkConfiguration(const NetworkConfiguration &value)
CreateServiceRequest & WithNetworkConfiguration(NetworkConfiguration &&value)
CreateServiceRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
const Aws::Vector< Tag > & GetTags() const
void SetObservabilityConfiguration(const ServiceObservabilityConfiguration &value)
CreateServiceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateServiceRequest & WithInstanceConfiguration(InstanceConfiguration &&value)
const SourceConfiguration & GetSourceConfiguration() const
CreateServiceRequest & AddTags(Tag &&value)
AWS_APPRUNNER_API Aws::String SerializePayload() const override
CreateServiceRequest & WithAutoScalingConfigurationArn(Aws::String &&value)
void SetSourceConfiguration(const SourceConfiguration &value)
const NetworkConfiguration & GetNetworkConfiguration() const
CreateServiceRequest & WithServiceName(const Aws::String &value)
const ServiceObservabilityConfiguration & GetObservabilityConfiguration() const
void SetInstanceConfiguration(const InstanceConfiguration &value)
CreateServiceRequest & WithObservabilityConfiguration(const ServiceObservabilityConfiguration &value)
CreateServiceRequest & WithSourceConfiguration(const SourceConfiguration &value)
CreateServiceRequest & WithObservabilityConfiguration(ServiceObservabilityConfiguration &&value)
const Aws::String & GetAutoScalingConfigurationArn() const
void SetAutoScalingConfigurationArn(const Aws::String &value)
void SetHealthCheckConfiguration(HealthCheckConfiguration &&value)
CreateServiceRequest & WithInstanceConfiguration(const InstanceConfiguration &value)
CreateServiceRequest & WithTags(const Aws::Vector< Tag > &value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
virtual const char * GetServiceRequestName() const override
const HealthCheckConfiguration & GetHealthCheckConfiguration() const
void SetInstanceConfiguration(InstanceConfiguration &&value)
void SetHealthCheckConfiguration(const HealthCheckConfiguration &value)
CreateServiceRequest & WithHealthCheckConfiguration(const HealthCheckConfiguration &value)
CreateServiceRequest & WithAutoScalingConfigurationArn(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