AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RemovePermissionRequest.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EventBridge
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EVENTBRIDGE_API RemovePermissionRequest();
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 "RemovePermission"; }
31
32 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
33
34 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline const Aws::String& GetStatementId() const{ return m_statementId; }
43 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
44 inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
45 inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
46 inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
47 inline RemovePermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
48 inline RemovePermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
49 inline RemovePermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
51
53
56 inline bool GetRemoveAllPermissions() const{ return m_removeAllPermissions; }
57 inline bool RemoveAllPermissionsHasBeenSet() const { return m_removeAllPermissionsHasBeenSet; }
58 inline void SetRemoveAllPermissions(bool value) { m_removeAllPermissionsHasBeenSet = true; m_removeAllPermissions = value; }
61
63
67 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
68 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
69 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
70 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
71 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
72 inline RemovePermissionRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
73 inline RemovePermissionRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
74 inline RemovePermissionRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
76 private:
77
78 Aws::String m_statementId;
79 bool m_statementIdHasBeenSet = false;
80
81 bool m_removeAllPermissions;
82 bool m_removeAllPermissionsHasBeenSet = false;
83
84 Aws::String m_eventBusName;
85 bool m_eventBusNameHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace EventBridge
90} // namespace Aws
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
RemovePermissionRequest & WithEventBusName(const char *value)
RemovePermissionRequest & WithEventBusName(const Aws::String &value)
RemovePermissionRequest & WithRemoveAllPermissions(bool value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RemovePermissionRequest & WithStatementId(const Aws::String &value)
RemovePermissionRequest & WithStatementId(Aws::String &&value)
RemovePermissionRequest & WithEventBusName(Aws::String &&value)
RemovePermissionRequest & WithStatementId(const char *value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String