AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsIamInstanceProfileRole.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29 public:
30 AWS_SECURITYHUB_API AwsIamInstanceProfileRole() = default;
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAssumeRolePolicyDocument() const { return m_assumeRolePolicyDocument; }
58 inline bool AssumeRolePolicyDocumentHasBeenSet() const { return m_assumeRolePolicyDocumentHasBeenSet; }
59 template <typename AssumeRolePolicyDocumentT = Aws::String>
60 void SetAssumeRolePolicyDocument(AssumeRolePolicyDocumentT&& value) {
61 m_assumeRolePolicyDocumentHasBeenSet = true;
62 m_assumeRolePolicyDocument = std::forward<AssumeRolePolicyDocumentT>(value);
63 }
64 template <typename AssumeRolePolicyDocumentT = Aws::String>
65 AwsIamInstanceProfileRole& WithAssumeRolePolicyDocument(AssumeRolePolicyDocumentT&& value) {
66 SetAssumeRolePolicyDocument(std::forward<AssumeRolePolicyDocumentT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetCreateDate() const { return m_createDate; }
78 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
79 template <typename CreateDateT = Aws::String>
80 void SetCreateDate(CreateDateT&& value) {
81 m_createDateHasBeenSet = true;
82 m_createDate = std::forward<CreateDateT>(value);
83 }
84 template <typename CreateDateT = Aws::String>
86 SetCreateDate(std::forward<CreateDateT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetPath() const { return m_path; }
96 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
97 template <typename PathT = Aws::String>
98 void SetPath(PathT&& value) {
99 m_pathHasBeenSet = true;
100 m_path = std::forward<PathT>(value);
101 }
102 template <typename PathT = Aws::String>
104 SetPath(std::forward<PathT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetRoleId() const { return m_roleId; }
114 inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; }
115 template <typename RoleIdT = Aws::String>
116 void SetRoleId(RoleIdT&& value) {
117 m_roleIdHasBeenSet = true;
118 m_roleId = std::forward<RoleIdT>(value);
119 }
120 template <typename RoleIdT = Aws::String>
122 SetRoleId(std::forward<RoleIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetRoleName() const { return m_roleName; }
132 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
133 template <typename RoleNameT = Aws::String>
134 void SetRoleName(RoleNameT&& value) {
135 m_roleNameHasBeenSet = true;
136 m_roleName = std::forward<RoleNameT>(value);
137 }
138 template <typename RoleNameT = Aws::String>
140 SetRoleName(std::forward<RoleNameT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_arn;
146
147 Aws::String m_assumeRolePolicyDocument;
148
149 Aws::String m_createDate;
150
151 Aws::String m_path;
152
153 Aws::String m_roleId;
154
155 Aws::String m_roleName;
156 bool m_arnHasBeenSet = false;
157 bool m_assumeRolePolicyDocumentHasBeenSet = false;
158 bool m_createDateHasBeenSet = false;
159 bool m_pathHasBeenSet = false;
160 bool m_roleIdHasBeenSet = false;
161 bool m_roleNameHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace SecurityHub
166} // namespace Aws
AwsIamInstanceProfileRole & WithAssumeRolePolicyDocument(AssumeRolePolicyDocumentT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsIamInstanceProfileRole & WithRoleId(RoleIdT &&value)
AWS_SECURITYHUB_API AwsIamInstanceProfileRole(Aws::Utils::Json::JsonView jsonValue)
AwsIamInstanceProfileRole & WithArn(ArnT &&value)
AwsIamInstanceProfileRole & WithPath(PathT &&value)
AWS_SECURITYHUB_API AwsIamInstanceProfileRole()=default
AwsIamInstanceProfileRole & WithRoleName(RoleNameT &&value)
AwsIamInstanceProfileRole & WithCreateDate(CreateDateT &&value)
void SetAssumeRolePolicyDocument(AssumeRolePolicyDocumentT &&value)
AWS_SECURITYHUB_API AwsIamInstanceProfileRole & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue