7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
13#include <aws/core/utils/UUID.h>
33 inline virtual const char*
GetServiceRequestName()
const override {
return "CreateCapacityReservationBySplitting"; }
51 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
66 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
81 inline void SetSourceCapacityReservationId(
const char* value) { m_sourceCapacityReservationIdHasBeenSet =
true; m_sourceCapacityReservationId.assign(value); }
93 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
113 bool m_dryRunHasBeenSet =
false;
116 bool m_clientTokenHasBeenSet =
false;
119 bool m_sourceCapacityReservationIdHasBeenSet =
false;
122 bool m_instanceCountHasBeenSet =
false;
125 bool m_tagSpecificationsHasBeenSet =
false;
void SetSourceCapacityReservationId(const char *value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCapacityReservationBySplittingRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCapacityReservationBySplittingRequest & AddTagSpecifications(const TagSpecification &value)
void SetSourceCapacityReservationId(Aws::String &&value)
void SetClientToken(Aws::String &&value)
CreateCapacityReservationBySplittingRequest & WithClientToken(const Aws::String &value)
bool SourceCapacityReservationIdHasBeenSet() const
CreateCapacityReservationBySplittingRequest & WithSourceCapacityReservationId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API CreateCapacityReservationBySplittingRequest()
void SetDryRun(bool value)
void SetClientToken(const Aws::String &value)
const Aws::String & GetClientToken() const
CreateCapacityReservationBySplittingRequest & WithSourceCapacityReservationId(const Aws::String &value)
bool ClientTokenHasBeenSet() const
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
bool DryRunHasBeenSet() const
CreateCapacityReservationBySplittingRequest & AddTagSpecifications(TagSpecification &&value)
bool InstanceCountHasBeenSet() const
CreateCapacityReservationBySplittingRequest & WithDryRun(bool value)
void SetInstanceCount(int value)
CreateCapacityReservationBySplittingRequest & WithInstanceCount(int value)
CreateCapacityReservationBySplittingRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
int GetInstanceCount() const
CreateCapacityReservationBySplittingRequest & WithClientToken(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateCapacityReservationBySplittingRequest & WithSourceCapacityReservationId(const char *value)
void SetSourceCapacityReservationId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
bool TagSpecificationsHasBeenSet() const
void SetClientToken(const char *value)
const Aws::String & GetSourceCapacityReservationId() const
CreateCapacityReservationBySplittingRequest & WithClientToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector