AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RunScheduledInstancesRequest.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/ScheduledInstancesLaunchSpecification.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "RunScheduledInstances"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
52 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
53 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
54 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
55 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
56 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
57 inline RunScheduledInstancesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
58 inline RunScheduledInstancesRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
59 inline RunScheduledInstancesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
61
63
69 inline bool GetDryRun() const{ return m_dryRun; }
70 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
71 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
72 inline RunScheduledInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
74
76
79 inline int GetInstanceCount() const{ return m_instanceCount; }
80 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
81 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
82 inline RunScheduledInstancesRequest& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
84
86
90 inline const ScheduledInstancesLaunchSpecification& GetLaunchSpecification() const{ return m_launchSpecification; }
91 inline bool LaunchSpecificationHasBeenSet() const { return m_launchSpecificationHasBeenSet; }
92 inline void SetLaunchSpecification(const ScheduledInstancesLaunchSpecification& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = value; }
93 inline void SetLaunchSpecification(ScheduledInstancesLaunchSpecification&& value) { m_launchSpecificationHasBeenSet = true; m_launchSpecification = std::move(value); }
97
99
102 inline const Aws::String& GetScheduledInstanceId() const{ return m_scheduledInstanceId; }
103 inline bool ScheduledInstanceIdHasBeenSet() const { return m_scheduledInstanceIdHasBeenSet; }
104 inline void SetScheduledInstanceId(const Aws::String& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = value; }
105 inline void SetScheduledInstanceId(Aws::String&& value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId = std::move(value); }
106 inline void SetScheduledInstanceId(const char* value) { m_scheduledInstanceIdHasBeenSet = true; m_scheduledInstanceId.assign(value); }
109 inline RunScheduledInstancesRequest& WithScheduledInstanceId(const char* value) { SetScheduledInstanceId(value); return *this;}
111 private:
112
113 Aws::String m_clientToken;
114 bool m_clientTokenHasBeenSet = false;
115
116 bool m_dryRun;
117 bool m_dryRunHasBeenSet = false;
118
119 int m_instanceCount;
120 bool m_instanceCountHasBeenSet = false;
121
122 ScheduledInstancesLaunchSpecification m_launchSpecification;
123 bool m_launchSpecificationHasBeenSet = false;
124
125 Aws::String m_scheduledInstanceId;
126 bool m_scheduledInstanceIdHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace EC2
131} // namespace Aws
RunScheduledInstancesRequest & WithLaunchSpecification(ScheduledInstancesLaunchSpecification &&value)
void SetLaunchSpecification(ScheduledInstancesLaunchSpecification &&value)
RunScheduledInstancesRequest & WithScheduledInstanceId(const Aws::String &value)
RunScheduledInstancesRequest & WithClientToken(Aws::String &&value)
RunScheduledInstancesRequest & WithScheduledInstanceId(const char *value)
RunScheduledInstancesRequest & WithDryRun(bool value)
RunScheduledInstancesRequest & WithClientToken(const char *value)
RunScheduledInstancesRequest & WithScheduledInstanceId(Aws::String &&value)
const ScheduledInstancesLaunchSpecification & GetLaunchSpecification() const
void SetLaunchSpecification(const ScheduledInstancesLaunchSpecification &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
RunScheduledInstancesRequest & WithLaunchSpecification(const ScheduledInstancesLaunchSpecification &value)
RunScheduledInstancesRequest & WithClientToken(const Aws::String &value)
RunScheduledInstancesRequest & WithInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String