AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRoleMembershipRequest.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 CreateRoleMembershipRequest();
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 "CreateRoleMembership"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetMemberName() const{ return m_memberName; }
41 inline bool MemberNameHasBeenSet() const { return m_memberNameHasBeenSet; }
42 inline void SetMemberName(const Aws::String& value) { m_memberNameHasBeenSet = true; m_memberName = value; }
43 inline void SetMemberName(Aws::String&& value) { m_memberNameHasBeenSet = true; m_memberName = std::move(value); }
44 inline void SetMemberName(const char* value) { m_memberNameHasBeenSet = true; m_memberName.assign(value); }
45 inline CreateRoleMembershipRequest& WithMemberName(const Aws::String& value) { SetMemberName(value); return *this;}
46 inline CreateRoleMembershipRequest& WithMemberName(Aws::String&& value) { SetMemberName(std::move(value)); return *this;}
47 inline CreateRoleMembershipRequest& WithMemberName(const char* value) { SetMemberName(value); return *this;}
49
51
56 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
57 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
58 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
59 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
60 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
61 inline CreateRoleMembershipRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
62 inline CreateRoleMembershipRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
63 inline CreateRoleMembershipRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
65
67
70 inline const Aws::String& GetNamespace() const{ return m_namespace; }
71 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
72 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
73 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
74 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
75 inline CreateRoleMembershipRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
76 inline CreateRoleMembershipRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
77 inline CreateRoleMembershipRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
79
81
84 inline const Role& GetRole() const{ return m_role; }
85 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
86 inline void SetRole(const Role& value) { m_roleHasBeenSet = true; m_role = value; }
87 inline void SetRole(Role&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
88 inline CreateRoleMembershipRequest& WithRole(const Role& value) { SetRole(value); return *this;}
89 inline CreateRoleMembershipRequest& WithRole(Role&& value) { SetRole(std::move(value)); return *this;}
91 private:
92
93 Aws::String m_memberName;
94 bool m_memberNameHasBeenSet = false;
95
96 Aws::String m_awsAccountId;
97 bool m_awsAccountIdHasBeenSet = false;
98
99 Aws::String m_namespace;
100 bool m_namespaceHasBeenSet = false;
101
102 Role m_role;
103 bool m_roleHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace QuickSight
108} // namespace Aws
CreateRoleMembershipRequest & WithNamespace(Aws::String &&value)
CreateRoleMembershipRequest & WithRole(Role &&value)
CreateRoleMembershipRequest & WithMemberName(const char *value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateRoleMembershipRequest & WithMemberName(Aws::String &&value)
CreateRoleMembershipRequest & WithRole(const Role &value)
CreateRoleMembershipRequest & WithMemberName(const Aws::String &value)
CreateRoleMembershipRequest & WithNamespace(const Aws::String &value)
CreateRoleMembershipRequest & WithNamespace(const char *value)
CreateRoleMembershipRequest & WithAwsAccountId(Aws::String &&value)
CreateRoleMembershipRequest & WithAwsAccountId(const Aws::String &value)
CreateRoleMembershipRequest & WithAwsAccountId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String