AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyFleetRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/FleetExcessCapacityTerminationPolicy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ec2/model/TargetCapacitySpecificationRequest.h>
13#include <aws/ec2/model/FleetLaunchTemplateConfigRequest.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EC2_API ModifyFleetRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyFleet"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
50 inline bool GetDryRun() const{ return m_dryRun; }
51 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 inline ModifyFleetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
55
57
62 inline const FleetExcessCapacityTerminationPolicy& GetExcessCapacityTerminationPolicy() const{ return m_excessCapacityTerminationPolicy; }
63 inline bool ExcessCapacityTerminationPolicyHasBeenSet() const { return m_excessCapacityTerminationPolicyHasBeenSet; }
64 inline void SetExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = value; }
65 inline void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy&& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = std::move(value); }
69
71
74 inline const Aws::Vector<FleetLaunchTemplateConfigRequest>& GetLaunchTemplateConfigs() const{ return m_launchTemplateConfigs; }
75 inline bool LaunchTemplateConfigsHasBeenSet() const { return m_launchTemplateConfigsHasBeenSet; }
76 inline void SetLaunchTemplateConfigs(const Aws::Vector<FleetLaunchTemplateConfigRequest>& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = value; }
77 inline void SetLaunchTemplateConfigs(Aws::Vector<FleetLaunchTemplateConfigRequest>&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = std::move(value); }
80 inline ModifyFleetRequest& AddLaunchTemplateConfigs(const FleetLaunchTemplateConfigRequest& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(value); return *this; }
81 inline ModifyFleetRequest& AddLaunchTemplateConfigs(FleetLaunchTemplateConfigRequest&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(std::move(value)); return *this; }
83
85
88 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
89 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
90 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
91 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
92 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
93 inline ModifyFleetRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
94 inline ModifyFleetRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
95 inline ModifyFleetRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
97
99
102 inline const TargetCapacitySpecificationRequest& GetTargetCapacitySpecification() const{ return m_targetCapacitySpecification; }
103 inline bool TargetCapacitySpecificationHasBeenSet() const { return m_targetCapacitySpecificationHasBeenSet; }
104 inline void SetTargetCapacitySpecification(const TargetCapacitySpecificationRequest& value) { m_targetCapacitySpecificationHasBeenSet = true; m_targetCapacitySpecification = value; }
105 inline void SetTargetCapacitySpecification(TargetCapacitySpecificationRequest&& value) { m_targetCapacitySpecificationHasBeenSet = true; m_targetCapacitySpecification = std::move(value); }
109
111
114 inline const Aws::String& GetContext() const{ return m_context; }
115 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
116 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
117 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
118 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
119 inline ModifyFleetRequest& WithContext(const Aws::String& value) { SetContext(value); return *this;}
120 inline ModifyFleetRequest& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
121 inline ModifyFleetRequest& WithContext(const char* value) { SetContext(value); return *this;}
123 private:
124
125 bool m_dryRun;
126 bool m_dryRunHasBeenSet = false;
127
128 FleetExcessCapacityTerminationPolicy m_excessCapacityTerminationPolicy;
129 bool m_excessCapacityTerminationPolicyHasBeenSet = false;
130
131 Aws::Vector<FleetLaunchTemplateConfigRequest> m_launchTemplateConfigs;
132 bool m_launchTemplateConfigsHasBeenSet = false;
133
134 Aws::String m_fleetId;
135 bool m_fleetIdHasBeenSet = false;
136
137 TargetCapacitySpecificationRequest m_targetCapacitySpecification;
138 bool m_targetCapacitySpecificationHasBeenSet = false;
139
140 Aws::String m_context;
141 bool m_contextHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace EC2
146} // namespace Aws
ModifyFleetRequest & AddLaunchTemplateConfigs(FleetLaunchTemplateConfigRequest &&value)
void SetLaunchTemplateConfigs(Aws::Vector< FleetLaunchTemplateConfigRequest > &&value)
ModifyFleetRequest & WithDryRun(bool value)
ModifyFleetRequest & WithContext(const char *value)
ModifyFleetRequest & WithExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyFleetRequest & WithLaunchTemplateConfigs(const Aws::Vector< FleetLaunchTemplateConfigRequest > &value)
void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyFleetRequest & WithTargetCapacitySpecification(const TargetCapacitySpecificationRequest &value)
void SetTargetCapacitySpecification(const TargetCapacitySpecificationRequest &value)
ModifyFleetRequest & AddLaunchTemplateConfigs(const FleetLaunchTemplateConfigRequest &value)
void SetFleetId(const Aws::String &value)
ModifyFleetRequest & WithFleetId(Aws::String &&value)
ModifyFleetRequest & WithLaunchTemplateConfigs(Aws::Vector< FleetLaunchTemplateConfigRequest > &&value)
void SetExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy &value)
ModifyFleetRequest & WithContext(Aws::String &&value)
const Aws::Vector< FleetLaunchTemplateConfigRequest > & GetLaunchTemplateConfigs() const
ModifyFleetRequest & WithExcessCapacityTerminationPolicy(const FleetExcessCapacityTerminationPolicy &value)
ModifyFleetRequest & WithTargetCapacitySpecification(TargetCapacitySpecificationRequest &&value)
ModifyFleetRequest & WithContext(const Aws::String &value)
void SetTargetCapacitySpecification(TargetCapacitySpecificationRequest &&value)
const FleetExcessCapacityTerminationPolicy & GetExcessCapacityTerminationPolicy() const
void SetFleetId(Aws::String &&value)
ModifyFleetRequest & WithFleetId(const char *value)
const Aws::String & GetFleetId() const
void SetLaunchTemplateConfigs(const Aws::Vector< FleetLaunchTemplateConfigRequest > &value)
ModifyFleetRequest & WithFleetId(const Aws::String &value)
void SetContext(const Aws::String &value)
const TargetCapacitySpecificationRequest & GetTargetCapacitySpecification() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetContext() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector