AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsIamInstanceProfile.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsIamInstanceProfileRole.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SECURITYHUB_API AwsIamInstanceProfile();
37 AWS_SECURITYHUB_API AwsIamInstanceProfile(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline AwsIamInstanceProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline AwsIamInstanceProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline AwsIamInstanceProfile& WithArn(const char* value) { SetArn(value); return *this;}
55
57
74 inline const Aws::String& GetCreateDate() const{ return m_createDate; }
75 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
76 inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; }
77 inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
78 inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); }
79 inline AwsIamInstanceProfile& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;}
80 inline AwsIamInstanceProfile& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;}
81 inline AwsIamInstanceProfile& WithCreateDate(const char* value) { SetCreateDate(value); return *this;}
83
85
88 inline const Aws::String& GetInstanceProfileId() const{ return m_instanceProfileId; }
89 inline bool InstanceProfileIdHasBeenSet() const { return m_instanceProfileIdHasBeenSet; }
90 inline void SetInstanceProfileId(const Aws::String& value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId = value; }
91 inline void SetInstanceProfileId(Aws::String&& value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId = std::move(value); }
92 inline void SetInstanceProfileId(const char* value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId.assign(value); }
93 inline AwsIamInstanceProfile& WithInstanceProfileId(const Aws::String& value) { SetInstanceProfileId(value); return *this;}
94 inline AwsIamInstanceProfile& WithInstanceProfileId(Aws::String&& value) { SetInstanceProfileId(std::move(value)); return *this;}
95 inline AwsIamInstanceProfile& WithInstanceProfileId(const char* value) { SetInstanceProfileId(value); return *this;}
97
99
102 inline const Aws::String& GetInstanceProfileName() const{ return m_instanceProfileName; }
103 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
104 inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; }
105 inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); }
106 inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); }
108 inline AwsIamInstanceProfile& WithInstanceProfileName(Aws::String&& value) { SetInstanceProfileName(std::move(value)); return *this;}
109 inline AwsIamInstanceProfile& WithInstanceProfileName(const char* value) { SetInstanceProfileName(value); return *this;}
111
113
116 inline const Aws::String& GetPath() const{ return m_path; }
117 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
118 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
119 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
120 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
121 inline AwsIamInstanceProfile& WithPath(const Aws::String& value) { SetPath(value); return *this;}
122 inline AwsIamInstanceProfile& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
123 inline AwsIamInstanceProfile& WithPath(const char* value) { SetPath(value); return *this;}
125
127
130 inline const Aws::Vector<AwsIamInstanceProfileRole>& GetRoles() const{ return m_roles; }
131 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
132 inline void SetRoles(const Aws::Vector<AwsIamInstanceProfileRole>& value) { m_rolesHasBeenSet = true; m_roles = value; }
133 inline void SetRoles(Aws::Vector<AwsIamInstanceProfileRole>&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); }
135 inline AwsIamInstanceProfile& WithRoles(Aws::Vector<AwsIamInstanceProfileRole>&& value) { SetRoles(std::move(value)); return *this;}
136 inline AwsIamInstanceProfile& AddRoles(const AwsIamInstanceProfileRole& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; }
137 inline AwsIamInstanceProfile& AddRoles(AwsIamInstanceProfileRole&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; }
139 private:
140
141 Aws::String m_arn;
142 bool m_arnHasBeenSet = false;
143
144 Aws::String m_createDate;
145 bool m_createDateHasBeenSet = false;
146
147 Aws::String m_instanceProfileId;
148 bool m_instanceProfileIdHasBeenSet = false;
149
150 Aws::String m_instanceProfileName;
151 bool m_instanceProfileNameHasBeenSet = false;
152
153 Aws::String m_path;
154 bool m_pathHasBeenSet = false;
155
157 bool m_rolesHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace SecurityHub
162} // namespace Aws
AwsIamInstanceProfile & WithCreateDate(Aws::String &&value)
AWS_SECURITYHUB_API AwsIamInstanceProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsIamInstanceProfile & WithCreateDate(const Aws::String &value)
AwsIamInstanceProfile & WithInstanceProfileName(const Aws::String &value)
AwsIamInstanceProfile & WithInstanceProfileId(const char *value)
AwsIamInstanceProfile & WithPath(const char *value)
AWS_SECURITYHUB_API AwsIamInstanceProfile(Aws::Utils::Json::JsonView jsonValue)
AwsIamInstanceProfile & AddRoles(AwsIamInstanceProfileRole &&value)
AwsIamInstanceProfile & WithRoles(const Aws::Vector< AwsIamInstanceProfileRole > &value)
AwsIamInstanceProfile & WithArn(const Aws::String &value)
AwsIamInstanceProfile & WithInstanceProfileName(const char *value)
AwsIamInstanceProfile & WithRoles(Aws::Vector< AwsIamInstanceProfileRole > &&value)
const Aws::Vector< AwsIamInstanceProfileRole > & GetRoles() const
void SetRoles(const Aws::Vector< AwsIamInstanceProfileRole > &value)
AwsIamInstanceProfile & WithInstanceProfileId(const Aws::String &value)
AwsIamInstanceProfile & WithInstanceProfileName(Aws::String &&value)
void SetRoles(Aws::Vector< AwsIamInstanceProfileRole > &&value)
AwsIamInstanceProfile & WithCreateDate(const char *value)
AwsIamInstanceProfile & AddRoles(const AwsIamInstanceProfileRole &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsIamInstanceProfile & WithArn(const char *value)
AwsIamInstanceProfile & WithArn(Aws::String &&value)
AwsIamInstanceProfile & WithPath(const Aws::String &value)
AwsIamInstanceProfile & WithPath(Aws::String &&value)
AwsIamInstanceProfile & WithInstanceProfileId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue