AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyInstanceCpuOptionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API ModifyInstanceCpuOptionsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceCpuOptions"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline int GetCoreCount() const { return m_coreCount; }
58 inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; }
59 inline void SetCoreCount(int value) {
60 m_coreCountHasBeenSet = true;
61 m_coreCount = value;
62 }
64 SetCoreCount(value);
65 return *this;
66 }
68
70
73 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
74 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
75 inline void SetThreadsPerCore(int value) {
76 m_threadsPerCoreHasBeenSet = true;
77 m_threadsPerCore = value;
78 }
80 SetThreadsPerCore(value);
81 return *this;
82 }
84
86
92 inline bool GetDryRun() const { return m_dryRun; }
93 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
94 inline void SetDryRun(bool value) {
95 m_dryRunHasBeenSet = true;
96 m_dryRun = value;
97 }
99 SetDryRun(value);
100 return *this;
101 }
103 private:
104 Aws::String m_instanceId;
105
106 int m_coreCount{0};
107
108 int m_threadsPerCore{0};
109
110 bool m_dryRun{false};
111 bool m_instanceIdHasBeenSet = false;
112 bool m_coreCountHasBeenSet = false;
113 bool m_threadsPerCoreHasBeenSet = false;
114 bool m_dryRunHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace EC2
119} // namespace Aws
ModifyInstanceCpuOptionsRequest & WithCoreCount(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyInstanceCpuOptionsRequest & WithDryRun(bool value)
ModifyInstanceCpuOptionsRequest & WithThreadsPerCore(int value)
ModifyInstanceCpuOptionsRequest & WithInstanceId(InstanceIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String