AWS SDK for C++  1.9.66
AWS SDK for C++
ModifyInstanceMetadataOptionsResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
41 
45  inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; }
46 
50  inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); }
51 
55  inline void SetInstanceId(const char* value) { m_instanceId.assign(value); }
56 
60  inline ModifyInstanceMetadataOptionsResponse& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
61 
65  inline ModifyInstanceMetadataOptionsResponse& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
66 
70  inline ModifyInstanceMetadataOptionsResponse& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
71 
72 
76  inline const InstanceMetadataOptionsResponse& GetInstanceMetadataOptions() const{ return m_instanceMetadataOptions; }
77 
81  inline void SetInstanceMetadataOptions(const InstanceMetadataOptionsResponse& value) { m_instanceMetadataOptions = value; }
82 
86  inline void SetInstanceMetadataOptions(InstanceMetadataOptionsResponse&& value) { m_instanceMetadataOptions = std::move(value); }
87 
91  inline ModifyInstanceMetadataOptionsResponse& WithInstanceMetadataOptions(const InstanceMetadataOptionsResponse& value) { SetInstanceMetadataOptions(value); return *this;}
92 
96  inline ModifyInstanceMetadataOptionsResponse& WithInstanceMetadataOptions(InstanceMetadataOptionsResponse&& value) { SetInstanceMetadataOptions(std::move(value)); return *this;}
97 
98 
99 
100  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
101 
102 
103  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
104 
105 
106  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
107 
108 
109  inline ModifyInstanceMetadataOptionsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
110 
111 
112  inline ModifyInstanceMetadataOptionsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
113 
114  private:
115 
116  Aws::String m_instanceId;
117 
118  InstanceMetadataOptionsResponse m_instanceMetadataOptions;
119 
120  ResponseMetadata m_responseMetadata;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ModifyInstanceMetadataOptionsResponse.h:50
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::ModifyInstanceMetadataOptionsResponse
ModifyInstanceMetadataOptionsResponse()
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::WithResponseMetadata
ModifyInstanceMetadataOptionsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: ModifyInstanceMetadataOptionsResponse.h:112
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::operator=
ModifyInstanceMetadataOptionsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::WithInstanceMetadataOptions
ModifyInstanceMetadataOptionsResponse & WithInstanceMetadataOptions(InstanceMetadataOptionsResponse &&value)
Definition: ModifyInstanceMetadataOptionsResponse.h:96
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::SetInstanceMetadataOptions
void SetInstanceMetadataOptions(InstanceMetadataOptionsResponse &&value)
Definition: ModifyInstanceMetadataOptionsResponse.h:86
InstanceMetadataOptionsResponse.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ModifyInstanceMetadataOptionsResponse.h:40
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::WithInstanceMetadataOptions
ModifyInstanceMetadataOptionsResponse & WithInstanceMetadataOptions(const InstanceMetadataOptionsResponse &value)
Definition: ModifyInstanceMetadataOptionsResponse.h:91
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ModifyInstanceMetadataOptionsResponse.h:106
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::GetInstanceMetadataOptions
const InstanceMetadataOptionsResponse & GetInstanceMetadataOptions() const
Definition: ModifyInstanceMetadataOptionsResponse.h:76
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::WithInstanceId
ModifyInstanceMetadataOptionsResponse & WithInstanceId(const Aws::String &value)
Definition: ModifyInstanceMetadataOptionsResponse.h:60
Aws::EC2::Model::InstanceMetadataOptionsResponse
Definition: InstanceMetadataOptionsResponse.h:34
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::ModifyInstanceMetadataOptionsResponse
ModifyInstanceMetadataOptionsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::WithInstanceId
ModifyInstanceMetadataOptionsResponse & WithInstanceId(Aws::String &&value)
Definition: ModifyInstanceMetadataOptionsResponse.h:65
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::SetInstanceMetadataOptions
void SetInstanceMetadataOptions(const InstanceMetadataOptionsResponse &value)
Definition: ModifyInstanceMetadataOptionsResponse.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ModifyInstanceMetadataOptionsResponse.h:45
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse
Definition: ModifyInstanceMetadataOptionsResponse.h:30
EC2_EXPORTS.h
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::SetInstanceId
void SetInstanceId(const char *value)
Definition: ModifyInstanceMetadataOptionsResponse.h:55
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::WithInstanceId
ModifyInstanceMetadataOptionsResponse & WithInstanceId(const char *value)
Definition: ModifyInstanceMetadataOptionsResponse.h:70
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::WithResponseMetadata
ModifyInstanceMetadataOptionsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: ModifyInstanceMetadataOptionsResponse.h:109
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ModifyInstanceMetadataOptionsResponse.h:100
Aws::EC2::Model::ModifyInstanceMetadataOptionsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ModifyInstanceMetadataOptionsResponse.h:103