AWS SDK for C++  1.9.74
AWS SDK for C++
ResetEbsDefaultKmsKeyIdRequest.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>
9 
10 namespace Aws
11 {
12 namespace EC2
13 {
14 namespace Model
15 {
16 
20  {
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 "ResetEbsDefaultKmsKeyId"; }
29 
30  Aws::String SerializePayload() const override;
31 
32  protected:
33  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
34 
35  public:
36 
43  inline bool GetDryRun() const{ return m_dryRun; }
44 
51  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
52 
59  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
60 
67  inline ResetEbsDefaultKmsKeyIdRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
68 
69  private:
70 
71  bool m_dryRun;
72  bool m_dryRunHasBeenSet;
73  };
74 
75 } // namespace Model
76 } // namespace EC2
77 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ResetEbsDefaultKmsKeyIdRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResetEbsDefaultKmsKeyIdRequest.h:28
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ResetEbsDefaultKmsKeyIdRequest::GetDryRun
bool GetDryRun() const
Definition: ResetEbsDefaultKmsKeyIdRequest.h:43
Aws::EC2::Model::ResetEbsDefaultKmsKeyIdRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ResetEbsDefaultKmsKeyIdRequest::ResetEbsDefaultKmsKeyIdRequest
ResetEbsDefaultKmsKeyIdRequest()
Aws::EC2::Model::ResetEbsDefaultKmsKeyIdRequest::SetDryRun
void SetDryRun(bool value)
Definition: ResetEbsDefaultKmsKeyIdRequest.h:59
EC2Request.h
Aws::EC2::Model::ResetEbsDefaultKmsKeyIdRequest
Definition: ResetEbsDefaultKmsKeyIdRequest.h:20
Aws::EC2::Model::ResetEbsDefaultKmsKeyIdRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ResetEbsDefaultKmsKeyIdRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ResetEbsDefaultKmsKeyIdRequest.h:51
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ResetEbsDefaultKmsKeyIdRequest::WithDryRun
ResetEbsDefaultKmsKeyIdRequest & WithDryRun(bool value)
Definition: ResetEbsDefaultKmsKeyIdRequest.h:67
EC2_EXPORTS.h