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