AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EnableFastLaunchRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/FastLaunchLaunchTemplateSpecificationRequest.h>
11#include <aws/ec2/model/FastLaunchSnapshotConfigurationRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API EnableFastLaunchRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "EnableFastLaunch"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::String& GetImageId() const { return m_imageId; }
42 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
43 template <typename ImageIdT = Aws::String>
44 void SetImageId(ImageIdT&& value) {
45 m_imageIdHasBeenSet = true;
46 m_imageId = std::forward<ImageIdT>(value);
47 }
48 template <typename ImageIdT = Aws::String>
50 SetImageId(std::forward<ImageIdT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetResourceType() const { return m_resourceType; }
62 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
63 template <typename ResourceTypeT = Aws::String>
64 void SetResourceType(ResourceTypeT&& value) {
65 m_resourceTypeHasBeenSet = true;
66 m_resourceType = std::forward<ResourceTypeT>(value);
67 }
68 template <typename ResourceTypeT = Aws::String>
69 EnableFastLaunchRequest& WithResourceType(ResourceTypeT&& value) {
70 SetResourceType(std::forward<ResourceTypeT>(value));
71 return *this;
72 }
74
76
81 inline const FastLaunchSnapshotConfigurationRequest& GetSnapshotConfiguration() const { return m_snapshotConfiguration; }
82 inline bool SnapshotConfigurationHasBeenSet() const { return m_snapshotConfigurationHasBeenSet; }
83 template <typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationRequest>
84 void SetSnapshotConfiguration(SnapshotConfigurationT&& value) {
85 m_snapshotConfigurationHasBeenSet = true;
86 m_snapshotConfiguration = std::forward<SnapshotConfigurationT>(value);
87 }
88 template <typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationRequest>
89 EnableFastLaunchRequest& WithSnapshotConfiguration(SnapshotConfigurationT&& value) {
90 SetSnapshotConfiguration(std::forward<SnapshotConfigurationT>(value));
91 return *this;
92 }
94
96
101 inline const FastLaunchLaunchTemplateSpecificationRequest& GetLaunchTemplate() const { return m_launchTemplate; }
102 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
103 template <typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationRequest>
104 void SetLaunchTemplate(LaunchTemplateT&& value) {
105 m_launchTemplateHasBeenSet = true;
106 m_launchTemplate = std::forward<LaunchTemplateT>(value);
107 }
108 template <typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationRequest>
109 EnableFastLaunchRequest& WithLaunchTemplate(LaunchTemplateT&& value) {
110 SetLaunchTemplate(std::forward<LaunchTemplateT>(value));
111 return *this;
112 }
114
116
121 inline int GetMaxParallelLaunches() const { return m_maxParallelLaunches; }
122 inline bool MaxParallelLaunchesHasBeenSet() const { return m_maxParallelLaunchesHasBeenSet; }
123 inline void SetMaxParallelLaunches(int value) {
124 m_maxParallelLaunchesHasBeenSet = true;
125 m_maxParallelLaunches = value;
126 }
129 return *this;
130 }
132
134
140 inline bool GetDryRun() const { return m_dryRun; }
141 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
142 inline void SetDryRun(bool value) {
143 m_dryRunHasBeenSet = true;
144 m_dryRun = value;
145 }
147 SetDryRun(value);
148 return *this;
149 }
151 private:
152 Aws::String m_imageId;
153
154 Aws::String m_resourceType;
155
156 FastLaunchSnapshotConfigurationRequest m_snapshotConfiguration;
157
159
160 int m_maxParallelLaunches{0};
161
162 bool m_dryRun{false};
163 bool m_imageIdHasBeenSet = false;
164 bool m_resourceTypeHasBeenSet = false;
165 bool m_snapshotConfigurationHasBeenSet = false;
166 bool m_launchTemplateHasBeenSet = false;
167 bool m_maxParallelLaunchesHasBeenSet = false;
168 bool m_dryRunHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace EC2
173} // namespace Aws
AWS_EC2_API EnableFastLaunchRequest()=default
EnableFastLaunchRequest & WithResourceType(ResourceTypeT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
const FastLaunchLaunchTemplateSpecificationRequest & GetLaunchTemplate() const
EnableFastLaunchRequest & WithDryRun(bool value)
EnableFastLaunchRequest & WithSnapshotConfiguration(SnapshotConfigurationT &&value)
EnableFastLaunchRequest & WithMaxParallelLaunches(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
EnableFastLaunchRequest & WithLaunchTemplate(LaunchTemplateT &&value)
const FastLaunchSnapshotConfigurationRequest & GetSnapshotConfiguration() const
void SetSnapshotConfiguration(SnapshotConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
EnableFastLaunchRequest & WithImageId(ImageIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String