AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyDefaultCreditSpecificationRequest.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/UnlimitedSupportedInstanceFamily.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
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 "ModifyDefaultCreditSpecification"; }
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
43 inline bool GetDryRun() const { return m_dryRun; }
44 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
50 SetDryRun(value);
51 return *this;
52 }
54
56
59 inline UnlimitedSupportedInstanceFamily GetInstanceFamily() const { return m_instanceFamily; }
60 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
62 m_instanceFamilyHasBeenSet = true;
63 m_instanceFamily = value;
64 }
66 SetInstanceFamily(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetCpuCredits() const { return m_cpuCredits; }
77 inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
78 template <typename CpuCreditsT = Aws::String>
79 void SetCpuCredits(CpuCreditsT&& value) {
80 m_cpuCreditsHasBeenSet = true;
81 m_cpuCredits = std::forward<CpuCreditsT>(value);
82 }
83 template <typename CpuCreditsT = Aws::String>
85 SetCpuCredits(std::forward<CpuCreditsT>(value));
86 return *this;
87 }
89 private:
90 bool m_dryRun{false};
91
93
94 Aws::String m_cpuCredits;
95 bool m_dryRunHasBeenSet = false;
96 bool m_instanceFamilyHasBeenSet = false;
97 bool m_cpuCreditsHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace EC2
102} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
ModifyDefaultCreditSpecificationRequest & WithCpuCredits(CpuCreditsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyDefaultCreditSpecificationRequest & WithDryRun(bool value)
ModifyDefaultCreditSpecificationRequest & WithInstanceFamily(UnlimitedSupportedInstanceFamily value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String