AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
AwsIamInstanceProfile.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsIamInstanceProfileRole.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
30 public:
31 AWS_SECURITYHUB_API AwsIamInstanceProfile() = default;
32 AWS_SECURITYHUB_API AwsIamInstanceProfile(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetCreateDate() const { return m_createDate; }
62 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
63 template <typename CreateDateT = Aws::String>
64 void SetCreateDate(CreateDateT&& value) {
65 m_createDateHasBeenSet = true;
66 m_createDate = std::forward<CreateDateT>(value);
67 }
68 template <typename CreateDateT = Aws::String>
69 AwsIamInstanceProfile& WithCreateDate(CreateDateT&& value) {
70 SetCreateDate(std::forward<CreateDateT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetInstanceProfileId() const { return m_instanceProfileId; }
80 inline bool InstanceProfileIdHasBeenSet() const { return m_instanceProfileIdHasBeenSet; }
81 template <typename InstanceProfileIdT = Aws::String>
82 void SetInstanceProfileId(InstanceProfileIdT&& value) {
83 m_instanceProfileIdHasBeenSet = true;
84 m_instanceProfileId = std::forward<InstanceProfileIdT>(value);
85 }
86 template <typename InstanceProfileIdT = Aws::String>
87 AwsIamInstanceProfile& WithInstanceProfileId(InstanceProfileIdT&& value) {
88 SetInstanceProfileId(std::forward<InstanceProfileIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetInstanceProfileName() const { return m_instanceProfileName; }
98 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
99 template <typename InstanceProfileNameT = Aws::String>
100 void SetInstanceProfileName(InstanceProfileNameT&& value) {
101 m_instanceProfileNameHasBeenSet = true;
102 m_instanceProfileName = std::forward<InstanceProfileNameT>(value);
103 }
104 template <typename InstanceProfileNameT = Aws::String>
105 AwsIamInstanceProfile& WithInstanceProfileName(InstanceProfileNameT&& value) {
106 SetInstanceProfileName(std::forward<InstanceProfileNameT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetPath() const { return m_path; }
116 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
117 template <typename PathT = Aws::String>
118 void SetPath(PathT&& value) {
119 m_pathHasBeenSet = true;
120 m_path = std::forward<PathT>(value);
121 }
122 template <typename PathT = Aws::String>
124 SetPath(std::forward<PathT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<AwsIamInstanceProfileRole>& GetRoles() const { return m_roles; }
134 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
135 template <typename RolesT = Aws::Vector<AwsIamInstanceProfileRole>>
136 void SetRoles(RolesT&& value) {
137 m_rolesHasBeenSet = true;
138 m_roles = std::forward<RolesT>(value);
139 }
140 template <typename RolesT = Aws::Vector<AwsIamInstanceProfileRole>>
142 SetRoles(std::forward<RolesT>(value));
143 return *this;
144 }
145 template <typename RolesT = AwsIamInstanceProfileRole>
147 m_rolesHasBeenSet = true;
148 m_roles.emplace_back(std::forward<RolesT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_arn;
154
155 Aws::String m_createDate;
156
157 Aws::String m_instanceProfileId;
158
159 Aws::String m_instanceProfileName;
160
161 Aws::String m_path;
162
164 bool m_arnHasBeenSet = false;
165 bool m_createDateHasBeenSet = false;
166 bool m_instanceProfileIdHasBeenSet = false;
167 bool m_instanceProfileNameHasBeenSet = false;
168 bool m_pathHasBeenSet = false;
169 bool m_rolesHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SecurityHub
174} // namespace Aws
AWS_SECURITYHUB_API AwsIamInstanceProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceProfileId(InstanceProfileIdT &&value)
AwsIamInstanceProfile & WithPath(PathT &&value)
AwsIamInstanceProfile & WithInstanceProfileName(InstanceProfileNameT &&value)
AwsIamInstanceProfile & WithArn(ArnT &&value)
AwsIamInstanceProfile & WithRoles(RolesT &&value)
AwsIamInstanceProfile & AddRoles(RolesT &&value)
AWS_SECURITYHUB_API AwsIamInstanceProfile()=default
AWS_SECURITYHUB_API AwsIamInstanceProfile(Aws::Utils::Json::JsonView jsonValue)
AwsIamInstanceProfile & WithCreateDate(CreateDateT &&value)
void SetInstanceProfileName(InstanceProfileNameT &&value)
AwsIamInstanceProfile & WithInstanceProfileId(InstanceProfileIdT &&value)
const Aws::Vector< AwsIamInstanceProfileRole > & GetRoles() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue