AWS SDK for C++  1.9.176
AWS SDK for C++
LaunchTemplate.h
Go to the documentation of this file.
1 
6 #pragma once
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 ElasticBeanstalk
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetId() const{ return m_id; }
46 
50  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
70  inline LaunchTemplate& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline LaunchTemplate& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
76 
80  inline LaunchTemplate& WithId(const char* value) { SetId(value); return *this;}
81 
82  private:
83 
84  Aws::String m_id;
85  bool m_idHasBeenSet;
86  };
87 
88 } // namespace Model
89 } // namespace ElasticBeanstalk
90 } // namespace Aws
Aws::ElasticBeanstalk::Model::LaunchTemplate::GetId
const Aws::String & GetId() const
Definition: LaunchTemplate.h:45
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::LaunchTemplate::WithId
LaunchTemplate & WithId(const Aws::String &value)
Definition: LaunchTemplate.h:70
AWSStreamFwd.h
Aws::ElasticBeanstalk::Model::LaunchTemplate::IdHasBeenSet
bool IdHasBeenSet() const
Definition: LaunchTemplate.h:50
Aws::ElasticBeanstalk::Model::LaunchTemplate::LaunchTemplate
LaunchTemplate()
Aws::ElasticBeanstalk::Model::LaunchTemplate::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::ElasticBeanstalk::Model::LaunchTemplate::operator=
LaunchTemplate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::ElasticBeanstalk::Model::LaunchTemplate::LaunchTemplate
LaunchTemplate(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticBeanstalk::Model::LaunchTemplate::SetId
void SetId(const Aws::String &value)
Definition: LaunchTemplate.h:55
Aws::ElasticBeanstalk::Model::LaunchTemplate::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSString.h
Aws::ElasticBeanstalk::Model::LaunchTemplate::SetId
void SetId(const char *value)
Definition: LaunchTemplate.h:65
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::LaunchTemplate::WithId
LaunchTemplate & WithId(const char *value)
Definition: LaunchTemplate.h:80
Aws::ElasticBeanstalk::Model::LaunchTemplate
Definition: LaunchTemplate.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticBeanstalk::Model::LaunchTemplate::WithId
LaunchTemplate & WithId(Aws::String &&value)
Definition: LaunchTemplate.h:75
index
int index
Definition: cJSON.h:181
Aws::ElasticBeanstalk::Model::LaunchTemplate::SetId
void SetId(Aws::String &&value)
Definition: LaunchTemplate.h:60