AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RemovePermissionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EventBridge {
15namespace Model {
16
20 public:
21 AWS_EVENTBRIDGE_API RemovePermissionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "RemovePermission"; }
28
29 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
30
31 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetStatementId() const { return m_statementId; }
39 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
40 template <typename StatementIdT = Aws::String>
41 void SetStatementId(StatementIdT&& value) {
42 m_statementIdHasBeenSet = true;
43 m_statementId = std::forward<StatementIdT>(value);
44 }
45 template <typename StatementIdT = Aws::String>
47 SetStatementId(std::forward<StatementIdT>(value));
48 return *this;
49 }
51
53
56 inline bool GetRemoveAllPermissions() const { return m_removeAllPermissions; }
57 inline bool RemoveAllPermissionsHasBeenSet() const { return m_removeAllPermissionsHasBeenSet; }
58 inline void SetRemoveAllPermissions(bool value) {
59 m_removeAllPermissionsHasBeenSet = true;
60 m_removeAllPermissions = value;
61 }
64 return *this;
65 }
67
69
73 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
74 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
75 template <typename EventBusNameT = Aws::String>
76 void SetEventBusName(EventBusNameT&& value) {
77 m_eventBusNameHasBeenSet = true;
78 m_eventBusName = std::forward<EventBusNameT>(value);
79 }
80 template <typename EventBusNameT = Aws::String>
81 RemovePermissionRequest& WithEventBusName(EventBusNameT&& value) {
82 SetEventBusName(std::forward<EventBusNameT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_statementId;
88
89 bool m_removeAllPermissions{false};
90
91 Aws::String m_eventBusName;
92 bool m_statementIdHasBeenSet = false;
93 bool m_removeAllPermissionsHasBeenSet = false;
94 bool m_eventBusNameHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace EventBridge
99} // namespace Aws
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
RemovePermissionRequest & WithEventBusName(EventBusNameT &&value)
RemovePermissionRequest & WithRemoveAllPermissions(bool value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EVENTBRIDGE_API RemovePermissionRequest()=default
RemovePermissionRequest & WithStatementId(StatementIdT &&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