AWS SDK for C++  1.8.3
AWS SDK for C++
RequestSpotFleetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "RequestSpotFleet"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline bool GetDryRun() const{ return m_dryRun; }
49 
56  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
57 
64  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
65 
72  inline RequestSpotFleetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
73 
74 
78  inline const SpotFleetRequestConfigData& GetSpotFleetRequestConfig() const{ return m_spotFleetRequestConfig; }
79 
83  inline bool SpotFleetRequestConfigHasBeenSet() const { return m_spotFleetRequestConfigHasBeenSet; }
84 
88  inline void SetSpotFleetRequestConfig(const SpotFleetRequestConfigData& value) { m_spotFleetRequestConfigHasBeenSet = true; m_spotFleetRequestConfig = value; }
89 
93  inline void SetSpotFleetRequestConfig(SpotFleetRequestConfigData&& value) { m_spotFleetRequestConfigHasBeenSet = true; m_spotFleetRequestConfig = std::move(value); }
94 
98  inline RequestSpotFleetRequest& WithSpotFleetRequestConfig(const SpotFleetRequestConfigData& value) { SetSpotFleetRequestConfig(value); return *this;}
99 
103  inline RequestSpotFleetRequest& WithSpotFleetRequestConfig(SpotFleetRequestConfigData&& value) { SetSpotFleetRequestConfig(std::move(value)); return *this;}
104 
105  private:
106 
107  bool m_dryRun;
108  bool m_dryRunHasBeenSet;
109 
110  SpotFleetRequestConfigData m_spotFleetRequestConfig;
111  bool m_spotFleetRequestConfigHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace EC2
116 } // namespace Aws
RequestSpotFleetRequest & WithSpotFleetRequestConfig(SpotFleetRequestConfigData &&value)
const SpotFleetRequestConfigData & GetSpotFleetRequestConfig() const
RequestSpotFleetRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override
void SetSpotFleetRequestConfig(SpotFleetRequestConfigData &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
void SetSpotFleetRequestConfig(const SpotFleetRequestConfigData &value)
RequestSpotFleetRequest & WithSpotFleetRequestConfig(const SpotFleetRequestConfigData &value)