AWS SDK for C++

AWS SDK for C++ Version 1.11.679

Loading...
Searching...
No Matches
UpdatePermissionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/grafana/ManagedGrafanaRequest.h>
10#include <aws/grafana/ManagedGrafana_EXPORTS.h>
11#include <aws/grafana/model/UpdateInstruction.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ManagedGrafana {
17namespace Model {
18
22 public:
23 AWS_MANAGEDGRAFANA_API UpdatePermissionsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdatePermissions"; }
30
31 AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::Vector<UpdateInstruction>& GetUpdateInstructionBatch() const { return m_updateInstructionBatch; }
38 inline bool UpdateInstructionBatchHasBeenSet() const { return m_updateInstructionBatchHasBeenSet; }
39 template <typename UpdateInstructionBatchT = Aws::Vector<UpdateInstruction>>
40 void SetUpdateInstructionBatch(UpdateInstructionBatchT&& value) {
41 m_updateInstructionBatchHasBeenSet = true;
42 m_updateInstructionBatch = std::forward<UpdateInstructionBatchT>(value);
43 }
44 template <typename UpdateInstructionBatchT = Aws::Vector<UpdateInstruction>>
45 UpdatePermissionsRequest& WithUpdateInstructionBatch(UpdateInstructionBatchT&& value) {
46 SetUpdateInstructionBatch(std::forward<UpdateInstructionBatchT>(value));
47 return *this;
48 }
49 template <typename UpdateInstructionBatchT = UpdateInstruction>
50 UpdatePermissionsRequest& AddUpdateInstructionBatch(UpdateInstructionBatchT&& value) {
51 m_updateInstructionBatchHasBeenSet = true;
52 m_updateInstructionBatch.emplace_back(std::forward<UpdateInstructionBatchT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
62 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
63 template <typename WorkspaceIdT = Aws::String>
64 void SetWorkspaceId(WorkspaceIdT&& value) {
65 m_workspaceIdHasBeenSet = true;
66 m_workspaceId = std::forward<WorkspaceIdT>(value);
67 }
68 template <typename WorkspaceIdT = Aws::String>
70 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
71 return *this;
72 }
74 private:
75 Aws::Vector<UpdateInstruction> m_updateInstructionBatch;
76 bool m_updateInstructionBatchHasBeenSet = false;
77
78 Aws::String m_workspaceId;
79 bool m_workspaceIdHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ManagedGrafana
84} // namespace Aws
UpdatePermissionsRequest & WithUpdateInstructionBatch(UpdateInstructionBatchT &&value)
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
UpdatePermissionsRequest & WithWorkspaceId(WorkspaceIdT &&value)
void SetUpdateInstructionBatch(UpdateInstructionBatchT &&value)
AWS_MANAGEDGRAFANA_API UpdatePermissionsRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< UpdateInstruction > & GetUpdateInstructionBatch() const
UpdatePermissionsRequest & AddUpdateInstructionBatch(UpdateInstructionBatchT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector