AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PutPermissionRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
8#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
9#include <aws/codeguruprofiler/model/ActionGroup.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeGuruProfiler {
17namespace Model {
18
26 public:
27 AWS_CODEGURUPROFILER_API PutPermissionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutPermission"; }
34
35 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
36
38
44 inline ActionGroup GetActionGroup() const { return m_actionGroup; }
45 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
46 inline void SetActionGroup(ActionGroup value) {
47 m_actionGroupHasBeenSet = true;
48 m_actionGroup = value;
49 }
51 SetActionGroup(value);
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
62 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
63 template <typename PrincipalsT = Aws::Vector<Aws::String>>
64 void SetPrincipals(PrincipalsT&& value) {
65 m_principalsHasBeenSet = true;
66 m_principals = std::forward<PrincipalsT>(value);
67 }
68 template <typename PrincipalsT = Aws::Vector<Aws::String>>
69 PutPermissionRequest& WithPrincipals(PrincipalsT&& value) {
70 SetPrincipals(std::forward<PrincipalsT>(value));
71 return *this;
72 }
73 template <typename PrincipalsT = Aws::String>
74 PutPermissionRequest& AddPrincipals(PrincipalsT&& value) {
75 m_principalsHasBeenSet = true;
76 m_principals.emplace_back(std::forward<PrincipalsT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
86 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
87 template <typename ProfilingGroupNameT = Aws::String>
88 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
89 m_profilingGroupNameHasBeenSet = true;
90 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
91 }
92 template <typename ProfilingGroupNameT = Aws::String>
93 PutPermissionRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) {
94 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
95 return *this;
96 }
98
100
106 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
107 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
108 template <typename RevisionIdT = Aws::String>
109 void SetRevisionId(RevisionIdT&& value) {
110 m_revisionIdHasBeenSet = true;
111 m_revisionId = std::forward<RevisionIdT>(value);
112 }
113 template <typename RevisionIdT = Aws::String>
114 PutPermissionRequest& WithRevisionId(RevisionIdT&& value) {
115 SetRevisionId(std::forward<RevisionIdT>(value));
116 return *this;
117 }
119 private:
120 ActionGroup m_actionGroup{ActionGroup::NOT_SET};
121
122 Aws::Vector<Aws::String> m_principals;
123
124 Aws::String m_profilingGroupName;
125
126 Aws::String m_revisionId;
127 bool m_actionGroupHasBeenSet = false;
128 bool m_principalsHasBeenSet = false;
129 bool m_profilingGroupNameHasBeenSet = false;
130 bool m_revisionIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace CodeGuruProfiler
135} // namespace Aws
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
PutPermissionRequest & WithRevisionId(RevisionIdT &&value)
PutPermissionRequest & WithPrincipals(PrincipalsT &&value)
virtual const char * GetServiceRequestName() const override
PutPermissionRequest & WithActionGroup(ActionGroup value)
PutPermissionRequest & AddPrincipals(PrincipalsT &&value)
AWS_CODEGURUPROFILER_API PutPermissionRequest()=default
PutPermissionRequest & WithProfilingGroupName(ProfilingGroupNameT &&value)
const Aws::Vector< Aws::String > & GetPrincipals() const
void SetProfilingGroupName(ProfilingGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector