AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 UnlimitedSupportedInstanceFamily GetInstanceFamily() const { return m_instanceFamily; }
58 inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
59 inline void SetInstanceFamily(UnlimitedSupportedInstanceFamily value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
62
64
68 inline const Aws::String& GetCpuCredits() const { return m_cpuCredits; }
69 inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
70 template<typename CpuCreditsT = Aws::String>
71 void SetCpuCredits(CpuCreditsT&& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = std::forward<CpuCreditsT>(value); }
72 template<typename CpuCreditsT = Aws::String>
73 ModifyDefaultCreditSpecificationRequest& WithCpuCredits(CpuCreditsT&& value) { SetCpuCredits(std::forward<CpuCreditsT>(value)); return *this;}
75 private:
76
77 bool m_dryRun{false};
78 bool m_dryRunHasBeenSet = false;
79
81 bool m_instanceFamilyHasBeenSet = false;
82
83 Aws::String m_cpuCredits;
84 bool m_cpuCreditsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace EC2
89} // 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