AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyDefaultCreditSpecificationRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/UnlimitedSupportedInstanceFamily.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
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 "ModifyDefaultCreditSpecification"; }
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 ModifyDefaultCreditSpecificationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
57 inline const UnlimitedSupportedInstanceFamily& GetInstanceFamily() const{ return m_instanceFamily; }
58 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
59 inline void SetInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
60 inline void SetInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
64
66
70 inline const Aws::String& GetCpuCredits() const{ return m_cpuCredits; }
71 inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
72 inline void SetCpuCredits(const Aws::String& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = value; }
73 inline void SetCpuCredits(Aws::String&& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = std::move(value); }
74 inline void SetCpuCredits(const char* value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits.assign(value); }
76 inline ModifyDefaultCreditSpecificationRequest& WithCpuCredits(Aws::String&& value) { SetCpuCredits(std::move(value)); return *this;}
77 inline ModifyDefaultCreditSpecificationRequest& WithCpuCredits(const char* value) { SetCpuCredits(value); return *this;}
79 private:
80
81 bool m_dryRun;
82 bool m_dryRunHasBeenSet = false;
83
84 UnlimitedSupportedInstanceFamily m_instanceFamily;
85 bool m_instanceFamilyHasBeenSet = false;
86
87 Aws::String m_cpuCredits;
88 bool m_cpuCreditsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EC2
93} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
ModifyDefaultCreditSpecificationRequest & WithCpuCredits(const char *value)
void SetInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
ModifyDefaultCreditSpecificationRequest & WithCpuCredits(const Aws::String &value)
ModifyDefaultCreditSpecificationRequest & WithCpuCredits(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyDefaultCreditSpecificationRequest & WithInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
ModifyDefaultCreditSpecificationRequest & WithDryRun(bool value)
ModifyDefaultCreditSpecificationRequest & WithInstanceFamily(UnlimitedSupportedInstanceFamily &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String