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/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/events/CloudWatchEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/events/model/Condition.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchEvents
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHEVENTS_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_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHEVENTS_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
95 inline const Aws::String& GetStatementId() const{ return m_statementId; }
96 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
97 inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
98 inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
99 inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
100 inline PutPermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
101 inline PutPermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
102 inline PutPermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
104
106
119 inline const Condition& GetCondition() const{ return m_condition; }
120 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
121 inline void SetCondition(const Condition& value) { m_conditionHasBeenSet = true; m_condition = value; }
122 inline void SetCondition(Condition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
123 inline PutPermissionRequest& WithCondition(const Condition& value) { SetCondition(value); return *this;}
124 inline PutPermissionRequest& WithCondition(Condition&& value) { SetCondition(std::move(value)); return *this;}
126
128
134 inline const Aws::String& GetPolicy() const{ return m_policy; }
135 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
136 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
137 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
138 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
139 inline PutPermissionRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
140 inline PutPermissionRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
141 inline PutPermissionRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
143 private:
144
145 Aws::String m_eventBusName;
146 bool m_eventBusNameHasBeenSet = false;
147
148 Aws::String m_action;
149 bool m_actionHasBeenSet = false;
150
151 Aws::String m_principal;
152 bool m_principalHasBeenSet = false;
153
154 Aws::String m_statementId;
155 bool m_statementIdHasBeenSet = false;
156
157 Condition m_condition;
158 bool m_conditionHasBeenSet = false;
159
160 Aws::String m_policy;
161 bool m_policyHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace CloudWatchEvents
166} // namespace Aws
PutPermissionRequest & WithPrincipal(const Aws::String &value)
PutPermissionRequest & WithPolicy(const char *value)
PutPermissionRequest & WithAction(const Aws::String &value)
PutPermissionRequest & WithPrincipal(Aws::String &&value)
PutPermissionRequest & WithAction(Aws::String &&value)
PutPermissionRequest & WithStatementId(const char *value)
PutPermissionRequest & WithCondition(const Condition &value)
PutPermissionRequest & WithPolicy(Aws::String &&value)
PutPermissionRequest & WithEventBusName(Aws::String &&value)
PutPermissionRequest & WithEventBusName(const Aws::String &value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutPermissionRequest & WithAction(const char *value)
PutPermissionRequest & WithStatementId(Aws::String &&value)
PutPermissionRequest & WithCondition(Condition &&value)
virtual const char * GetServiceRequestName() const override
PutPermissionRequest & WithStatementId(const Aws::String &value)
PutPermissionRequest & WithPolicy(const Aws::String &value)
PutPermissionRequest & WithPrincipal(const char *value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
PutPermissionRequest & WithEventBusName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String