AWS SDK for C++  1.9.71
AWS SDK for C++
ModifyDefaultCreditSpecificationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace 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::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline ModifyDefaultCreditSpecificationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
76  inline const UnlimitedSupportedInstanceFamily& GetInstanceFamily() const{ return m_instanceFamily; }
77 
81  inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
82 
86  inline void SetInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
87 
91  inline void SetInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
92 
96  inline ModifyDefaultCreditSpecificationRequest& WithInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { SetInstanceFamily(value); return *this;}
97 
101  inline ModifyDefaultCreditSpecificationRequest& WithInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { SetInstanceFamily(std::move(value)); return *this;}
102 
103 
108  inline const Aws::String& GetCpuCredits() const{ return m_cpuCredits; }
109 
114  inline bool CpuCreditsHasBeenSet() const { return m_cpuCreditsHasBeenSet; }
115 
120  inline void SetCpuCredits(const Aws::String& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = value; }
121 
126  inline void SetCpuCredits(Aws::String&& value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits = std::move(value); }
127 
132  inline void SetCpuCredits(const char* value) { m_cpuCreditsHasBeenSet = true; m_cpuCredits.assign(value); }
133 
138  inline ModifyDefaultCreditSpecificationRequest& WithCpuCredits(const Aws::String& value) { SetCpuCredits(value); return *this;}
139 
144  inline ModifyDefaultCreditSpecificationRequest& WithCpuCredits(Aws::String&& value) { SetCpuCredits(std::move(value)); return *this;}
145 
150  inline ModifyDefaultCreditSpecificationRequest& WithCpuCredits(const char* value) { SetCpuCredits(value); return *this;}
151 
152  private:
153 
154  bool m_dryRun;
155  bool m_dryRunHasBeenSet;
156 
157  UnlimitedSupportedInstanceFamily m_instanceFamily;
158  bool m_instanceFamilyHasBeenSet;
159 
160  Aws::String m_cpuCredits;
161  bool m_cpuCreditsHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace EC2
166 } // namespace Aws
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::InstanceFamilyHasBeenSet
bool InstanceFamilyHasBeenSet() const
Definition: ModifyDefaultCreditSpecificationRequest.h:81
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::WithCpuCredits
ModifyDefaultCreditSpecificationRequest & WithCpuCredits(const Aws::String &value)
Definition: ModifyDefaultCreditSpecificationRequest.h:138
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::ModifyDefaultCreditSpecificationRequest
ModifyDefaultCreditSpecificationRequest()
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::CpuCreditsHasBeenSet
bool CpuCreditsHasBeenSet() const
Definition: ModifyDefaultCreditSpecificationRequest.h:114
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::SetCpuCredits
void SetCpuCredits(const char *value)
Definition: ModifyDefaultCreditSpecificationRequest.h:132
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::WithInstanceFamily
ModifyDefaultCreditSpecificationRequest & WithInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
Definition: ModifyDefaultCreditSpecificationRequest.h:96
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::SetCpuCredits
void SetCpuCredits(const Aws::String &value)
Definition: ModifyDefaultCreditSpecificationRequest.h:120
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::WithCpuCredits
ModifyDefaultCreditSpecificationRequest & WithCpuCredits(Aws::String &&value)
Definition: ModifyDefaultCreditSpecificationRequest.h:144
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::GetCpuCredits
const Aws::String & GetCpuCredits() const
Definition: ModifyDefaultCreditSpecificationRequest.h:108
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyDefaultCreditSpecificationRequest.h:62
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::SetCpuCredits
void SetCpuCredits(Aws::String &&value)
Definition: ModifyDefaultCreditSpecificationRequest.h:126
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::GetInstanceFamily
const UnlimitedSupportedInstanceFamily & GetInstanceFamily() const
Definition: ModifyDefaultCreditSpecificationRequest.h:76
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::SerializePayload
Aws::String SerializePayload() const override
EC2Request.h
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::SetInstanceFamily
void SetInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
Definition: ModifyDefaultCreditSpecificationRequest.h:86
Aws::EC2::Model::UnlimitedSupportedInstanceFamily
UnlimitedSupportedInstanceFamily
Definition: UnlimitedSupportedInstanceFamily.h:17
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyDefaultCreditSpecificationRequest.h:54
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::WithDryRun
ModifyDefaultCreditSpecificationRequest & WithDryRun(bool value)
Definition: ModifyDefaultCreditSpecificationRequest.h:70
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest
Definition: ModifyDefaultCreditSpecificationRequest.h:23
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::WithInstanceFamily
ModifyDefaultCreditSpecificationRequest & WithInstanceFamily(UnlimitedSupportedInstanceFamily &&value)
Definition: ModifyDefaultCreditSpecificationRequest.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::SetInstanceFamily
void SetInstanceFamily(UnlimitedSupportedInstanceFamily &&value)
Definition: ModifyDefaultCreditSpecificationRequest.h:91
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyDefaultCreditSpecificationRequest.h:31
UnlimitedSupportedInstanceFamily.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::WithCpuCredits
ModifyDefaultCreditSpecificationRequest & WithCpuCredits(const char *value)
Definition: ModifyDefaultCreditSpecificationRequest.h:150
Aws::EC2::Model::ModifyDefaultCreditSpecificationRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyDefaultCreditSpecificationRequest.h:46
EC2_EXPORTS.h