AWS SDK for C++  1.9.15
AWS SDK for C++
PutPermissionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodeGuruProfiler
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "PutPermission"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
47  inline const ActionGroup& GetActionGroup() const{ return m_actionGroup; }
48 
55  inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
56 
63  inline void SetActionGroup(const ActionGroup& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; }
64 
71  inline void SetActionGroup(ActionGroup&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); }
72 
79  inline PutPermissionRequest& WithActionGroup(const ActionGroup& value) { SetActionGroup(value); return *this;}
80 
87  inline PutPermissionRequest& WithActionGroup(ActionGroup&& value) { SetActionGroup(std::move(value)); return *this;}
88 
89 
94  inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
95 
100  inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
101 
106  inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
107 
112  inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
113 
118  inline PutPermissionRequest& WithPrincipals(const Aws::Vector<Aws::String>& value) { SetPrincipals(value); return *this;}
119 
124  inline PutPermissionRequest& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
125 
130  inline PutPermissionRequest& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
131 
136  inline PutPermissionRequest& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
137 
142  inline PutPermissionRequest& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
143 
144 
148  inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
149 
153  inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
154 
158  inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
159 
163  inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
164 
168  inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
169 
173  inline PutPermissionRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
174 
178  inline PutPermissionRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
179 
183  inline PutPermissionRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
184 
185 
192  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
193 
200  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
201 
208  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
209 
216  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
217 
224  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
225 
232  inline PutPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
233 
240  inline PutPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
241 
248  inline PutPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
249 
250  private:
251 
252  ActionGroup m_actionGroup;
253  bool m_actionGroupHasBeenSet;
254 
255  Aws::Vector<Aws::String> m_principals;
256  bool m_principalsHasBeenSet;
257 
258  Aws::String m_profilingGroupName;
259  bool m_profilingGroupNameHasBeenSet;
260 
261  Aws::String m_revisionId;
262  bool m_revisionIdHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace CodeGuruProfiler
267 } // namespace Aws
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetActionGroup
void SetActionGroup(ActionGroup &&value)
Definition: PutPermissionRequest.h:71
Aws::CodeGuruProfiler::Model::PutPermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutPermissionRequest.h:36
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithRevisionId
PutPermissionRequest & WithRevisionId(Aws::String &&value)
Definition: PutPermissionRequest.h:240
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: PutPermissionRequest.h:208
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: PutPermissionRequest.h:224
AWS_CODEGURUPROFILER_API
#define AWS_CODEGURUPROFILER_API
Definition: CodeGuruProfiler_EXPORTS.h:28
Aws::CodeGuruProfiler::Model::PutPermissionRequest
Definition: PutPermissionRequest.h:28
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithRevisionId
PutPermissionRequest & WithRevisionId(const Aws::String &value)
Definition: PutPermissionRequest.h:232
Aws::CodeGuruProfiler::Model::PutPermissionRequest::GetProfilingGroupName
const Aws::String & GetProfilingGroupName() const
Definition: PutPermissionRequest.h:148
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithActionGroup
PutPermissionRequest & WithActionGroup(const ActionGroup &value)
Definition: PutPermissionRequest.h:79
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetActionGroup
void SetActionGroup(const ActionGroup &value)
Definition: PutPermissionRequest.h:63
Aws::CodeGuruProfiler::Model::PutPermissionRequest::AddPrincipals
PutPermissionRequest & AddPrincipals(const Aws::String &value)
Definition: PutPermissionRequest.h:130
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeGuruProfiler::Model::PutPermissionRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: PutPermissionRequest.h:200
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetProfilingGroupName
void SetProfilingGroupName(Aws::String &&value)
Definition: PutPermissionRequest.h:163
AWSVector.h
CodeGuruProfiler_EXPORTS.h
CodeGuruProfilerRequest.h
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithPrincipals
PutPermissionRequest & WithPrincipals(Aws::Vector< Aws::String > &&value)
Definition: PutPermissionRequest.h:124
Aws::CodeGuruProfiler::Model::ActionGroup
ActionGroup
Definition: ActionGroup.h:17
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetProfilingGroupName
void SetProfilingGroupName(const Aws::String &value)
Definition: PutPermissionRequest.h:158
ActionGroup.h
Aws::CodeGuruProfiler::Model::PutPermissionRequest::PutPermissionRequest
PutPermissionRequest()
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithActionGroup
PutPermissionRequest & WithActionGroup(ActionGroup &&value)
Definition: PutPermissionRequest.h:87
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithProfilingGroupName
PutPermissionRequest & WithProfilingGroupName(Aws::String &&value)
Definition: PutPermissionRequest.h:178
Aws::CodeGuruProfiler::Model::PutPermissionRequest::AddPrincipals
PutPermissionRequest & AddPrincipals(Aws::String &&value)
Definition: PutPermissionRequest.h:136
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetPrincipals
void SetPrincipals(Aws::Vector< Aws::String > &&value)
Definition: PutPermissionRequest.h:112
AWSString.h
Aws::CodeGuruProfiler::Model::PutPermissionRequest::ProfilingGroupNameHasBeenSet
bool ProfilingGroupNameHasBeenSet() const
Definition: PutPermissionRequest.h:153
Aws::CodeGuruProfiler::Model::PutPermissionRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: PutPermissionRequest.h:192
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithProfilingGroupName
PutPermissionRequest & WithProfilingGroupName(const Aws::String &value)
Definition: PutPermissionRequest.h:173
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithPrincipals
PutPermissionRequest & WithPrincipals(const Aws::Vector< Aws::String > &value)
Definition: PutPermissionRequest.h:118
Aws::CodeGuruProfiler::Model::PutPermissionRequest::ActionGroupHasBeenSet
bool ActionGroupHasBeenSet() const
Definition: PutPermissionRequest.h:55
Aws::CodeGuruProfiler::Model::PutPermissionRequest::PrincipalsHasBeenSet
bool PrincipalsHasBeenSet() const
Definition: PutPermissionRequest.h:100
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithRevisionId
PutPermissionRequest & WithRevisionId(const char *value)
Definition: PutPermissionRequest.h:248
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetPrincipals
void SetPrincipals(const Aws::Vector< Aws::String > &value)
Definition: PutPermissionRequest.h:106
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetProfilingGroupName
void SetProfilingGroupName(const char *value)
Definition: PutPermissionRequest.h:168
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruProfiler::Model::PutPermissionRequest::WithProfilingGroupName
PutPermissionRequest & WithProfilingGroupName(const char *value)
Definition: PutPermissionRequest.h:183
Aws::CodeGuruProfiler::Model::PutPermissionRequest::AddPrincipals
PutPermissionRequest & AddPrincipals(const char *value)
Definition: PutPermissionRequest.h:142
Aws::CodeGuruProfiler::CodeGuruProfilerRequest
Definition: CodeGuruProfilerRequest.h:18
Aws::CodeGuruProfiler::Model::PutPermissionRequest::GetActionGroup
const ActionGroup & GetActionGroup() const
Definition: PutPermissionRequest.h:47
Aws::CodeGuruProfiler::Model::PutPermissionRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: PutPermissionRequest.h:216
Aws::CodeGuruProfiler::Model::PutPermissionRequest::GetPrincipals
const Aws::Vector< Aws::String > & GetPrincipals() const
Definition: PutPermissionRequest.h:94