AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifySpotFleetRequestRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/ExcessCapacityTerminationPolicy.h>
12#include <aws/ec2/model/LaunchTemplateConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ModifySpotFleetRequest"; }
38
39 AWS_EC2_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
53 inline const Aws::Vector<LaunchTemplateConfig>& GetLaunchTemplateConfigs() const{ return m_launchTemplateConfigs; }
54 inline bool LaunchTemplateConfigsHasBeenSet() const { return m_launchTemplateConfigsHasBeenSet; }
55 inline void SetLaunchTemplateConfigs(const Aws::Vector<LaunchTemplateConfig>& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = value; }
56 inline void SetLaunchTemplateConfigs(Aws::Vector<LaunchTemplateConfig>&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs = std::move(value); }
59 inline ModifySpotFleetRequestRequest& AddLaunchTemplateConfigs(const LaunchTemplateConfig& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(value); return *this; }
60 inline ModifySpotFleetRequestRequest& AddLaunchTemplateConfigs(LaunchTemplateConfig&& value) { m_launchTemplateConfigsHasBeenSet = true; m_launchTemplateConfigs.push_back(std::move(value)); return *this; }
62
64
67 inline int GetOnDemandTargetCapacity() const{ return m_onDemandTargetCapacity; }
68 inline bool OnDemandTargetCapacityHasBeenSet() const { return m_onDemandTargetCapacityHasBeenSet; }
69 inline void SetOnDemandTargetCapacity(int value) { m_onDemandTargetCapacityHasBeenSet = true; m_onDemandTargetCapacity = value; }
72
74
77 inline const Aws::String& GetContext() const{ return m_context; }
78 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
79 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
80 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
81 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
82 inline ModifySpotFleetRequestRequest& WithContext(const Aws::String& value) { SetContext(value); return *this;}
83 inline ModifySpotFleetRequestRequest& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
84 inline ModifySpotFleetRequestRequest& WithContext(const char* value) { SetContext(value); return *this;}
86
88
91 inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
92 inline bool SpotFleetRequestIdHasBeenSet() const { return m_spotFleetRequestIdHasBeenSet; }
93 inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
94 inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = std::move(value); }
95 inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); }
98 inline ModifySpotFleetRequestRequest& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
100
102
105 inline int GetTargetCapacity() const{ return m_targetCapacity; }
106 inline bool TargetCapacityHasBeenSet() const { return m_targetCapacityHasBeenSet; }
107 inline void SetTargetCapacity(int value) { m_targetCapacityHasBeenSet = true; m_targetCapacity = value; }
108 inline ModifySpotFleetRequestRequest& WithTargetCapacity(int value) { SetTargetCapacity(value); return *this;}
110
112
117 inline const ExcessCapacityTerminationPolicy& GetExcessCapacityTerminationPolicy() const{ return m_excessCapacityTerminationPolicy; }
118 inline bool ExcessCapacityTerminationPolicyHasBeenSet() const { return m_excessCapacityTerminationPolicyHasBeenSet; }
119 inline void SetExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = value; }
120 inline void SetExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy&& value) { m_excessCapacityTerminationPolicyHasBeenSet = true; m_excessCapacityTerminationPolicy = std::move(value); }
124 private:
125
126 Aws::Vector<LaunchTemplateConfig> m_launchTemplateConfigs;
127 bool m_launchTemplateConfigsHasBeenSet = false;
128
129 int m_onDemandTargetCapacity;
130 bool m_onDemandTargetCapacityHasBeenSet = false;
131
132 Aws::String m_context;
133 bool m_contextHasBeenSet = false;
134
135 Aws::String m_spotFleetRequestId;
136 bool m_spotFleetRequestIdHasBeenSet = false;
137
138 int m_targetCapacity;
139 bool m_targetCapacityHasBeenSet = false;
140
141 ExcessCapacityTerminationPolicy m_excessCapacityTerminationPolicy;
142 bool m_excessCapacityTerminationPolicyHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace EC2
147} // namespace Aws
ModifySpotFleetRequestRequest & WithContext(Aws::String &&value)
ModifySpotFleetRequestRequest & WithContext(const char *value)
ModifySpotFleetRequestRequest & WithSpotFleetRequestId(Aws::String &&value)
ModifySpotFleetRequestRequest & WithExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy &value)
const ExcessCapacityTerminationPolicy & GetExcessCapacityTerminationPolicy() const
ModifySpotFleetRequestRequest & WithLaunchTemplateConfigs(Aws::Vector< LaunchTemplateConfig > &&value)
ModifySpotFleetRequestRequest & WithOnDemandTargetCapacity(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy &&value)
ModifySpotFleetRequestRequest & WithExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy &&value)
virtual const char * GetServiceRequestName() const override
void SetExcessCapacityTerminationPolicy(const ExcessCapacityTerminationPolicy &value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifySpotFleetRequestRequest & WithLaunchTemplateConfigs(const Aws::Vector< LaunchTemplateConfig > &value)
void SetLaunchTemplateConfigs(const Aws::Vector< LaunchTemplateConfig > &value)
void SetLaunchTemplateConfigs(Aws::Vector< LaunchTemplateConfig > &&value)
ModifySpotFleetRequestRequest & WithContext(const Aws::String &value)
ModifySpotFleetRequestRequest & WithTargetCapacity(int value)
const Aws::Vector< LaunchTemplateConfig > & GetLaunchTemplateConfigs() const
ModifySpotFleetRequestRequest & AddLaunchTemplateConfigs(const LaunchTemplateConfig &value)
ModifySpotFleetRequestRequest & WithSpotFleetRequestId(const Aws::String &value)
ModifySpotFleetRequestRequest & WithSpotFleetRequestId(const char *value)
ModifySpotFleetRequestRequest & AddLaunchTemplateConfigs(LaunchTemplateConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector