AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = 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 "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 template<typename MemberNameT = Aws::String>
43 void SetMemberName(MemberNameT&& value) { m_memberNameHasBeenSet = true; m_memberName = std::forward<MemberNameT>(value); }
44 template<typename MemberNameT = Aws::String>
45 CreateRoleMembershipRequest& WithMemberName(MemberNameT&& value) { SetMemberName(std::forward<MemberNameT>(value)); return *this;}
47
49
54 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
55 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
56 template<typename AwsAccountIdT = Aws::String>
57 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
58 template<typename AwsAccountIdT = Aws::String>
59 CreateRoleMembershipRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetNamespace() const { return m_namespace; }
67 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
68 template<typename NamespaceT = Aws::String>
69 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
70 template<typename NamespaceT = Aws::String>
71 CreateRoleMembershipRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
73
75
78 inline Role GetRole() const { return m_role; }
79 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
80 inline void SetRole(Role value) { m_roleHasBeenSet = true; m_role = value; }
81 inline CreateRoleMembershipRequest& WithRole(Role value) { SetRole(value); return *this;}
83 private:
84
85 Aws::String m_memberName;
86 bool m_memberNameHasBeenSet = false;
87
88 Aws::String m_awsAccountId;
89 bool m_awsAccountIdHasBeenSet = false;
90
91 Aws::String m_namespace;
92 bool m_namespaceHasBeenSet = false;
93
94 Role m_role{Role::NOT_SET};
95 bool m_roleHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace QuickSight
100} // 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