AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
48 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
49 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
50 inline EnableFastLaunchRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
51 inline EnableFastLaunchRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
52 inline EnableFastLaunchRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
54
56
61 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
62 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
63 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
64 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
65 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
66 inline EnableFastLaunchRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
67 inline EnableFastLaunchRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
68 inline EnableFastLaunchRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
70
72
77 inline const FastLaunchSnapshotConfigurationRequest& GetSnapshotConfiguration() const{ return m_snapshotConfiguration; }
78 inline bool SnapshotConfigurationHasBeenSet() const { return m_snapshotConfigurationHasBeenSet; }
79 inline void SetSnapshotConfiguration(const FastLaunchSnapshotConfigurationRequest& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = value; }
80 inline void SetSnapshotConfiguration(FastLaunchSnapshotConfigurationRequest&& value) { m_snapshotConfigurationHasBeenSet = true; m_snapshotConfiguration = std::move(value); }
84
86
91 inline const FastLaunchLaunchTemplateSpecificationRequest& GetLaunchTemplate() const{ return m_launchTemplate; }
92 inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
93 inline void SetLaunchTemplate(const FastLaunchLaunchTemplateSpecificationRequest& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; }
94 inline void SetLaunchTemplate(FastLaunchLaunchTemplateSpecificationRequest&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); }
98
100
105 inline int GetMaxParallelLaunches() const{ return m_maxParallelLaunches; }
106 inline bool MaxParallelLaunchesHasBeenSet() const { return m_maxParallelLaunchesHasBeenSet; }
107 inline void SetMaxParallelLaunches(int value) { m_maxParallelLaunchesHasBeenSet = true; m_maxParallelLaunches = value; }
110
112
118 inline bool GetDryRun() const{ return m_dryRun; }
119 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
120 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
121 inline EnableFastLaunchRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
123 private:
124
125 Aws::String m_imageId;
126 bool m_imageIdHasBeenSet = false;
127
128 Aws::String m_resourceType;
129 bool m_resourceTypeHasBeenSet = false;
130
131 FastLaunchSnapshotConfigurationRequest m_snapshotConfiguration;
132 bool m_snapshotConfigurationHasBeenSet = false;
133
135 bool m_launchTemplateHasBeenSet = false;
136
137 int m_maxParallelLaunches;
138 bool m_maxParallelLaunchesHasBeenSet = false;
139
140 bool m_dryRun;
141 bool m_dryRunHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace EC2
146} // namespace Aws
EnableFastLaunchRequest & WithResourceType(Aws::String &&value)
void SetLaunchTemplate(const FastLaunchLaunchTemplateSpecificationRequest &value)
EnableFastLaunchRequest & WithSnapshotConfiguration(FastLaunchSnapshotConfigurationRequest &&value)
EnableFastLaunchRequest & WithSnapshotConfiguration(const FastLaunchSnapshotConfigurationRequest &value)
void SetResourceType(const Aws::String &value)
void SetSnapshotConfiguration(const FastLaunchSnapshotConfigurationRequest &value)
EnableFastLaunchRequest & WithImageId(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
const FastLaunchLaunchTemplateSpecificationRequest & GetLaunchTemplate() const
EnableFastLaunchRequest & WithDryRun(bool value)
EnableFastLaunchRequest & WithResourceType(const Aws::String &value)
EnableFastLaunchRequest & WithImageId(Aws::String &&value)
EnableFastLaunchRequest & WithMaxParallelLaunches(int value)
EnableFastLaunchRequest & WithImageId(const char *value)
void SetSnapshotConfiguration(FastLaunchSnapshotConfigurationRequest &&value)
EnableFastLaunchRequest & WithResourceType(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const FastLaunchSnapshotConfigurationRequest & GetSnapshotConfiguration() const
EnableFastLaunchRequest & WithLaunchTemplate(const FastLaunchLaunchTemplateSpecificationRequest &value)
virtual const char * GetServiceRequestName() const override
void SetLaunchTemplate(FastLaunchLaunchTemplateSpecificationRequest &&value)
EnableFastLaunchRequest & WithLaunchTemplate(FastLaunchLaunchTemplateSpecificationRequest &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String