AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCapacityReservationBySplittingRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
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 "CreateCapacityReservationBySplitting"; }
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 CreateCapacityReservationBySplittingRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
62 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
65 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
66 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
69 inline CreateCapacityReservationBySplittingRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
71
73
77 inline const Aws::String& GetSourceCapacityReservationId() const{ return m_sourceCapacityReservationId; }
78 inline bool SourceCapacityReservationIdHasBeenSet() const { return m_sourceCapacityReservationIdHasBeenSet; }
79 inline void SetSourceCapacityReservationId(const Aws::String& value) { m_sourceCapacityReservationIdHasBeenSet = true; m_sourceCapacityReservationId = value; }
80 inline void SetSourceCapacityReservationId(Aws::String&& value) { m_sourceCapacityReservationIdHasBeenSet = true; m_sourceCapacityReservationId = std::move(value); }
81 inline void SetSourceCapacityReservationId(const char* value) { m_sourceCapacityReservationIdHasBeenSet = true; m_sourceCapacityReservationId.assign(value); }
86
88
91 inline int GetInstanceCount() const{ return m_instanceCount; }
92 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
93 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
96
98
101 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
102 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
103 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
104 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
107 inline CreateCapacityReservationBySplittingRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
108 inline CreateCapacityReservationBySplittingRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
110 private:
111
112 bool m_dryRun;
113 bool m_dryRunHasBeenSet = false;
114
115 Aws::String m_clientToken;
116 bool m_clientTokenHasBeenSet = false;
117
118 Aws::String m_sourceCapacityReservationId;
119 bool m_sourceCapacityReservationIdHasBeenSet = false;
120
121 int m_instanceCount;
122 bool m_instanceCountHasBeenSet = false;
123
124 Aws::Vector<TagSpecification> m_tagSpecifications;
125 bool m_tagSpecificationsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
CreateCapacityReservationBySplittingRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCapacityReservationBySplittingRequest & AddTagSpecifications(const TagSpecification &value)
CreateCapacityReservationBySplittingRequest & WithClientToken(const Aws::String &value)
CreateCapacityReservationBySplittingRequest & WithSourceCapacityReservationId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateCapacityReservationBySplittingRequest & WithSourceCapacityReservationId(const Aws::String &value)
CreateCapacityReservationBySplittingRequest & AddTagSpecifications(TagSpecification &&value)
CreateCapacityReservationBySplittingRequest & WithInstanceCount(int value)
CreateCapacityReservationBySplittingRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateCapacityReservationBySplittingRequest & WithClientToken(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCapacityReservationBySplittingRequest & WithSourceCapacityReservationId(const char *value)
CreateCapacityReservationBySplittingRequest & WithClientToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector