AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 AwsIamInstanceProfileRole& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = std::forward<AssumeRolePolicyDocumentT>(value); }
61 template<typename AssumeRolePolicyDocumentT = Aws::String>
62 AwsIamInstanceProfileRole& WithAssumeRolePolicyDocument(AssumeRolePolicyDocumentT&& value) { SetAssumeRolePolicyDocument(std::forward<AssumeRolePolicyDocumentT>(value)); return *this;}
64
66
71 inline const Aws::String& GetCreateDate() const { return m_createDate; }
72 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
73 template<typename CreateDateT = Aws::String>
74 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
75 template<typename CreateDateT = Aws::String>
76 AwsIamInstanceProfileRole& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
78
80
83 inline const Aws::String& GetPath() const { return m_path; }
84 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
85 template<typename PathT = Aws::String>
86 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
87 template<typename PathT = Aws::String>
88 AwsIamInstanceProfileRole& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
90
92
95 inline const Aws::String& GetRoleId() const { return m_roleId; }
96 inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; }
97 template<typename RoleIdT = Aws::String>
98 void SetRoleId(RoleIdT&& value) { m_roleIdHasBeenSet = true; m_roleId = std::forward<RoleIdT>(value); }
99 template<typename RoleIdT = Aws::String>
100 AwsIamInstanceProfileRole& WithRoleId(RoleIdT&& value) { SetRoleId(std::forward<RoleIdT>(value)); return *this;}
102
104
107 inline const Aws::String& GetRoleName() const { return m_roleName; }
108 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
109 template<typename RoleNameT = Aws::String>
110 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
111 template<typename RoleNameT = Aws::String>
112 AwsIamInstanceProfileRole& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
114 private:
115
116 Aws::String m_arn;
117 bool m_arnHasBeenSet = false;
118
119 Aws::String m_assumeRolePolicyDocument;
120 bool m_assumeRolePolicyDocumentHasBeenSet = false;
121
122 Aws::String m_createDate;
123 bool m_createDateHasBeenSet = false;
124
125 Aws::String m_path;
126 bool m_pathHasBeenSet = false;
127
128 Aws::String m_roleId;
129 bool m_roleIdHasBeenSet = false;
130
131 Aws::String m_roleName;
132 bool m_roleNameHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace SecurityHub
137} // 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