AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsIamInstanceProfileRole.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API AwsIamInstanceProfileRole();
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetArn() const{ return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
48 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
49 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
50 inline AwsIamInstanceProfileRole& WithArn(const Aws::String& value) { SetArn(value); return *this;}
51 inline AwsIamInstanceProfileRole& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
52 inline AwsIamInstanceProfileRole& WithArn(const char* value) { SetArn(value); return *this;}
54
56
59 inline const Aws::String& GetAssumeRolePolicyDocument() const{ return m_assumeRolePolicyDocument; }
60 inline bool AssumeRolePolicyDocumentHasBeenSet() const { return m_assumeRolePolicyDocumentHasBeenSet; }
61 inline void SetAssumeRolePolicyDocument(const Aws::String& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = value; }
62 inline void SetAssumeRolePolicyDocument(Aws::String&& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = std::move(value); }
63 inline void SetAssumeRolePolicyDocument(const char* value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument.assign(value); }
68
70
87 inline const Aws::String& GetCreateDate() const{ return m_createDate; }
88 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
89 inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; }
90 inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
91 inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); }
92 inline AwsIamInstanceProfileRole& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;}
93 inline AwsIamInstanceProfileRole& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;}
94 inline AwsIamInstanceProfileRole& WithCreateDate(const char* value) { SetCreateDate(value); return *this;}
96
98
101 inline const Aws::String& GetPath() const{ return m_path; }
102 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
103 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
104 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
105 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
106 inline AwsIamInstanceProfileRole& WithPath(const Aws::String& value) { SetPath(value); return *this;}
107 inline AwsIamInstanceProfileRole& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
108 inline AwsIamInstanceProfileRole& WithPath(const char* value) { SetPath(value); return *this;}
110
112
115 inline const Aws::String& GetRoleId() const{ return m_roleId; }
116 inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; }
117 inline void SetRoleId(const Aws::String& value) { m_roleIdHasBeenSet = true; m_roleId = value; }
118 inline void SetRoleId(Aws::String&& value) { m_roleIdHasBeenSet = true; m_roleId = std::move(value); }
119 inline void SetRoleId(const char* value) { m_roleIdHasBeenSet = true; m_roleId.assign(value); }
120 inline AwsIamInstanceProfileRole& WithRoleId(const Aws::String& value) { SetRoleId(value); return *this;}
121 inline AwsIamInstanceProfileRole& WithRoleId(Aws::String&& value) { SetRoleId(std::move(value)); return *this;}
122 inline AwsIamInstanceProfileRole& WithRoleId(const char* value) { SetRoleId(value); return *this;}
124
126
129 inline const Aws::String& GetRoleName() const{ return m_roleName; }
130 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
131 inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
132 inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
133 inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
134 inline AwsIamInstanceProfileRole& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
135 inline AwsIamInstanceProfileRole& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
136 inline AwsIamInstanceProfileRole& WithRoleName(const char* value) { SetRoleName(value); return *this;}
138 private:
139
140 Aws::String m_arn;
141 bool m_arnHasBeenSet = false;
142
143 Aws::String m_assumeRolePolicyDocument;
144 bool m_assumeRolePolicyDocumentHasBeenSet = false;
145
146 Aws::String m_createDate;
147 bool m_createDateHasBeenSet = false;
148
149 Aws::String m_path;
150 bool m_pathHasBeenSet = false;
151
152 Aws::String m_roleId;
153 bool m_roleIdHasBeenSet = false;
154
155 Aws::String m_roleName;
156 bool m_roleNameHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SecurityHub
161} // namespace Aws
AwsIamInstanceProfileRole & WithRoleName(const char *value)
AwsIamInstanceProfileRole & WithAssumeRolePolicyDocument(const char *value)
AwsIamInstanceProfileRole & WithCreateDate(Aws::String &&value)
AwsIamInstanceProfileRole & WithArn(Aws::String &&value)
AwsIamInstanceProfileRole & WithRoleId(const char *value)
AwsIamInstanceProfileRole & WithPath(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsIamInstanceProfileRole & WithPath(const char *value)
AwsIamInstanceProfileRole & WithAssumeRolePolicyDocument(Aws::String &&value)
AWS_SECURITYHUB_API AwsIamInstanceProfileRole(Aws::Utils::Json::JsonView jsonValue)
AwsIamInstanceProfileRole & WithRoleId(Aws::String &&value)
AwsIamInstanceProfileRole & WithRoleId(const Aws::String &value)
AwsIamInstanceProfileRole & WithCreateDate(const Aws::String &value)
AwsIamInstanceProfileRole & WithAssumeRolePolicyDocument(const Aws::String &value)
AwsIamInstanceProfileRole & WithRoleName(Aws::String &&value)
AwsIamInstanceProfileRole & WithCreateDate(const char *value)
AwsIamInstanceProfileRole & WithPath(Aws::String &&value)
AwsIamInstanceProfileRole & WithArn(const Aws::String &value)
AwsIamInstanceProfileRole & WithRoleName(const Aws::String &value)
AwsIamInstanceProfileRole & WithArn(const char *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