AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PermissionGroup.h
1
6#pragma once
7#include <aws/finspace-data/FinSpaceData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/finspace-data/model/PermissionGroupMembershipStatus.h>
11#include <aws/finspace-data/model/ApplicationPermission.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FinSpaceData
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_FINSPACEDATA_API PermissionGroup();
38 AWS_FINSPACEDATA_API PermissionGroup(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FINSPACEDATA_API PermissionGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetPermissionGroupId() const{ return m_permissionGroupId; }
48 inline bool PermissionGroupIdHasBeenSet() const { return m_permissionGroupIdHasBeenSet; }
49 inline void SetPermissionGroupId(const Aws::String& value) { m_permissionGroupIdHasBeenSet = true; m_permissionGroupId = value; }
50 inline void SetPermissionGroupId(Aws::String&& value) { m_permissionGroupIdHasBeenSet = true; m_permissionGroupId = std::move(value); }
51 inline void SetPermissionGroupId(const char* value) { m_permissionGroupIdHasBeenSet = true; m_permissionGroupId.assign(value); }
52 inline PermissionGroup& WithPermissionGroupId(const Aws::String& value) { SetPermissionGroupId(value); return *this;}
53 inline PermissionGroup& WithPermissionGroupId(Aws::String&& value) { SetPermissionGroupId(std::move(value)); return *this;}
54 inline PermissionGroup& WithPermissionGroupId(const char* value) { SetPermissionGroupId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline PermissionGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline PermissionGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline PermissionGroup& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline PermissionGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline PermissionGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline PermissionGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
106 inline const Aws::Vector<ApplicationPermission>& GetApplicationPermissions() const{ return m_applicationPermissions; }
107 inline bool ApplicationPermissionsHasBeenSet() const { return m_applicationPermissionsHasBeenSet; }
108 inline void SetApplicationPermissions(const Aws::Vector<ApplicationPermission>& value) { m_applicationPermissionsHasBeenSet = true; m_applicationPermissions = value; }
109 inline void SetApplicationPermissions(Aws::Vector<ApplicationPermission>&& value) { m_applicationPermissionsHasBeenSet = true; m_applicationPermissions = std::move(value); }
112 inline PermissionGroup& AddApplicationPermissions(const ApplicationPermission& value) { m_applicationPermissionsHasBeenSet = true; m_applicationPermissions.push_back(value); return *this; }
113 inline PermissionGroup& AddApplicationPermissions(ApplicationPermission&& value) { m_applicationPermissionsHasBeenSet = true; m_applicationPermissions.push_back(std::move(value)); return *this; }
115
117
121 inline long long GetCreateTime() const{ return m_createTime; }
122 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
123 inline void SetCreateTime(long long value) { m_createTimeHasBeenSet = true; m_createTime = value; }
124 inline PermissionGroup& WithCreateTime(long long value) { SetCreateTime(value); return *this;}
126
128
132 inline long long GetLastModifiedTime() const{ return m_lastModifiedTime; }
133 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
134 inline void SetLastModifiedTime(long long value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
135 inline PermissionGroup& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;}
137
139
147 inline const PermissionGroupMembershipStatus& GetMembershipStatus() const{ return m_membershipStatus; }
148 inline bool MembershipStatusHasBeenSet() const { return m_membershipStatusHasBeenSet; }
149 inline void SetMembershipStatus(const PermissionGroupMembershipStatus& value) { m_membershipStatusHasBeenSet = true; m_membershipStatus = value; }
150 inline void SetMembershipStatus(PermissionGroupMembershipStatus&& value) { m_membershipStatusHasBeenSet = true; m_membershipStatus = std::move(value); }
154 private:
155
156 Aws::String m_permissionGroupId;
157 bool m_permissionGroupIdHasBeenSet = false;
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_description;
163 bool m_descriptionHasBeenSet = false;
164
165 Aws::Vector<ApplicationPermission> m_applicationPermissions;
166 bool m_applicationPermissionsHasBeenSet = false;
167
168 long long m_createTime;
169 bool m_createTimeHasBeenSet = false;
170
171 long long m_lastModifiedTime;
172 bool m_lastModifiedTimeHasBeenSet = false;
173
174 PermissionGroupMembershipStatus m_membershipStatus;
175 bool m_membershipStatusHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace FinSpaceData
180} // namespace Aws
void SetDescription(const Aws::String &value)
PermissionGroup & AddApplicationPermissions(ApplicationPermission &&value)
void SetPermissionGroupId(const Aws::String &value)
const Aws::Vector< ApplicationPermission > & GetApplicationPermissions() const
void SetApplicationPermissions(const Aws::Vector< ApplicationPermission > &value)
void SetMembershipStatus(const PermissionGroupMembershipStatus &value)
PermissionGroup & AddApplicationPermissions(const ApplicationPermission &value)
PermissionGroup & WithCreateTime(long long value)
AWS_FINSPACEDATA_API PermissionGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
PermissionGroup & WithDescription(Aws::String &&value)
PermissionGroup & WithDescription(const Aws::String &value)
PermissionGroup & WithName(const Aws::String &value)
const PermissionGroupMembershipStatus & GetMembershipStatus() const
void SetName(const Aws::String &value)
PermissionGroup & WithMembershipStatus(const PermissionGroupMembershipStatus &value)
PermissionGroup & WithName(Aws::String &&value)
PermissionGroup & WithLastModifiedTime(long long value)
PermissionGroup & WithPermissionGroupId(Aws::String &&value)
PermissionGroup & WithName(const char *value)
PermissionGroup & WithApplicationPermissions(const Aws::Vector< ApplicationPermission > &value)
PermissionGroup & WithDescription(const char *value)
AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMembershipStatus(PermissionGroupMembershipStatus &&value)
const Aws::String & GetPermissionGroupId() const
PermissionGroup & WithApplicationPermissions(Aws::Vector< ApplicationPermission > &&value)
const Aws::String & GetDescription() const
void SetApplicationPermissions(Aws::Vector< ApplicationPermission > &&value)
PermissionGroup & WithPermissionGroupId(const Aws::String &value)
PermissionGroup & WithPermissionGroupId(const char *value)
AWS_FINSPACEDATA_API PermissionGroup(Aws::Utils::Json::JsonView jsonValue)
void SetPermissionGroupId(Aws::String &&value)
PermissionGroup & WithMembershipStatus(PermissionGroupMembershipStatus &&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