AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EnableFastLaunchRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/FastLaunchSnapshotConfigurationRequest.h>
11#include <aws/ec2/model/FastLaunchLaunchTemplateSpecificationRequest.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EC2_API EnableFastLaunchRequest() = 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 "EnableFastLaunch"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetImageId() const { return m_imageId; }
46 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
47 template<typename ImageIdT = Aws::String>
48 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
49 template<typename ImageIdT = Aws::String>
50 EnableFastLaunchRequest& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
52
54
59 inline const Aws::String& GetResourceType() const { return m_resourceType; }
60 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
61 template<typename ResourceTypeT = Aws::String>
62 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
63 template<typename ResourceTypeT = Aws::String>
64 EnableFastLaunchRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
66
68
73 inline const FastLaunchSnapshotConfigurationRequest& GetSnapshotConfiguration() const { return m_snapshotConfiguration; }
74 inline bool SnapshotConfigurationHasBeenSet() const { return m_snapshotConfigurationHasBeenSet; }
75 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationRequest>
76 void SetSnapshotConfiguration(SnapshotConfigurationT&& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = std::forward<SnapshotConfigurationT>(value); }
77 template<typename SnapshotConfigurationT = FastLaunchSnapshotConfigurationRequest>
78 EnableFastLaunchRequest& WithSnapshotConfiguration(SnapshotConfigurationT&& value) { SetSnapshotConfiguration(std::forward<SnapshotConfigurationT>(value)); return *this;}
80
82
87 inline const FastLaunchLaunchTemplateSpecificationRequest& GetLaunchTemplate() const { return m_launchTemplate; }
88 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
89 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationRequest>
90 void SetLaunchTemplate(LaunchTemplateT&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::forward<LaunchTemplateT>(value); }
91 template<typename LaunchTemplateT = FastLaunchLaunchTemplateSpecificationRequest>
92 EnableFastLaunchRequest& WithLaunchTemplate(LaunchTemplateT&& value) { SetLaunchTemplate(std::forward<LaunchTemplateT>(value)); return *this;}
94
96
101 inline int GetMaxParallelLaunches() const { return m_maxParallelLaunches; }
102 inline bool MaxParallelLaunchesHasBeenSet() const { return m_maxParallelLaunchesHasBeenSet; }
103 inline void SetMaxParallelLaunches(int value) { m_maxParallelLaunchesHasBeenSet = true; m_maxParallelLaunches = value; }
106
108
114 inline bool GetDryRun() const { return m_dryRun; }
115 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
116 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
117 inline EnableFastLaunchRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
119 private:
120
121 Aws::String m_imageId;
122 bool m_imageIdHasBeenSet = false;
123
124 Aws::String m_resourceType;
125 bool m_resourceTypeHasBeenSet = false;
126
127 FastLaunchSnapshotConfigurationRequest m_snapshotConfiguration;
128 bool m_snapshotConfigurationHasBeenSet = false;
129
131 bool m_launchTemplateHasBeenSet = false;
132
133 int m_maxParallelLaunches{0};
134 bool m_maxParallelLaunchesHasBeenSet = false;
135
136 bool m_dryRun{false};
137 bool m_dryRunHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace EC2
142} // 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)
void SetLaunchTemplate(LaunchTemplateT &&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