AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceProfile.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iam/model/Role.h>
13#include <aws/iam/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace IAM
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_IAM_API InstanceProfile();
43 AWS_IAM_API InstanceProfile(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
56 inline const Aws::String& GetPath() const{ return m_path; }
57 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
58 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
59 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
60 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
61 inline InstanceProfile& WithPath(const Aws::String& value) { SetPath(value); return *this;}
62 inline InstanceProfile& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
63 inline InstanceProfile& WithPath(const char* value) { SetPath(value); return *this;}
65
67
70 inline const Aws::String& GetInstanceProfileName() const{ return m_instanceProfileName; }
71 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
72 inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; }
73 inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); }
74 inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); }
75 inline InstanceProfile& WithInstanceProfileName(const Aws::String& value) { SetInstanceProfileName(value); return *this;}
76 inline InstanceProfile& WithInstanceProfileName(Aws::String&& value) { SetInstanceProfileName(std::move(value)); return *this;}
77 inline InstanceProfile& WithInstanceProfileName(const char* value) { SetInstanceProfileName(value); return *this;}
79
81
87 inline const Aws::String& GetInstanceProfileId() const{ return m_instanceProfileId; }
88 inline bool InstanceProfileIdHasBeenSet() const { return m_instanceProfileIdHasBeenSet; }
89 inline void SetInstanceProfileId(const Aws::String& value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId = value; }
90 inline void SetInstanceProfileId(Aws::String&& value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId = std::move(value); }
91 inline void SetInstanceProfileId(const char* value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId.assign(value); }
92 inline InstanceProfile& WithInstanceProfileId(const Aws::String& value) { SetInstanceProfileId(value); return *this;}
93 inline InstanceProfile& WithInstanceProfileId(Aws::String&& value) { SetInstanceProfileId(std::move(value)); return *this;}
94 inline InstanceProfile& WithInstanceProfileId(const char* value) { SetInstanceProfileId(value); return *this;}
96
98
104 inline const Aws::String& GetArn() const{ return m_arn; }
105 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
106 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
107 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
108 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
109 inline InstanceProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;}
110 inline InstanceProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
111 inline InstanceProfile& WithArn(const char* value) { SetArn(value); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
119 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
120 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
121 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
122 inline InstanceProfile& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
123 inline InstanceProfile& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
125
127
130 inline const Aws::Vector<Role>& GetRoles() const{ return m_roles; }
131 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
132 inline void SetRoles(const Aws::Vector<Role>& value) { m_rolesHasBeenSet = true; m_roles = value; }
133 inline void SetRoles(Aws::Vector<Role>&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); }
134 inline InstanceProfile& WithRoles(const Aws::Vector<Role>& value) { SetRoles(value); return *this;}
135 inline InstanceProfile& WithRoles(Aws::Vector<Role>&& value) { SetRoles(std::move(value)); return *this;}
136 inline InstanceProfile& AddRoles(const Role& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; }
137 inline InstanceProfile& AddRoles(Role&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; }
139
141
147 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
150 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
151 inline InstanceProfile& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
152 inline InstanceProfile& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
153 inline InstanceProfile& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
154 inline InstanceProfile& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
156 private:
157
158 Aws::String m_path;
159 bool m_pathHasBeenSet = false;
160
161 Aws::String m_instanceProfileName;
162 bool m_instanceProfileNameHasBeenSet = false;
163
164 Aws::String m_instanceProfileId;
165 bool m_instanceProfileIdHasBeenSet = false;
166
167 Aws::String m_arn;
168 bool m_arnHasBeenSet = false;
169
170 Aws::Utils::DateTime m_createDate;
171 bool m_createDateHasBeenSet = false;
172
173 Aws::Vector<Role> m_roles;
174 bool m_rolesHasBeenSet = false;
175
176 Aws::Vector<Tag> m_tags;
177 bool m_tagsHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace IAM
182} // namespace Aws
InstanceProfile & AddRoles(Role &&value)
void SetPath(Aws::String &&value)
void SetCreateDate(Aws::Utils::DateTime &&value)
const Aws::Vector< Role > & GetRoles() const
InstanceProfile & WithPath(const char *value)
InstanceProfile & WithCreateDate(Aws::Utils::DateTime &&value)
void SetPath(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
void SetArn(const Aws::String &value)
AWS_IAM_API InstanceProfile & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceProfile & WithInstanceProfileName(const Aws::String &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
const Aws::String & GetPath() const
InstanceProfile & WithPath(Aws::String &&value)
const Aws::String & GetInstanceProfileName() const
InstanceProfile & WithInstanceProfileName(const char *value)
void SetInstanceProfileName(const char *value)
InstanceProfile & WithInstanceProfileId(const char *value)
InstanceProfile & WithCreateDate(const Aws::Utils::DateTime &value)
AWS_IAM_API InstanceProfile(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceProfile & WithRoles(const Aws::Vector< Role > &value)
void SetArn(const char *value)
void SetPath(const Aws::String &value)
InstanceProfile & WithInstanceProfileId(const Aws::String &value)
InstanceProfile & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetInstanceProfileId() const
InstanceProfile & WithInstanceProfileName(Aws::String &&value)
void SetRoles(const Aws::Vector< Role > &value)
void SetInstanceProfileId(Aws::String &&value)
InstanceProfile & WithArn(const char *value)
InstanceProfile & WithRoles(Aws::Vector< Role > &&value)
void SetInstanceProfileId(const char *value)
void SetInstanceProfileId(const Aws::String &value)
InstanceProfile & AddTags(const Tag &value)
InstanceProfile & WithArn(Aws::String &&value)
void SetInstanceProfileName(Aws::String &&value)
const Aws::String & GetArn() const
void SetTags(const Aws::Vector< Tag > &value)
void SetRoles(Aws::Vector< Role > &&value)
const Aws::Vector< Tag > & GetTags() const
void SetArn(Aws::String &&value)
InstanceProfile & WithArn(const Aws::String &value)
InstanceProfile & WithInstanceProfileId(Aws::String &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceProfile & AddRoles(const Role &value)
InstanceProfile & WithTags(Aws::Vector< Tag > &&value)
InstanceProfile & AddTags(Tag &&value)
InstanceProfile & WithPath(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateDate() const
void SetInstanceProfileName(const Aws::String &value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream