AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutPermissionRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
9#include <aws/codeguruprofiler/model/ActionGroup.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeGuruProfiler
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_CODEGURUPROFILER_API PutPermissionRequest() = default;
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_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
39
40
42
48 inline ActionGroup GetActionGroup() const { return m_actionGroup; }
49 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
50 inline void SetActionGroup(ActionGroup value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; }
51 inline PutPermissionRequest& WithActionGroup(ActionGroup value) { SetActionGroup(value); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
60 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
61 template<typename PrincipalsT = Aws::Vector<Aws::String>>
62 void SetPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals = std::forward<PrincipalsT>(value); }
63 template<typename PrincipalsT = Aws::Vector<Aws::String>>
64 PutPermissionRequest& WithPrincipals(PrincipalsT&& value) { SetPrincipals(std::forward<PrincipalsT>(value)); return *this;}
65 template<typename PrincipalsT = Aws::String>
66 PutPermissionRequest& AddPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals.emplace_back(std::forward<PrincipalsT>(value)); return *this; }
68
70
73 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
74 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
75 template<typename ProfilingGroupNameT = Aws::String>
76 void SetProfilingGroupName(ProfilingGroupNameT&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::forward<ProfilingGroupNameT>(value); }
77 template<typename ProfilingGroupNameT = Aws::String>
78 PutPermissionRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) { SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value)); return *this;}
80
82
88 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
89 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
90 template<typename RevisionIdT = Aws::String>
91 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
92 template<typename RevisionIdT = Aws::String>
93 PutPermissionRequest& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
95 private:
96
97 ActionGroup m_actionGroup{ActionGroup::NOT_SET};
98 bool m_actionGroupHasBeenSet = false;
99
100 Aws::Vector<Aws::String> m_principals;
101 bool m_principalsHasBeenSet = false;
102
103 Aws::String m_profilingGroupName;
104 bool m_profilingGroupNameHasBeenSet = false;
105
106 Aws::String m_revisionId;
107 bool m_revisionIdHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CodeGuruProfiler
112} // 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