AWS SDK for C++  1.9.72
AWS SDK for C++
CreateLaunchTemplateResponse.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 LaunchTemplate& GetLaunchTemplate() const{ return m_launchTemplate; }
41 
45  inline void SetLaunchTemplate(const LaunchTemplate& value) { m_launchTemplate = value; }
46 
50  inline void SetLaunchTemplate(LaunchTemplate&& value) { m_launchTemplate = std::move(value); }
51 
55  inline CreateLaunchTemplateResponse& WithLaunchTemplate(const LaunchTemplate& value) { SetLaunchTemplate(value); return *this;}
56 
60  inline CreateLaunchTemplateResponse& WithLaunchTemplate(LaunchTemplate&& value) { SetLaunchTemplate(std::move(value)); return *this;}
61 
62 
68  inline const ValidationWarning& GetWarning() const{ return m_warning; }
69 
75  inline void SetWarning(const ValidationWarning& value) { m_warning = value; }
76 
82  inline void SetWarning(ValidationWarning&& value) { m_warning = std::move(value); }
83 
89  inline CreateLaunchTemplateResponse& WithWarning(const ValidationWarning& value) { SetWarning(value); return *this;}
90 
96  inline CreateLaunchTemplateResponse& WithWarning(ValidationWarning&& value) { SetWarning(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 CreateLaunchTemplateResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
110 
111 
112  inline CreateLaunchTemplateResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
113 
114  private:
115 
116  LaunchTemplate m_launchTemplate;
117 
118  ValidationWarning m_warning;
119 
120  ResponseMetadata m_responseMetadata;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::ValidationWarning
Definition: ValidationWarning.h:35
Aws::EC2::Model::CreateLaunchTemplateResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateLaunchTemplateResponse.h:100
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::LaunchTemplate
Definition: LaunchTemplate.h:35
ValidationWarning.h
Aws::EC2::Model::CreateLaunchTemplateResponse::SetLaunchTemplate
void SetLaunchTemplate(LaunchTemplate &&value)
Definition: CreateLaunchTemplateResponse.h:50
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::CreateLaunchTemplateResponse::CreateLaunchTemplateResponse
CreateLaunchTemplateResponse()
Aws::EC2::Model::CreateLaunchTemplateResponse::WithWarning
CreateLaunchTemplateResponse & WithWarning(ValidationWarning &&value)
Definition: CreateLaunchTemplateResponse.h:96
Aws::EC2::Model::CreateLaunchTemplateResponse::WithResponseMetadata
CreateLaunchTemplateResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateLaunchTemplateResponse.h:109
Aws::EC2::Model::CreateLaunchTemplateResponse::CreateLaunchTemplateResponse
CreateLaunchTemplateResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateLaunchTemplateResponse::operator=
CreateLaunchTemplateResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateLaunchTemplateResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateLaunchTemplateResponse.h:103
Aws::EC2::Model::CreateLaunchTemplateResponse::WithLaunchTemplate
CreateLaunchTemplateResponse & WithLaunchTemplate(const LaunchTemplate &value)
Definition: CreateLaunchTemplateResponse.h:55
Aws::EC2::Model::CreateLaunchTemplateResponse::WithLaunchTemplate
CreateLaunchTemplateResponse & WithLaunchTemplate(LaunchTemplate &&value)
Definition: CreateLaunchTemplateResponse.h:60
Aws::EC2::Model::CreateLaunchTemplateResponse::WithResponseMetadata
CreateLaunchTemplateResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateLaunchTemplateResponse.h:112
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
LaunchTemplate.h
Aws::EC2::Model::CreateLaunchTemplateResponse::SetWarning
void SetWarning(ValidationWarning &&value)
Definition: CreateLaunchTemplateResponse.h:82
Aws::EC2::Model::CreateLaunchTemplateResponse::WithWarning
CreateLaunchTemplateResponse & WithWarning(const ValidationWarning &value)
Definition: CreateLaunchTemplateResponse.h:89
Aws::EC2::Model::CreateLaunchTemplateResponse::GetWarning
const ValidationWarning & GetWarning() const
Definition: CreateLaunchTemplateResponse.h:68
Aws::EC2::Model::CreateLaunchTemplateResponse::GetLaunchTemplate
const LaunchTemplate & GetLaunchTemplate() const
Definition: CreateLaunchTemplateResponse.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateLaunchTemplateResponse
Definition: CreateLaunchTemplateResponse.h:30
Aws::EC2::Model::CreateLaunchTemplateResponse::SetLaunchTemplate
void SetLaunchTemplate(const LaunchTemplate &value)
Definition: CreateLaunchTemplateResponse.h:45
EC2_EXPORTS.h
Aws::EC2::Model::CreateLaunchTemplateResponse::SetWarning
void SetWarning(const ValidationWarning &value)
Definition: CreateLaunchTemplateResponse.h:75
Aws::EC2::Model::CreateLaunchTemplateResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateLaunchTemplateResponse.h:106