AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CreateRoleMembershipRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/Role.h>
11
12#include <utility>
13
14namespace Aws {
15namespace QuickSight {
16namespace Model {
17
21 public:
22 AWS_QUICKSIGHT_API CreateRoleMembershipRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateRoleMembership"; }
29
30 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetMemberName() const { return m_memberName; }
37 inline bool MemberNameHasBeenSet() const { return m_memberNameHasBeenSet; }
38 template <typename MemberNameT = Aws::String>
39 void SetMemberName(MemberNameT&& value) {
40 m_memberNameHasBeenSet = true;
41 m_memberName = std::forward<MemberNameT>(value);
42 }
43 template <typename MemberNameT = Aws::String>
45 SetMemberName(std::forward<MemberNameT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
57 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
58 template <typename AwsAccountIdT = Aws::String>
59 void SetAwsAccountId(AwsAccountIdT&& value) {
60 m_awsAccountIdHasBeenSet = true;
61 m_awsAccountId = std::forward<AwsAccountIdT>(value);
62 }
63 template <typename AwsAccountIdT = Aws::String>
65 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetNamespace() const { return m_namespace; }
75 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
76 template <typename NamespaceT = Aws::String>
77 void SetNamespace(NamespaceT&& value) {
78 m_namespaceHasBeenSet = true;
79 m_namespace = std::forward<NamespaceT>(value);
80 }
81 template <typename NamespaceT = Aws::String>
83 SetNamespace(std::forward<NamespaceT>(value));
84 return *this;
85 }
87
89
92 inline Role GetRole() const { return m_role; }
93 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
94 inline void SetRole(Role value) {
95 m_roleHasBeenSet = true;
96 m_role = value;
97 }
99 SetRole(value);
100 return *this;
101 }
103 private:
104 Aws::String m_memberName;
105
106 Aws::String m_awsAccountId;
107
108 Aws::String m_namespace;
109
110 Role m_role{Role::NOT_SET};
111 bool m_memberNameHasBeenSet = false;
112 bool m_awsAccountIdHasBeenSet = false;
113 bool m_namespaceHasBeenSet = false;
114 bool m_roleHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace QuickSight
119} // namespace Aws
AWS_QUICKSIGHT_API CreateRoleMembershipRequest()=default
CreateRoleMembershipRequest & WithAwsAccountId(AwsAccountIdT &&value)
CreateRoleMembershipRequest & WithMemberName(MemberNameT &&value)
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateRoleMembershipRequest & WithNamespace(NamespaceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String