AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDataSetPermissionsRequest.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/quicksight/model/ResourcePermission.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QuickSight
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QUICKSIGHT_API UpdateDataSetPermissionsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSetPermissions"; }
33
34 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
42 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
43 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
44 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
45 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
46 inline UpdateDataSetPermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
47 inline UpdateDataSetPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
48 inline UpdateDataSetPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
50
52
56 inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
57 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
58 inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
59 inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
60 inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
61 inline UpdateDataSetPermissionsRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
62 inline UpdateDataSetPermissionsRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
63 inline UpdateDataSetPermissionsRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
65
67
70 inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const{ return m_grantPermissions; }
71 inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
72 inline void SetGrantPermissions(const Aws::Vector<ResourcePermission>& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = value; }
73 inline void SetGrantPermissions(Aws::Vector<ResourcePermission>&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = std::move(value); }
76 inline UpdateDataSetPermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
77 inline UpdateDataSetPermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; }
79
81
84 inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const{ return m_revokePermissions; }
85 inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
86 inline void SetRevokePermissions(const Aws::Vector<ResourcePermission>& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; }
87 inline void SetRevokePermissions(Aws::Vector<ResourcePermission>&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); }
90 inline UpdateDataSetPermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
91 inline UpdateDataSetPermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; }
93 private:
94
95 Aws::String m_awsAccountId;
96 bool m_awsAccountIdHasBeenSet = false;
97
98 Aws::String m_dataSetId;
99 bool m_dataSetIdHasBeenSet = false;
100
101 Aws::Vector<ResourcePermission> m_grantPermissions;
102 bool m_grantPermissionsHasBeenSet = false;
103
104 Aws::Vector<ResourcePermission> m_revokePermissions;
105 bool m_revokePermissionsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace QuickSight
110} // namespace Aws
UpdateDataSetPermissionsRequest & AddGrantPermissions(const ResourcePermission &value)
UpdateDataSetPermissionsRequest & AddRevokePermissions(ResourcePermission &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
void SetGrantPermissions(Aws::Vector< ResourcePermission > &&value)
void SetRevokePermissions(const Aws::Vector< ResourcePermission > &value)
UpdateDataSetPermissionsRequest & AddRevokePermissions(const ResourcePermission &value)
UpdateDataSetPermissionsRequest & WithGrantPermissions(const Aws::Vector< ResourcePermission > &value)
UpdateDataSetPermissionsRequest & AddGrantPermissions(ResourcePermission &&value)
void SetGrantPermissions(const Aws::Vector< ResourcePermission > &value)
UpdateDataSetPermissionsRequest & WithAwsAccountId(Aws::String &&value)
UpdateDataSetPermissionsRequest & WithRevokePermissions(const Aws::Vector< ResourcePermission > &value)
void SetRevokePermissions(Aws::Vector< ResourcePermission > &&value)
UpdateDataSetPermissionsRequest & WithDataSetId(const char *value)
UpdateDataSetPermissionsRequest & WithAwsAccountId(const char *value)
UpdateDataSetPermissionsRequest & WithDataSetId(const Aws::String &value)
UpdateDataSetPermissionsRequest & WithRevokePermissions(Aws::Vector< ResourcePermission > &&value)
UpdateDataSetPermissionsRequest & WithDataSetId(Aws::String &&value)
UpdateDataSetPermissionsRequest & WithAwsAccountId(const Aws::String &value)
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
UpdateDataSetPermissionsRequest & WithGrantPermissions(Aws::Vector< ResourcePermission > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector