AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PurchaseCapacityBlockRequest.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/CapacityReservationInstancePlatform.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
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 "PurchaseCapacityBlock"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline bool GetDryRun() const{ return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline PurchaseCapacityBlockRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
59 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
60 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
61 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
62 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
65 inline PurchaseCapacityBlockRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
66 inline PurchaseCapacityBlockRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
68
70
73 inline const Aws::String& GetCapacityBlockOfferingId() const{ return m_capacityBlockOfferingId; }
74 inline bool CapacityBlockOfferingIdHasBeenSet() const { return m_capacityBlockOfferingIdHasBeenSet; }
75 inline void SetCapacityBlockOfferingId(const Aws::String& value) { m_capacityBlockOfferingIdHasBeenSet = true; m_capacityBlockOfferingId = value; }
76 inline void SetCapacityBlockOfferingId(Aws::String&& value) { m_capacityBlockOfferingIdHasBeenSet = true; m_capacityBlockOfferingId = std::move(value); }
77 inline void SetCapacityBlockOfferingId(const char* value) { m_capacityBlockOfferingIdHasBeenSet = true; m_capacityBlockOfferingId.assign(value); }
82
84
87 inline const CapacityReservationInstancePlatform& GetInstancePlatform() const{ return m_instancePlatform; }
88 inline bool InstancePlatformHasBeenSet() const { return m_instancePlatformHasBeenSet; }
89 inline void SetInstancePlatform(const CapacityReservationInstancePlatform& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = value; }
90 inline void SetInstancePlatform(CapacityReservationInstancePlatform&& value) { m_instancePlatformHasBeenSet = true; m_instancePlatform = std::move(value); }
94 private:
95
96 bool m_dryRun;
97 bool m_dryRunHasBeenSet = false;
98
99 Aws::Vector<TagSpecification> m_tagSpecifications;
100 bool m_tagSpecificationsHasBeenSet = false;
101
102 Aws::String m_capacityBlockOfferingId;
103 bool m_capacityBlockOfferingIdHasBeenSet = false;
104
105 CapacityReservationInstancePlatform m_instancePlatform;
106 bool m_instancePlatformHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
const CapacityReservationInstancePlatform & GetInstancePlatform() const
PurchaseCapacityBlockRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
PurchaseCapacityBlockRequest & WithInstancePlatform(const CapacityReservationInstancePlatform &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
PurchaseCapacityBlockRequest & AddTagSpecifications(const TagSpecification &value)
PurchaseCapacityBlockRequest & WithCapacityBlockOfferingId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
PurchaseCapacityBlockRequest & AddTagSpecifications(TagSpecification &&value)
PurchaseCapacityBlockRequest & WithCapacityBlockOfferingId(Aws::String &&value)
PurchaseCapacityBlockRequest & WithDryRun(bool value)
PurchaseCapacityBlockRequest & WithInstancePlatform(CapacityReservationInstancePlatform &&value)
void SetInstancePlatform(const CapacityReservationInstancePlatform &value)
PurchaseCapacityBlockRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetInstancePlatform(CapacityReservationInstancePlatform &&value)
AWS_EC2_API Aws::String SerializePayload() const override
PurchaseCapacityBlockRequest & WithCapacityBlockOfferingId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector