AWS SDK for C++  1.9.65
AWS SDK for C++
LaunchTemplateIamInstanceProfileSpecificationRequest.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 
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& GetArn() const{ return m_arn; }
46 
50  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 
55  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
56 
60  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
61 
65  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 
70  inline LaunchTemplateIamInstanceProfileSpecificationRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 
75  inline LaunchTemplateIamInstanceProfileSpecificationRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
76 
80  inline LaunchTemplateIamInstanceProfileSpecificationRequest& WithArn(const char* value) { SetArn(value); return *this;}
81 
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 
96  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
102 
106  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
111  inline LaunchTemplateIamInstanceProfileSpecificationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
116  inline LaunchTemplateIamInstanceProfileSpecificationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 
121  inline LaunchTemplateIamInstanceProfileSpecificationRequest& WithName(const char* value) { SetName(value); return *this;}
122 
123  private:
124 
125  Aws::String m_arn;
126  bool m_arnHasBeenSet;
127 
128  Aws::String m_name;
129  bool m_nameHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::SetArn
void SetArn(Aws::String &&value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:60
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::GetName
const Aws::String & GetName() const
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:86
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::operator=
LaunchTemplateIamInstanceProfileSpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::WithArn
LaunchTemplateIamInstanceProfileSpecificationRequest & WithArn(const char *value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:80
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::SetName
void SetName(const char *value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:106
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::WithArn
LaunchTemplateIamInstanceProfileSpecificationRequest & WithArn(const Aws::String &value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:70
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::SetArn
void SetArn(const char *value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:65
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:32
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::GetArn
const Aws::String & GetArn() const
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:45
AWSString.h
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::WithName
LaunchTemplateIamInstanceProfileSpecificationRequest & WithName(Aws::String &&value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:116
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:50
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:91
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::LaunchTemplateIamInstanceProfileSpecificationRequest
LaunchTemplateIamInstanceProfileSpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::WithName
LaunchTemplateIamInstanceProfileSpecificationRequest & WithName(const char *value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:121
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::SetName
void SetName(const Aws::String &value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:96
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::LaunchTemplateIamInstanceProfileSpecificationRequest::LaunchTemplateIamInstanceProfileSpecificationRequest
LaunchTemplateIamInstanceProfileSpecificationRequest()
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::WithArn
LaunchTemplateIamInstanceProfileSpecificationRequest & WithArn(Aws::String &&value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:75
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::SetName
void SetName(Aws::String &&value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:101
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::SetArn
void SetArn(const Aws::String &value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:55
Aws::EC2::Model::LaunchTemplateIamInstanceProfileSpecificationRequest::WithName
LaunchTemplateIamInstanceProfileSpecificationRequest & WithName(const Aws::String &value)
Definition: LaunchTemplateIamInstanceProfileSpecificationRequest.h:111