AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutPermissionRequest.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 <aws/eventbridge/model/Condition.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EventBridge
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EVENTBRIDGE_API PutPermissionRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutPermission"; }
32
33 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
34
35 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
44 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
45 inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
46 inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
47 inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
48 inline PutPermissionRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
49 inline PutPermissionRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
50 inline PutPermissionRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
52
54
57 inline const Aws::String& GetAction() const{ return m_action; }
58 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
59 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
60 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
61 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
62 inline PutPermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
63 inline PutPermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
64 inline PutPermissionRequest& WithAction(const char* value) { SetAction(value); return *this;}
66
68
78 inline const Aws::String& GetPrincipal() const{ return m_principal; }
79 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
80 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
81 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
82 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
83 inline PutPermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
84 inline PutPermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
85 inline PutPermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
87
89
96 inline const Aws::String& GetStatementId() const{ return m_statementId; }
97 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
98 inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
99 inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
100 inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
101 inline PutPermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
102 inline PutPermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
103 inline PutPermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
105
107
120 inline const Condition& GetCondition() const{ return m_condition; }
121 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
122 inline void SetCondition(const Condition& value) { m_conditionHasBeenSet = true; m_condition = value; }
123 inline void SetCondition(Condition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
124 inline PutPermissionRequest& WithCondition(const Condition& value) { SetCondition(value); return *this;}
125 inline PutPermissionRequest& WithCondition(Condition&& value) { SetCondition(std::move(value)); return *this;}
127
129
135 inline const Aws::String& GetPolicy() const{ return m_policy; }
136 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
137 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
138 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
139 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
140 inline PutPermissionRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
141 inline PutPermissionRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
142 inline PutPermissionRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
144 private:
145
146 Aws::String m_eventBusName;
147 bool m_eventBusNameHasBeenSet = false;
148
149 Aws::String m_action;
150 bool m_actionHasBeenSet = false;
151
152 Aws::String m_principal;
153 bool m_principalHasBeenSet = false;
154
155 Aws::String m_statementId;
156 bool m_statementIdHasBeenSet = false;
157
158 Condition m_condition;
159 bool m_conditionHasBeenSet = false;
160
161 Aws::String m_policy;
162 bool m_policyHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace EventBridge
167} // namespace Aws
PutPermissionRequest & WithEventBusName(Aws::String &&value)
PutPermissionRequest & WithAction(Aws::String &&value)
PutPermissionRequest & WithEventBusName(const Aws::String &value)
PutPermissionRequest & WithStatementId(const Aws::String &value)
PutPermissionRequest & WithPrincipal(const Aws::String &value)
PutPermissionRequest & WithCondition(Condition &&value)
PutPermissionRequest & WithPolicy(Aws::String &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutPermissionRequest & WithStatementId(Aws::String &&value)
PutPermissionRequest & WithStatementId(const char *value)
PutPermissionRequest & WithPrincipal(const char *value)
PutPermissionRequest & WithPolicy(const Aws::String &value)
PutPermissionRequest & WithAction(const char *value)
PutPermissionRequest & WithEventBusName(const char *value)
virtual const char * GetServiceRequestName() const override
PutPermissionRequest & WithAction(const Aws::String &value)
PutPermissionRequest & WithPrincipal(Aws::String &&value)
PutPermissionRequest & WithPolicy(const char *value)
PutPermissionRequest & WithCondition(const Condition &value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String