AWS SDK for C++  1.8.71
AWS SDK for C++
RemovePermissionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace CodeGuruProfiler
20 {
21 namespace Model
22 {
23 
32  {
33  public:
35 
36  // Service request name is the Operation name which will send this request out,
37  // each operation should has unique request name, so that we can get operation's name from this request.
38  // Note: this is not true for response, multiple operations may have the same response name,
39  // so we can not get operation's name from response.
40  inline virtual const char* GetServiceRequestName() const override { return "RemovePermission"; }
41 
42  Aws::String SerializePayload() const override;
43 
44  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
45 
46 
53  inline const ActionGroup& GetActionGroup() const{ return m_actionGroup; }
54 
61  inline bool ActionGroupHasBeenSet() const { return m_actionGroupHasBeenSet; }
62 
69  inline void SetActionGroup(const ActionGroup& value) { m_actionGroupHasBeenSet = true; m_actionGroup = value; }
70 
77  inline void SetActionGroup(ActionGroup&& value) { m_actionGroupHasBeenSet = true; m_actionGroup = std::move(value); }
78 
85  inline RemovePermissionRequest& WithActionGroup(const ActionGroup& value) { SetActionGroup(value); return *this;}
86 
93  inline RemovePermissionRequest& WithActionGroup(ActionGroup&& value) { SetActionGroup(std::move(value)); return *this;}
94 
95 
99  inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
100 
104  inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
105 
109  inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
110 
114  inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
115 
119  inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
120 
124  inline RemovePermissionRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
125 
129  inline RemovePermissionRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
130 
134  inline RemovePermissionRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
135 
136 
141  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
142 
147  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
148 
153  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
154 
159  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
160 
165  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
166 
171  inline RemovePermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
172 
177  inline RemovePermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
178 
183  inline RemovePermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
184 
185  private:
186 
187  ActionGroup m_actionGroup;
188  bool m_actionGroupHasBeenSet;
189 
190  Aws::String m_profilingGroupName;
191  bool m_profilingGroupNameHasBeenSet;
192 
193  Aws::String m_revisionId;
194  bool m_revisionIdHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace CodeGuruProfiler
199 } // namespace Aws
RemovePermissionRequest & WithRevisionId(const Aws::String &value)
RemovePermissionRequest & WithRevisionId(const char *value)
virtual const char * GetServiceRequestName() const override
RemovePermissionRequest & WithActionGroup(const ActionGroup &value)
RemovePermissionRequest & WithProfilingGroupName(Aws::String &&value)
RemovePermissionRequest & WithRevisionId(Aws::String &&value)
#define AWS_CODEGURUPROFILER_API
RemovePermissionRequest & WithActionGroup(ActionGroup &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RemovePermissionRequest & WithProfilingGroupName(const char *value)
RemovePermissionRequest & WithProfilingGroupName(const Aws::String &value)