AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
60 inline const Aws::String& GetCreateDate() const { return m_createDate; }
61 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
62 template <typename CreateDateT = Aws::String>
63 void SetCreateDate(CreateDateT&& value) {
64 m_createDateHasBeenSet = true;
65 m_createDate = std::forward<CreateDateT>(value);
66 }
67 template <typename CreateDateT = Aws::String>
68 AwsIamInstanceProfile& WithCreateDate(CreateDateT&& value) {
69 SetCreateDate(std::forward<CreateDateT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetInstanceProfileId() const { return m_instanceProfileId; }
79 inline bool InstanceProfileIdHasBeenSet() const { return m_instanceProfileIdHasBeenSet; }
80 template <typename InstanceProfileIdT = Aws::String>
81 void SetInstanceProfileId(InstanceProfileIdT&& value) {
82 m_instanceProfileIdHasBeenSet = true;
83 m_instanceProfileId = std::forward<InstanceProfileIdT>(value);
84 }
85 template <typename InstanceProfileIdT = Aws::String>
86 AwsIamInstanceProfile& WithInstanceProfileId(InstanceProfileIdT&& value) {
87 SetInstanceProfileId(std::forward<InstanceProfileIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetInstanceProfileName() const { return m_instanceProfileName; }
97 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
98 template <typename InstanceProfileNameT = Aws::String>
99 void SetInstanceProfileName(InstanceProfileNameT&& value) {
100 m_instanceProfileNameHasBeenSet = true;
101 m_instanceProfileName = std::forward<InstanceProfileNameT>(value);
102 }
103 template <typename InstanceProfileNameT = Aws::String>
104 AwsIamInstanceProfile& WithInstanceProfileName(InstanceProfileNameT&& value) {
105 SetInstanceProfileName(std::forward<InstanceProfileNameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetPath() const { return m_path; }
115 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
116 template <typename PathT = Aws::String>
117 void SetPath(PathT&& value) {
118 m_pathHasBeenSet = true;
119 m_path = std::forward<PathT>(value);
120 }
121 template <typename PathT = Aws::String>
123 SetPath(std::forward<PathT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Vector<AwsIamInstanceProfileRole>& GetRoles() const { return m_roles; }
133 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
134 template <typename RolesT = Aws::Vector<AwsIamInstanceProfileRole>>
135 void SetRoles(RolesT&& value) {
136 m_rolesHasBeenSet = true;
137 m_roles = std::forward<RolesT>(value);
138 }
139 template <typename RolesT = Aws::Vector<AwsIamInstanceProfileRole>>
141 SetRoles(std::forward<RolesT>(value));
142 return *this;
143 }
144 template <typename RolesT = AwsIamInstanceProfileRole>
146 m_rolesHasBeenSet = true;
147 m_roles.emplace_back(std::forward<RolesT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_arn;
153
154 Aws::String m_createDate;
155
156 Aws::String m_instanceProfileId;
157
158 Aws::String m_instanceProfileName;
159
160 Aws::String m_path;
161
163 bool m_arnHasBeenSet = false;
164 bool m_createDateHasBeenSet = false;
165 bool m_instanceProfileIdHasBeenSet = false;
166 bool m_instanceProfileNameHasBeenSet = false;
167 bool m_pathHasBeenSet = false;
168 bool m_rolesHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace SecurityHub
173} // 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