AWS SDK for C++  1.9.107
AWS SDK for C++
GetDefaultCreditSpecificationRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetDefaultCreditSpecification"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 
61  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 
69  inline GetDefaultCreditSpecificationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
75  inline const UnlimitedSupportedInstanceFamily& GetInstanceFamily() const{ return m_instanceFamily; }
76 
80  inline bool InstanceFamilyHasBeenSet() const { return m_instanceFamilyHasBeenSet; }
81 
85  inline void SetInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = value; }
86 
90  inline void SetInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { m_instanceFamilyHasBeenSet = true; m_instanceFamily = std::move(value); }
91 
95  inline GetDefaultCreditSpecificationRequest& WithInstanceFamily(const UnlimitedSupportedInstanceFamily& value) { SetInstanceFamily(value); return *this;}
96 
100  inline GetDefaultCreditSpecificationRequest& WithInstanceFamily(UnlimitedSupportedInstanceFamily&& value) { SetInstanceFamily(std::move(value)); return *this;}
101 
102  private:
103 
104  bool m_dryRun;
105  bool m_dryRunHasBeenSet;
106 
107  UnlimitedSupportedInstanceFamily m_instanceFamily;
108  bool m_instanceFamilyHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace EC2
113 } // namespace Aws
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::SetInstanceFamily
void SetInstanceFamily(UnlimitedSupportedInstanceFamily &&value)
Definition: GetDefaultCreditSpecificationRequest.h:90
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: GetDefaultCreditSpecificationRequest.h:53
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::SetInstanceFamily
void SetInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
Definition: GetDefaultCreditSpecificationRequest.h:85
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::GetDefaultCreditSpecificationRequest
GetDefaultCreditSpecificationRequest()
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::WithInstanceFamily
GetDefaultCreditSpecificationRequest & WithInstanceFamily(UnlimitedSupportedInstanceFamily &&value)
Definition: GetDefaultCreditSpecificationRequest.h:100
Aws::EC2::Model::GetDefaultCreditSpecificationRequest
Definition: GetDefaultCreditSpecificationRequest.h:22
EC2Request.h
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::InstanceFamilyHasBeenSet
bool InstanceFamilyHasBeenSet() const
Definition: GetDefaultCreditSpecificationRequest.h:80
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDefaultCreditSpecificationRequest.h:30
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::GetDryRun
bool GetDryRun() const
Definition: GetDefaultCreditSpecificationRequest.h:45
Aws::EC2::Model::UnlimitedSupportedInstanceFamily
UnlimitedSupportedInstanceFamily
Definition: UnlimitedSupportedInstanceFamily.h:17
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::SetDryRun
void SetDryRun(bool value)
Definition: GetDefaultCreditSpecificationRequest.h:61
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::GetInstanceFamily
const UnlimitedSupportedInstanceFamily & GetInstanceFamily() const
Definition: GetDefaultCreditSpecificationRequest.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::WithDryRun
GetDefaultCreditSpecificationRequest & WithDryRun(bool value)
Definition: GetDefaultCreditSpecificationRequest.h:69
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
EC2_EXPORTS.h
Aws::EC2::Model::GetDefaultCreditSpecificationRequest::WithInstanceFamily
GetDefaultCreditSpecificationRequest & WithInstanceFamily(const UnlimitedSupportedInstanceFamily &value)
Definition: GetDefaultCreditSpecificationRequest.h:95