AWS SDK for C++  1.9.175
AWS SDK for C++
ModifyEbsDefaultKmsKeyIdRequest.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 "ModifyEbsDefaultKmsKeyId"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
54  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
55 
71  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
72 
88  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
89 
105  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
106 
122  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
123 
139  inline ModifyEbsDefaultKmsKeyIdRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
140 
156  inline ModifyEbsDefaultKmsKeyIdRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
157 
173  inline ModifyEbsDefaultKmsKeyIdRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
174 
175 
182  inline bool GetDryRun() const{ return m_dryRun; }
183 
190  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
191 
198  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
199 
206  inline ModifyEbsDefaultKmsKeyIdRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
207 
208  private:
209 
210  Aws::String m_kmsKeyId;
211  bool m_kmsKeyIdHasBeenSet;
212 
213  bool m_dryRun;
214  bool m_dryRunHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace EC2
219 } // namespace Aws
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::WithKmsKeyId
ModifyEbsDefaultKmsKeyIdRequest & WithKmsKeyId(const char *value)
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:173
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:122
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::ModifyEbsDefaultKmsKeyIdRequest
ModifyEbsDefaultKmsKeyIdRequest()
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:190
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:54
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::WithKmsKeyId
ModifyEbsDefaultKmsKeyIdRequest & WithKmsKeyId(Aws::String &&value)
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:156
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::WithDryRun
ModifyEbsDefaultKmsKeyIdRequest & WithDryRun(bool value)
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:206
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:198
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:71
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:105
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::WithKmsKeyId
ModifyEbsDefaultKmsKeyIdRequest & WithKmsKeyId(const Aws::String &value)
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:139
EC2Request.h
AWSString.h
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:22
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:182
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::ModifyEbsDefaultKmsKeyIdRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:88
Aws::EC2::EC2Request
Definition: EC2Request.h:17
EC2_EXPORTS.h
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyEbsDefaultKmsKeyIdRequest.h:30