AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRoleCustomPermissionRequest.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/quicksight/model/Role.h>
11#include <utility>
12
13namespace Aws
14{
15namespace QuickSight
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_QUICKSIGHT_API UpdateRoleCustomPermissionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateRoleCustomPermission"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetCustomPermissionsName() const { return m_customPermissionsName; }
41 inline bool CustomPermissionsNameHasBeenSet() const { return m_customPermissionsNameHasBeenSet; }
42 template<typename CustomPermissionsNameT = Aws::String>
43 void SetCustomPermissionsName(CustomPermissionsNameT&& value) { m_customPermissionsNameHasBeenSet = true; m_customPermissionsName = std::forward<CustomPermissionsNameT>(value); }
44 template<typename CustomPermissionsNameT = Aws::String>
45 UpdateRoleCustomPermissionRequest& WithCustomPermissionsName(CustomPermissionsNameT&& value) { SetCustomPermissionsName(std::forward<CustomPermissionsNameT>(value)); return *this;}
47
49
52 inline Role GetRole() const { return m_role; }
53 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
54 inline void SetRole(Role value) { m_roleHasBeenSet = true; m_role = value; }
55 inline UpdateRoleCustomPermissionRequest& WithRole(Role value) { SetRole(value); return *this;}
57
59
64 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
65 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
66 template<typename AwsAccountIdT = Aws::String>
67 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
68 template<typename AwsAccountIdT = Aws::String>
69 UpdateRoleCustomPermissionRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetNamespace() const { return m_namespace; }
77 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
78 template<typename NamespaceT = Aws::String>
79 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
80 template<typename NamespaceT = Aws::String>
81 UpdateRoleCustomPermissionRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
83 private:
84
85 Aws::String m_customPermissionsName;
86 bool m_customPermissionsNameHasBeenSet = false;
87
88 Role m_role{Role::NOT_SET};
89 bool m_roleHasBeenSet = false;
90
91 Aws::String m_awsAccountId;
92 bool m_awsAccountIdHasBeenSet = false;
93
94 Aws::String m_namespace;
95 bool m_namespaceHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace QuickSight
100} // namespace Aws
UpdateRoleCustomPermissionRequest & WithAwsAccountId(AwsAccountIdT &&value)
UpdateRoleCustomPermissionRequest & WithCustomPermissionsName(CustomPermissionsNameT &&value)
UpdateRoleCustomPermissionRequest & WithNamespace(NamespaceT &&value)
AWS_QUICKSIGHT_API UpdateRoleCustomPermissionRequest()=default
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String