AWS SDK for C++

AWS SDK for C++ Version 1.11.783

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#include <aws/ec2/model/NestedVirtualizationSpecification.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API ModifyInstanceCpuOptionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceCpuOptions"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
41 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
42 template <typename InstanceIdT = Aws::String>
43 void SetInstanceId(InstanceIdT&& value) {
44 m_instanceIdHasBeenSet = true;
45 m_instanceId = std::forward<InstanceIdT>(value);
46 }
47 template <typename InstanceIdT = Aws::String>
49 SetInstanceId(std::forward<InstanceIdT>(value));
50 return *this;
51 }
53
55
58 inline int GetCoreCount() const { return m_coreCount; }
59 inline bool CoreCountHasBeenSet() const { return m_coreCountHasBeenSet; }
60 inline void SetCoreCount(int value) {
61 m_coreCountHasBeenSet = true;
62 m_coreCount = value;
63 }
65 SetCoreCount(value);
66 return *this;
67 }
69
71
74 inline int GetThreadsPerCore() const { return m_threadsPerCore; }
75 inline bool ThreadsPerCoreHasBeenSet() const { return m_threadsPerCoreHasBeenSet; }
76 inline void SetThreadsPerCore(int value) {
77 m_threadsPerCoreHasBeenSet = true;
78 m_threadsPerCore = value;
79 }
81 SetThreadsPerCore(value);
82 return *this;
83 }
85
87
92 inline NestedVirtualizationSpecification GetNestedVirtualization() const { return m_nestedVirtualization; }
93 inline bool NestedVirtualizationHasBeenSet() const { return m_nestedVirtualizationHasBeenSet; }
95 m_nestedVirtualizationHasBeenSet = true;
96 m_nestedVirtualization = value;
97 }
100 return *this;
101 }
103
105
111 inline bool GetDryRun() const { return m_dryRun; }
112 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
113 inline void SetDryRun(bool value) {
114 m_dryRunHasBeenSet = true;
115 m_dryRun = value;
116 }
118 SetDryRun(value);
119 return *this;
120 }
122 private:
123 Aws::String m_instanceId;
124
125 int m_coreCount{0};
126
127 int m_threadsPerCore{0};
128
130
131 bool m_dryRun{false};
132 bool m_instanceIdHasBeenSet = false;
133 bool m_coreCountHasBeenSet = false;
134 bool m_threadsPerCoreHasBeenSet = false;
135 bool m_nestedVirtualizationHasBeenSet = false;
136 bool m_dryRunHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace EC2
141} // namespace Aws
NestedVirtualizationSpecification GetNestedVirtualization() const
ModifyInstanceCpuOptionsRequest & WithCoreCount(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyInstanceCpuOptionsRequest & WithDryRun(bool value)
ModifyInstanceCpuOptionsRequest & WithNestedVirtualization(NestedVirtualizationSpecification value)
ModifyInstanceCpuOptionsRequest & WithThreadsPerCore(int value)
void SetNestedVirtualization(NestedVirtualizationSpecification 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