AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAnalysisPermissionsRequest.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:
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 "UpdateAnalysisPermissions"; }
33
34 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
44 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
45 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
46 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
47 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
49 inline UpdateAnalysisPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
50 inline UpdateAnalysisPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
52
54
58 inline const Aws::String& GetAnalysisId() const{ return m_analysisId; }
59 inline bool AnalysisIdHasBeenSet() const { return m_analysisIdHasBeenSet; }
60 inline void SetAnalysisId(const Aws::String& value) { m_analysisIdHasBeenSet = true; m_analysisId = value; }
61 inline void SetAnalysisId(Aws::String&& value) { m_analysisIdHasBeenSet = true; m_analysisId = std::move(value); }
62 inline void SetAnalysisId(const char* value) { m_analysisIdHasBeenSet = true; m_analysisId.assign(value); }
63 inline UpdateAnalysisPermissionsRequest& WithAnalysisId(const Aws::String& value) { SetAnalysisId(value); return *this;}
64 inline UpdateAnalysisPermissionsRequest& WithAnalysisId(Aws::String&& value) { SetAnalysisId(std::move(value)); return *this;}
65 inline UpdateAnalysisPermissionsRequest& WithAnalysisId(const char* value) { SetAnalysisId(value); return *this;}
67
69
73 inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const{ return m_grantPermissions; }
74 inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
75 inline void SetGrantPermissions(const Aws::Vector<ResourcePermission>& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = value; }
76 inline void SetGrantPermissions(Aws::Vector<ResourcePermission>&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = std::move(value); }
79 inline UpdateAnalysisPermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
80 inline UpdateAnalysisPermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; }
82
84
88 inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const{ return m_revokePermissions; }
89 inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
90 inline void SetRevokePermissions(const Aws::Vector<ResourcePermission>& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; }
91 inline void SetRevokePermissions(Aws::Vector<ResourcePermission>&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); }
94 inline UpdateAnalysisPermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
95 inline UpdateAnalysisPermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_awsAccountId;
100 bool m_awsAccountIdHasBeenSet = false;
101
102 Aws::String m_analysisId;
103 bool m_analysisIdHasBeenSet = false;
104
105 Aws::Vector<ResourcePermission> m_grantPermissions;
106 bool m_grantPermissionsHasBeenSet = false;
107
108 Aws::Vector<ResourcePermission> m_revokePermissions;
109 bool m_revokePermissionsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace QuickSight
114} // namespace Aws
UpdateAnalysisPermissionsRequest & WithGrantPermissions(const Aws::Vector< ResourcePermission > &value)
void SetGrantPermissions(Aws::Vector< ResourcePermission > &&value)
UpdateAnalysisPermissionsRequest & AddGrantPermissions(ResourcePermission &&value)
UpdateAnalysisPermissionsRequest & WithAwsAccountId(Aws::String &&value)
UpdateAnalysisPermissionsRequest & AddGrantPermissions(const ResourcePermission &value)
UpdateAnalysisPermissionsRequest & WithAnalysisId(const char *value)
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
UpdateAnalysisPermissionsRequest & WithAwsAccountId(const Aws::String &value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
UpdateAnalysisPermissionsRequest & WithRevokePermissions(const Aws::Vector< ResourcePermission > &value)
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
UpdateAnalysisPermissionsRequest & WithGrantPermissions(Aws::Vector< ResourcePermission > &&value)
UpdateAnalysisPermissionsRequest & AddRevokePermissions(const ResourcePermission &value)
UpdateAnalysisPermissionsRequest & WithAwsAccountId(const char *value)
UpdateAnalysisPermissionsRequest & WithAnalysisId(Aws::String &&value)
void SetRevokePermissions(const Aws::Vector< ResourcePermission > &value)
UpdateAnalysisPermissionsRequest & AddRevokePermissions(ResourcePermission &&value)
UpdateAnalysisPermissionsRequest & WithAnalysisId(const Aws::String &value)
UpdateAnalysisPermissionsRequest & WithRevokePermissions(Aws::Vector< ResourcePermission > &&value)
void SetGrantPermissions(const Aws::Vector< ResourcePermission > &value)
void SetRevokePermissions(Aws::Vector< ResourcePermission > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector