AWS SDK for C++  1.9.67
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
Aws::EC2::Model::RequestSpotFleetRequest::GetSpotFleetRequestConfig
const SpotFleetRequestConfigData & GetSpotFleetRequestConfig() const
Definition: RequestSpotFleetRequest.h:78
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::RequestSpotFleetRequest::WithDryRun
RequestSpotFleetRequest & WithDryRun(bool value)
Definition: RequestSpotFleetRequest.h:72
Aws::EC2::Model::RequestSpotFleetRequest::SpotFleetRequestConfigHasBeenSet
bool SpotFleetRequestConfigHasBeenSet() const
Definition: RequestSpotFleetRequest.h:83
Aws::EC2::Model::RequestSpotFleetRequest
Definition: RequestSpotFleetRequest.h:25
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::RequestSpotFleetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RequestSpotFleetRequest.h:33
Aws::EC2::Model::RequestSpotFleetRequest::WithSpotFleetRequestConfig
RequestSpotFleetRequest & WithSpotFleetRequestConfig(const SpotFleetRequestConfigData &value)
Definition: RequestSpotFleetRequest.h:98
Aws::EC2::Model::RequestSpotFleetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::RequestSpotFleetRequest::WithSpotFleetRequestConfig
RequestSpotFleetRequest & WithSpotFleetRequestConfig(SpotFleetRequestConfigData &&value)
Definition: RequestSpotFleetRequest.h:103
Aws::EC2::Model::RequestSpotFleetRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: RequestSpotFleetRequest.h:56
Aws::EC2::Model::RequestSpotFleetRequest::RequestSpotFleetRequest
RequestSpotFleetRequest()
EC2Request.h
Aws::EC2::Model::RequestSpotFleetRequest::SetDryRun
void SetDryRun(bool value)
Definition: RequestSpotFleetRequest.h:64
Aws::EC2::Model::RequestSpotFleetRequest::GetDryRun
bool GetDryRun() const
Definition: RequestSpotFleetRequest.h:48
Aws::EC2::Model::RequestSpotFleetRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
SpotFleetRequestConfigData.h
Aws::EC2::Model::RequestSpotFleetRequest::SetSpotFleetRequestConfig
void SetSpotFleetRequestConfig(SpotFleetRequestConfigData &&value)
Definition: RequestSpotFleetRequest.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RequestSpotFleetRequest::SetSpotFleetRequestConfig
void SetSpotFleetRequestConfig(const SpotFleetRequestConfigData &value)
Definition: RequestSpotFleetRequest.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::SpotFleetRequestConfigData
Definition: SpotFleetRequestConfigData.h:45