AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetAccessControlEffectRequest.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 <utility>
11
12namespace Aws
13{
14namespace WorkMail
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_WORKMAIL_API GetAccessControlEffectRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetAccessControlEffect"; }
31
32 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
42 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
43 template<typename OrganizationIdT = Aws::String>
44 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
45 template<typename OrganizationIdT = Aws::String>
46 GetAccessControlEffectRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
54 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
55 template<typename IpAddressT = Aws::String>
56 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
57 template<typename IpAddressT = Aws::String>
58 GetAccessControlEffectRequest& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
60
62
67 inline const Aws::String& GetAction() const { return m_action; }
68 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
69 template<typename ActionT = Aws::String>
70 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
71 template<typename ActionT = Aws::String>
72 GetAccessControlEffectRequest& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
74
76
79 inline const Aws::String& GetUserId() const { return m_userId; }
80 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
81 template<typename UserIdT = Aws::String>
82 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
83 template<typename UserIdT = Aws::String>
84 GetAccessControlEffectRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
86
88
91 inline const Aws::String& GetImpersonationRoleId() const { return m_impersonationRoleId; }
92 inline bool ImpersonationRoleIdHasBeenSet() const { return m_impersonationRoleIdHasBeenSet; }
93 template<typename ImpersonationRoleIdT = Aws::String>
94 void SetImpersonationRoleId(ImpersonationRoleIdT&& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = std::forward<ImpersonationRoleIdT>(value); }
95 template<typename ImpersonationRoleIdT = Aws::String>
96 GetAccessControlEffectRequest& WithImpersonationRoleId(ImpersonationRoleIdT&& value) { SetImpersonationRoleId(std::forward<ImpersonationRoleIdT>(value)); return *this;}
98 private:
99
100 Aws::String m_organizationId;
101 bool m_organizationIdHasBeenSet = false;
102
103 Aws::String m_ipAddress;
104 bool m_ipAddressHasBeenSet = false;
105
106 Aws::String m_action;
107 bool m_actionHasBeenSet = false;
108
109 Aws::String m_userId;
110 bool m_userIdHasBeenSet = false;
111
112 Aws::String m_impersonationRoleId;
113 bool m_impersonationRoleIdHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace WorkMail
118} // namespace Aws
GetAccessControlEffectRequest & WithOrganizationId(OrganizationIdT &&value)
GetAccessControlEffectRequest & WithImpersonationRoleId(ImpersonationRoleIdT &&value)
GetAccessControlEffectRequest & WithIpAddress(IpAddressT &&value)
GetAccessControlEffectRequest & WithAction(ActionT &&value)
GetAccessControlEffectRequest & WithUserId(UserIdT &&value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
AWS_WORKMAIL_API GetAccessControlEffectRequest()=default
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String