AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 AwsIamInstanceProfile& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
64 template<typename CreateDateT = Aws::String>
65 AwsIamInstanceProfile& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
67
69
72 inline const Aws::String& GetInstanceProfileId() const { return m_instanceProfileId; }
73 inline bool InstanceProfileIdHasBeenSet() const { return m_instanceProfileIdHasBeenSet; }
74 template<typename InstanceProfileIdT = Aws::String>
75 void SetInstanceProfileId(InstanceProfileIdT&& value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId = std::forward<InstanceProfileIdT>(value); }
76 template<typename InstanceProfileIdT = Aws::String>
77 AwsIamInstanceProfile& WithInstanceProfileId(InstanceProfileIdT&& value) { SetInstanceProfileId(std::forward<InstanceProfileIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetInstanceProfileName() const { return m_instanceProfileName; }
85 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
86 template<typename InstanceProfileNameT = Aws::String>
87 void SetInstanceProfileName(InstanceProfileNameT&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::forward<InstanceProfileNameT>(value); }
88 template<typename InstanceProfileNameT = Aws::String>
89 AwsIamInstanceProfile& WithInstanceProfileName(InstanceProfileNameT&& value) { SetInstanceProfileName(std::forward<InstanceProfileNameT>(value)); return *this;}
91
93
96 inline const Aws::String& GetPath() const { return m_path; }
97 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
98 template<typename PathT = Aws::String>
99 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
100 template<typename PathT = Aws::String>
101 AwsIamInstanceProfile& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
103
105
108 inline const Aws::Vector<AwsIamInstanceProfileRole>& GetRoles() const { return m_roles; }
109 inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
110 template<typename RolesT = Aws::Vector<AwsIamInstanceProfileRole>>
111 void SetRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles = std::forward<RolesT>(value); }
112 template<typename RolesT = Aws::Vector<AwsIamInstanceProfileRole>>
113 AwsIamInstanceProfile& WithRoles(RolesT&& value) { SetRoles(std::forward<RolesT>(value)); return *this;}
114 template<typename RolesT = AwsIamInstanceProfileRole>
115 AwsIamInstanceProfile& AddRoles(RolesT&& value) { m_rolesHasBeenSet = true; m_roles.emplace_back(std::forward<RolesT>(value)); return *this; }
117 private:
118
119 Aws::String m_arn;
120 bool m_arnHasBeenSet = false;
121
122 Aws::String m_createDate;
123 bool m_createDateHasBeenSet = false;
124
125 Aws::String m_instanceProfileId;
126 bool m_instanceProfileIdHasBeenSet = false;
127
128 Aws::String m_instanceProfileName;
129 bool m_instanceProfileNameHasBeenSet = false;
130
131 Aws::String m_path;
132 bool m_pathHasBeenSet = false;
133
135 bool m_rolesHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace SecurityHub
140} // 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