AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MoveCapacityReservationInstancesRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "MoveCapacityReservationInstances"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
47 inline bool GetDryRun() const{ return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
50 inline MoveCapacityReservationInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
60 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
61 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
62 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
63 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
64 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
66 inline MoveCapacityReservationInstancesRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
67 inline MoveCapacityReservationInstancesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
69
71
75 inline const Aws::String& GetSourceCapacityReservationId() const{ return m_sourceCapacityReservationId; }
76 inline bool SourceCapacityReservationIdHasBeenSet() const { return m_sourceCapacityReservationIdHasBeenSet; }
77 inline void SetSourceCapacityReservationId(const Aws::String& value) { m_sourceCapacityReservationIdHasBeenSet = true; m_sourceCapacityReservationId = value; }
78 inline void SetSourceCapacityReservationId(Aws::String&& value) { m_sourceCapacityReservationIdHasBeenSet = true; m_sourceCapacityReservationId = std::move(value); }
79 inline void SetSourceCapacityReservationId(const char* value) { m_sourceCapacityReservationIdHasBeenSet = true; m_sourceCapacityReservationId.assign(value); }
84
86
89 inline const Aws::String& GetDestinationCapacityReservationId() const{ return m_destinationCapacityReservationId; }
90 inline bool DestinationCapacityReservationIdHasBeenSet() const { return m_destinationCapacityReservationIdHasBeenSet; }
91 inline void SetDestinationCapacityReservationId(const Aws::String& value) { m_destinationCapacityReservationIdHasBeenSet = true; m_destinationCapacityReservationId = value; }
92 inline void SetDestinationCapacityReservationId(Aws::String&& value) { m_destinationCapacityReservationIdHasBeenSet = true; m_destinationCapacityReservationId = std::move(value); }
93 inline void SetDestinationCapacityReservationId(const char* value) { m_destinationCapacityReservationIdHasBeenSet = true; m_destinationCapacityReservationId.assign(value); }
98
100
104 inline int GetInstanceCount() const{ return m_instanceCount; }
105 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
106 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
109 private:
110
111 bool m_dryRun;
112 bool m_dryRunHasBeenSet = false;
113
114 Aws::String m_clientToken;
115 bool m_clientTokenHasBeenSet = false;
116
117 Aws::String m_sourceCapacityReservationId;
118 bool m_sourceCapacityReservationIdHasBeenSet = false;
119
120 Aws::String m_destinationCapacityReservationId;
121 bool m_destinationCapacityReservationIdHasBeenSet = false;
122
123 int m_instanceCount;
124 bool m_instanceCountHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace EC2
129} // namespace Aws
MoveCapacityReservationInstancesRequest & WithDestinationCapacityReservationId(const char *value)
MoveCapacityReservationInstancesRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
MoveCapacityReservationInstancesRequest & WithInstanceCount(int value)
MoveCapacityReservationInstancesRequest & WithSourceCapacityReservationId(const Aws::String &value)
MoveCapacityReservationInstancesRequest & WithSourceCapacityReservationId(Aws::String &&value)
MoveCapacityReservationInstancesRequest & WithClientToken(const Aws::String &value)
MoveCapacityReservationInstancesRequest & WithDestinationCapacityReservationId(const Aws::String &value)
MoveCapacityReservationInstancesRequest & WithClientToken(Aws::String &&value)
MoveCapacityReservationInstancesRequest & WithSourceCapacityReservationId(const char *value)
MoveCapacityReservationInstancesRequest & WithDestinationCapacityReservationId(Aws::String &&value)
MoveCapacityReservationInstancesRequest & WithClientToken(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String