AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTopicPermissionsRequest.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 UpdateTopicPermissionsRequest();
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 "UpdateTopicPermissions"; }
33
34 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
43 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
44 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
45 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
46 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
47 inline UpdateTopicPermissionsRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
48 inline UpdateTopicPermissionsRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
49 inline UpdateTopicPermissionsRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
51
53
57 inline const Aws::String& GetTopicId() const{ return m_topicId; }
58 inline bool TopicIdHasBeenSet() const { return m_topicIdHasBeenSet; }
59 inline void SetTopicId(const Aws::String& value) { m_topicIdHasBeenSet = true; m_topicId = value; }
60 inline void SetTopicId(Aws::String&& value) { m_topicIdHasBeenSet = true; m_topicId = std::move(value); }
61 inline void SetTopicId(const char* value) { m_topicIdHasBeenSet = true; m_topicId.assign(value); }
62 inline UpdateTopicPermissionsRequest& WithTopicId(const Aws::String& value) { SetTopicId(value); return *this;}
63 inline UpdateTopicPermissionsRequest& WithTopicId(Aws::String&& value) { SetTopicId(std::move(value)); return *this;}
64 inline UpdateTopicPermissionsRequest& WithTopicId(const char* value) { SetTopicId(value); return *this;}
66
68
71 inline const Aws::Vector<ResourcePermission>& GetGrantPermissions() const{ return m_grantPermissions; }
72 inline bool GrantPermissionsHasBeenSet() const { return m_grantPermissionsHasBeenSet; }
73 inline void SetGrantPermissions(const Aws::Vector<ResourcePermission>& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = value; }
74 inline void SetGrantPermissions(Aws::Vector<ResourcePermission>&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions = std::move(value); }
77 inline UpdateTopicPermissionsRequest& AddGrantPermissions(const ResourcePermission& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(value); return *this; }
78 inline UpdateTopicPermissionsRequest& AddGrantPermissions(ResourcePermission&& value) { m_grantPermissionsHasBeenSet = true; m_grantPermissions.push_back(std::move(value)); return *this; }
80
82
85 inline const Aws::Vector<ResourcePermission>& GetRevokePermissions() const{ return m_revokePermissions; }
86 inline bool RevokePermissionsHasBeenSet() const { return m_revokePermissionsHasBeenSet; }
87 inline void SetRevokePermissions(const Aws::Vector<ResourcePermission>& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = value; }
88 inline void SetRevokePermissions(Aws::Vector<ResourcePermission>&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions = std::move(value); }
91 inline UpdateTopicPermissionsRequest& AddRevokePermissions(const ResourcePermission& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(value); return *this; }
92 inline UpdateTopicPermissionsRequest& AddRevokePermissions(ResourcePermission&& value) { m_revokePermissionsHasBeenSet = true; m_revokePermissions.push_back(std::move(value)); return *this; }
94 private:
95
96 Aws::String m_awsAccountId;
97 bool m_awsAccountIdHasBeenSet = false;
98
99 Aws::String m_topicId;
100 bool m_topicIdHasBeenSet = false;
101
102 Aws::Vector<ResourcePermission> m_grantPermissions;
103 bool m_grantPermissionsHasBeenSet = false;
104
105 Aws::Vector<ResourcePermission> m_revokePermissions;
106 bool m_revokePermissionsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace QuickSight
111} // namespace Aws
const Aws::Vector< ResourcePermission > & GetRevokePermissions() const
UpdateTopicPermissionsRequest & AddGrantPermissions(const ResourcePermission &value)
UpdateTopicPermissionsRequest & AddRevokePermissions(const ResourcePermission &value)
UpdateTopicPermissionsRequest & WithGrantPermissions(Aws::Vector< ResourcePermission > &&value)
void SetGrantPermissions(const Aws::Vector< ResourcePermission > &value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
void SetRevokePermissions(Aws::Vector< ResourcePermission > &&value)
UpdateTopicPermissionsRequest & WithRevokePermissions(const Aws::Vector< ResourcePermission > &value)
void SetRevokePermissions(const Aws::Vector< ResourcePermission > &value)
UpdateTopicPermissionsRequest & WithTopicId(const Aws::String &value)
UpdateTopicPermissionsRequest & AddGrantPermissions(ResourcePermission &&value)
const Aws::Vector< ResourcePermission > & GetGrantPermissions() const
UpdateTopicPermissionsRequest & WithAwsAccountId(const Aws::String &value)
UpdateTopicPermissionsRequest & AddRevokePermissions(ResourcePermission &&value)
UpdateTopicPermissionsRequest & WithTopicId(const char *value)
void SetGrantPermissions(Aws::Vector< ResourcePermission > &&value)
UpdateTopicPermissionsRequest & WithGrantPermissions(const Aws::Vector< ResourcePermission > &value)
UpdateTopicPermissionsRequest & WithTopicId(Aws::String &&value)
UpdateTopicPermissionsRequest & WithAwsAccountId(Aws::String &&value)
UpdateTopicPermissionsRequest & WithAwsAccountId(const char *value)
UpdateTopicPermissionsRequest & WithRevokePermissions(Aws::Vector< ResourcePermission > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector