AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 FleetExcessCapacityTerminationPolicy GetExcessCapacityTerminationPolicy() const { return m_excessCapacityTerminationPolicy; }
63 inline bool ExcessCapacityTerminationPolicyHasBeenSet() const { return m_excessCapacityTerminationPolicyHasBeenSet; }
64 inline void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = value; }
67
69
72 inline const Aws::Vector<FleetLaunchTemplateConfigRequest>& GetLaunchTemplateConfigs() const { return m_launchTemplateConfigs; }
73 inline bool LaunchTemplateConfigsHasBeenSet() const { return m_launchTemplateConfigsHasBeenSet; }
74 template<typename LaunchTemplateConfigsT = Aws::Vector<FleetLaunchTemplateConfigRequest>>
75 void SetLaunchTemplateConfigs(LaunchTemplateConfigsT&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = std::forward<LaunchTemplateConfigsT>(value); }
76 template<typename LaunchTemplateConfigsT = Aws::Vector<FleetLaunchTemplateConfigRequest>>
77 ModifyFleetRequest& WithLaunchTemplateConfigs(LaunchTemplateConfigsT&& value) { SetLaunchTemplateConfigs(std::forward<LaunchTemplateConfigsT>(value)); return *this;}
78 template<typename LaunchTemplateConfigsT = FleetLaunchTemplateConfigRequest>
79 ModifyFleetRequest& AddLaunchTemplateConfigs(LaunchTemplateConfigsT&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.emplace_back(std::forward<LaunchTemplateConfigsT>(value)); return *this; }
81
83
86 inline const Aws::String& GetFleetId() const { return m_fleetId; }
87 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
88 template<typename FleetIdT = Aws::String>
89 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
90 template<typename FleetIdT = Aws::String>
91 ModifyFleetRequest& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
93
95
98 inline const TargetCapacitySpecificationRequest& GetTargetCapacitySpecification() const { return m_targetCapacitySpecification; }
99 inline bool TargetCapacitySpecificationHasBeenSet() const { return m_targetCapacitySpecificationHasBeenSet; }
100 template<typename TargetCapacitySpecificationT = TargetCapacitySpecificationRequest>
101 void SetTargetCapacitySpecification(TargetCapacitySpecificationT&& value) { m_targetCapacitySpecificationHasBeenSet = true; m_targetCapacitySpecification = std::forward<TargetCapacitySpecificationT>(value); }
102 template<typename TargetCapacitySpecificationT = TargetCapacitySpecificationRequest>
103 ModifyFleetRequest& WithTargetCapacitySpecification(TargetCapacitySpecificationT&& value) { SetTargetCapacitySpecification(std::forward<TargetCapacitySpecificationT>(value)); return *this;}
105
107
110 inline const Aws::String& GetContext() const { return m_context; }
111 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
112 template<typename ContextT = Aws::String>
113 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
114 template<typename ContextT = Aws::String>
115 ModifyFleetRequest& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
117 private:
118
119 bool m_dryRun{false};
120 bool m_dryRunHasBeenSet = false;
121
123 bool m_excessCapacityTerminationPolicyHasBeenSet = false;
124
125 Aws::Vector<FleetLaunchTemplateConfigRequest> m_launchTemplateConfigs;
126 bool m_launchTemplateConfigsHasBeenSet = false;
127
128 Aws::String m_fleetId;
129 bool m_fleetIdHasBeenSet = false;
130
131 TargetCapacitySpecificationRequest m_targetCapacitySpecification;
132 bool m_targetCapacitySpecificationHasBeenSet = false;
133
134 Aws::String m_context;
135 bool m_contextHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace EC2
140} // namespace Aws
ModifyFleetRequest & WithDryRun(bool value)
void SetTargetCapacitySpecification(TargetCapacitySpecificationT &&value)
ModifyFleetRequest & WithFleetId(FleetIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API ModifyFleetRequest()=default
AWS_EC2_API Aws::String SerializePayload() const override
ModifyFleetRequest & WithContext(ContextT &&value)
ModifyFleetRequest & WithExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy value)
const Aws::Vector< FleetLaunchTemplateConfigRequest > & GetLaunchTemplateConfigs() const
ModifyFleetRequest & WithTargetCapacitySpecification(TargetCapacitySpecificationT &&value)
void SetExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy value)
ModifyFleetRequest & WithLaunchTemplateConfigs(LaunchTemplateConfigsT &&value)
FleetExcessCapacityTerminationPolicy GetExcessCapacityTerminationPolicy() const
const Aws::String & GetFleetId() const
ModifyFleetRequest & AddLaunchTemplateConfigs(LaunchTemplateConfigsT &&value)
void SetLaunchTemplateConfigs(LaunchTemplateConfigsT &&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