AWS SDK for C++  1.9.74
AWS SDK for C++
ModifyEbsDefaultKmsKeyIdResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
40  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
41 
46  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyId = value; }
47 
52  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyId = std::move(value); }
53 
58  inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); }
59 
64  inline ModifyEbsDefaultKmsKeyIdResponse& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
65 
70  inline ModifyEbsDefaultKmsKeyIdResponse& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
71 
76  inline ModifyEbsDefaultKmsKeyIdResponse& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
77 
78 
79 
80  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
81 
82 
83  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
84 
85 
86  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
87 
88 
89  inline ModifyEbsDefaultKmsKeyIdResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
90 
91 
92  inline ModifyEbsDefaultKmsKeyIdResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
93 
94  private:
95 
96  Aws::String m_kmsKeyId;
97 
98  ResponseMetadata m_responseMetadata;
99  };
100 
101 } // namespace Model
102 } // namespace EC2
103 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::WithResponseMetadata
ModifyEbsDefaultKmsKeyIdResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:89
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:46
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::WithKmsKeyId
ModifyEbsDefaultKmsKeyIdResponse & WithKmsKeyId(const Aws::String &value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:64
ResponseMetadata.h
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:80
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::WithKmsKeyId
ModifyEbsDefaultKmsKeyIdResponse & WithKmsKeyId(Aws::String &&value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:70
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::ModifyEbsDefaultKmsKeyIdResponse
ModifyEbsDefaultKmsKeyIdResponse()
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:29
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:86
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::WithResponseMetadata
ModifyEbsDefaultKmsKeyIdResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:92
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:40
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::ModifyEbsDefaultKmsKeyIdResponse
ModifyEbsDefaultKmsKeyIdResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWSString.h
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:58
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::WithKmsKeyId
ModifyEbsDefaultKmsKeyIdResponse & WithKmsKeyId(const char *value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:76
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::ModifyEbsDefaultKmsKeyIdResponse::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:52
EC2_EXPORTS.h
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::operator=
ModifyEbsDefaultKmsKeyIdResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ModifyEbsDefaultKmsKeyIdResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ModifyEbsDefaultKmsKeyIdResponse.h:83