AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutMailboxPermissionsRequest.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workmail/model/PermissionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkMail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKMAIL_API PutMailboxPermissionsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutMailboxPermissions"; }
33
34 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
45 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
46 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
47 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
48 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
50 inline PutMailboxPermissionsRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
51 inline PutMailboxPermissionsRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
53
55
64 inline const Aws::String& GetEntityId() const{ return m_entityId; }
65 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
66 inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
67 inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
68 inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
69 inline PutMailboxPermissionsRequest& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
70 inline PutMailboxPermissionsRequest& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
71 inline PutMailboxPermissionsRequest& WithEntityId(const char* value) { SetEntityId(value); return *this;}
73
75
84 inline const Aws::String& GetGranteeId() const{ return m_granteeId; }
85 inline bool GranteeIdHasBeenSet() const { return m_granteeIdHasBeenSet; }
86 inline void SetGranteeId(const Aws::String& value) { m_granteeIdHasBeenSet = true; m_granteeId = value; }
87 inline void SetGranteeId(Aws::String&& value) { m_granteeIdHasBeenSet = true; m_granteeId = std::move(value); }
88 inline void SetGranteeId(const char* value) { m_granteeIdHasBeenSet = true; m_granteeId.assign(value); }
89 inline PutMailboxPermissionsRequest& WithGranteeId(const Aws::String& value) { SetGranteeId(value); return *this;}
90 inline PutMailboxPermissionsRequest& WithGranteeId(Aws::String&& value) { SetGranteeId(std::move(value)); return *this;}
91 inline PutMailboxPermissionsRequest& WithGranteeId(const char* value) { SetGranteeId(value); return *this;}
93
95
103 inline const Aws::Vector<PermissionType>& GetPermissionValues() const{ return m_permissionValues; }
104 inline bool PermissionValuesHasBeenSet() const { return m_permissionValuesHasBeenSet; }
105 inline void SetPermissionValues(const Aws::Vector<PermissionType>& value) { m_permissionValuesHasBeenSet = true; m_permissionValues = value; }
106 inline void SetPermissionValues(Aws::Vector<PermissionType>&& value) { m_permissionValuesHasBeenSet = true; m_permissionValues = std::move(value); }
109 inline PutMailboxPermissionsRequest& AddPermissionValues(const PermissionType& value) { m_permissionValuesHasBeenSet = true; m_permissionValues.push_back(value); return *this; }
110 inline PutMailboxPermissionsRequest& AddPermissionValues(PermissionType&& value) { m_permissionValuesHasBeenSet = true; m_permissionValues.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::String m_organizationId;
115 bool m_organizationIdHasBeenSet = false;
116
117 Aws::String m_entityId;
118 bool m_entityIdHasBeenSet = false;
119
120 Aws::String m_granteeId;
121 bool m_granteeIdHasBeenSet = false;
122
123 Aws::Vector<PermissionType> m_permissionValues;
124 bool m_permissionValuesHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace WorkMail
129} // namespace Aws
PutMailboxPermissionsRequest & AddPermissionValues(PermissionType &&value)
PutMailboxPermissionsRequest & WithOrganizationId(const char *value)
PutMailboxPermissionsRequest & WithPermissionValues(const Aws::Vector< PermissionType > &value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
PutMailboxPermissionsRequest & WithGranteeId(const Aws::String &value)
PutMailboxPermissionsRequest & WithPermissionValues(Aws::Vector< PermissionType > &&value)
PutMailboxPermissionsRequest & WithGranteeId(const char *value)
PutMailboxPermissionsRequest & WithEntityId(const char *value)
PutMailboxPermissionsRequest & WithEntityId(const Aws::String &value)
PutMailboxPermissionsRequest & WithGranteeId(Aws::String &&value)
const Aws::Vector< PermissionType > & GetPermissionValues() const
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetPermissionValues(const Aws::Vector< PermissionType > &value)
void SetPermissionValues(Aws::Vector< PermissionType > &&value)
PutMailboxPermissionsRequest & WithEntityId(Aws::String &&value)
PutMailboxPermissionsRequest & AddPermissionValues(const PermissionType &value)
PutMailboxPermissionsRequest & WithOrganizationId(Aws::String &&value)
PutMailboxPermissionsRequest & WithOrganizationId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector