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/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();
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 const ActionGroup& GetActionGroup() const{ return m_actionGroup; }
49 inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
50 inline void SetActionGroup(const ActionGroup& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; }
51 inline void SetActionGroup(ActionGroup&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); }
52 inline PutPermissionRequest& WithActionGroup(const ActionGroup& value) { SetActionGroup(value); return *this;}
53 inline PutPermissionRequest& WithActionGroup(ActionGroup&& value) { SetActionGroup(std::move(value)); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
62 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
63 inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
64 inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
65 inline PutPermissionRequest& WithPrincipals(const Aws::Vector<Aws::String>& value) { SetPrincipals(value); return *this;}
66 inline PutPermissionRequest& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
67 inline PutPermissionRequest& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
68 inline PutPermissionRequest& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
69 inline PutPermissionRequest& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
71
73
76 inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
77 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
78 inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
79 inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
80 inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
82 inline PutPermissionRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
83 inline PutPermissionRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
85
87
93 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
94 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
95 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
96 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
97 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
98 inline PutPermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
99 inline PutPermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
100 inline PutPermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
102 private:
103
104 ActionGroup m_actionGroup;
105 bool m_actionGroupHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_principals;
108 bool m_principalsHasBeenSet = false;
109
110 Aws::String m_profilingGroupName;
111 bool m_profilingGroupNameHasBeenSet = false;
112
113 Aws::String m_revisionId;
114 bool m_revisionIdHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace CodeGuruProfiler
119} // namespace Aws
PutPermissionRequest & AddPrincipals(const Aws::String &value)
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
void SetPrincipals(const Aws::Vector< Aws::String > &value)
PutPermissionRequest & WithProfilingGroupName(const char *value)
virtual const char * GetServiceRequestName() const override
PutPermissionRequest & WithPrincipals(const Aws::Vector< Aws::String > &value)
PutPermissionRequest & WithRevisionId(Aws::String &&value)
PutPermissionRequest & WithProfilingGroupName(Aws::String &&value)
PutPermissionRequest & WithRevisionId(const Aws::String &value)
void SetPrincipals(Aws::Vector< Aws::String > &&value)
PutPermissionRequest & WithActionGroup(const ActionGroup &value)
PutPermissionRequest & WithProfilingGroupName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetPrincipals() const
PutPermissionRequest & WithRevisionId(const char *value)
PutPermissionRequest & WithActionGroup(ActionGroup &&value)
PutPermissionRequest & AddPrincipals(Aws::String &&value)
PutPermissionRequest & AddPrincipals(const char *value)
PutPermissionRequest & WithPrincipals(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector