AWS SDK for C++  1.9.107
AWS SDK for C++
FleetLaunchTemplateSpecificationRequest.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 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
51  inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; }
52 
57  inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; }
58 
63  inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; }
64 
69  inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); }
70 
75  inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); }
76 
81  inline FleetLaunchTemplateSpecificationRequest& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;}
82 
87  inline FleetLaunchTemplateSpecificationRequest& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;}
88 
93  inline FleetLaunchTemplateSpecificationRequest& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;}
94 
95 
100  inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; }
101 
106  inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; }
107 
112  inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; }
113 
118  inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); }
119 
124  inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); }
125 
130  inline FleetLaunchTemplateSpecificationRequest& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;}
131 
136  inline FleetLaunchTemplateSpecificationRequest& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;}
137 
142  inline FleetLaunchTemplateSpecificationRequest& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;}
143 
144 
152  inline const Aws::String& GetVersion() const{ return m_version; }
153 
161  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
162 
170  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
171 
179  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
180 
188  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
189 
197  inline FleetLaunchTemplateSpecificationRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
198 
206  inline FleetLaunchTemplateSpecificationRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
207 
215  inline FleetLaunchTemplateSpecificationRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
216 
217  private:
218 
219  Aws::String m_launchTemplateId;
220  bool m_launchTemplateIdHasBeenSet;
221 
222  Aws::String m_launchTemplateName;
223  bool m_launchTemplateNameHasBeenSet;
224 
225  Aws::String m_version;
226  bool m_versionHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace EC2
231 } // namespace Aws
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::operator=
FleetLaunchTemplateSpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::WithLaunchTemplateId
FleetLaunchTemplateSpecificationRequest & WithLaunchTemplateId(const Aws::String &value)
Definition: FleetLaunchTemplateSpecificationRequest.h:81
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::SetVersion
void SetVersion(Aws::String &&value)
Definition: FleetLaunchTemplateSpecificationRequest.h:179
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::WithVersion
FleetLaunchTemplateSpecificationRequest & WithVersion(const char *value)
Definition: FleetLaunchTemplateSpecificationRequest.h:215
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::GetVersion
const Aws::String & GetVersion() const
Definition: FleetLaunchTemplateSpecificationRequest.h:152
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: FleetLaunchTemplateSpecificationRequest.h:161
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::GetLaunchTemplateId
const Aws::String & GetLaunchTemplateId() const
Definition: FleetLaunchTemplateSpecificationRequest.h:51
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::GetLaunchTemplateName
const Aws::String & GetLaunchTemplateName() const
Definition: FleetLaunchTemplateSpecificationRequest.h:100
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::WithVersion
FleetLaunchTemplateSpecificationRequest & WithVersion(const Aws::String &value)
Definition: FleetLaunchTemplateSpecificationRequest.h:197
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::LaunchTemplateNameHasBeenSet
bool LaunchTemplateNameHasBeenSet() const
Definition: FleetLaunchTemplateSpecificationRequest.h:106
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::FleetLaunchTemplateSpecificationRequest
FleetLaunchTemplateSpecificationRequest()
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const Aws::String &value)
Definition: FleetLaunchTemplateSpecificationRequest.h:63
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const Aws::String &value)
Definition: FleetLaunchTemplateSpecificationRequest.h:112
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::LaunchTemplateIdHasBeenSet
bool LaunchTemplateIdHasBeenSet() const
Definition: FleetLaunchTemplateSpecificationRequest.h:57
AWSStreamFwd.h
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::SetVersion
void SetVersion(const Aws::String &value)
Definition: FleetLaunchTemplateSpecificationRequest.h:170
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::SetLaunchTemplateId
void SetLaunchTemplateId(const char *value)
Definition: FleetLaunchTemplateSpecificationRequest.h:75
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest
Definition: FleetLaunchTemplateSpecificationRequest.h:37
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::WithLaunchTemplateId
FleetLaunchTemplateSpecificationRequest & WithLaunchTemplateId(Aws::String &&value)
Definition: FleetLaunchTemplateSpecificationRequest.h:87
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::SetLaunchTemplateId
void SetLaunchTemplateId(Aws::String &&value)
Definition: FleetLaunchTemplateSpecificationRequest.h:69
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::WithVersion
FleetLaunchTemplateSpecificationRequest & WithVersion(Aws::String &&value)
Definition: FleetLaunchTemplateSpecificationRequest.h:206
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::SetLaunchTemplateName
void SetLaunchTemplateName(const char *value)
Definition: FleetLaunchTemplateSpecificationRequest.h:124
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::WithLaunchTemplateId
FleetLaunchTemplateSpecificationRequest & WithLaunchTemplateId(const char *value)
Definition: FleetLaunchTemplateSpecificationRequest.h:93
AWSString.h
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::WithLaunchTemplateName
FleetLaunchTemplateSpecificationRequest & WithLaunchTemplateName(const char *value)
Definition: FleetLaunchTemplateSpecificationRequest.h:142
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::WithLaunchTemplateName
FleetLaunchTemplateSpecificationRequest & WithLaunchTemplateName(Aws::String &&value)
Definition: FleetLaunchTemplateSpecificationRequest.h:136
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::WithLaunchTemplateName
FleetLaunchTemplateSpecificationRequest & WithLaunchTemplateName(const Aws::String &value)
Definition: FleetLaunchTemplateSpecificationRequest.h:130
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::SetLaunchTemplateName
void SetLaunchTemplateName(Aws::String &&value)
Definition: FleetLaunchTemplateSpecificationRequest.h:118
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::FleetLaunchTemplateSpecificationRequest
FleetLaunchTemplateSpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FleetLaunchTemplateSpecificationRequest::SetVersion
void SetVersion(const char *value)
Definition: FleetLaunchTemplateSpecificationRequest.h:188
EC2_EXPORTS.h