AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateProjectMembershipRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/model/UserDesignation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/Member.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DataZone
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DATAZONE_API CreateProjectMembershipRequest() = default;
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 "CreateProjectMembership"; }
33
34 AWS_DATAZONE_API Aws::String SerializePayload() const override;
35
36
38
41 inline UserDesignation GetDesignation() const { return m_designation; }
42 inline bool DesignationHasBeenSet() const { return m_designationHasBeenSet; }
43 inline void SetDesignation(UserDesignation value) { m_designationHasBeenSet = true; m_designation = value; }
46
48
52 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
53 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
54 template<typename DomainIdentifierT = Aws::String>
55 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
56 template<typename DomainIdentifierT = Aws::String>
57 CreateProjectMembershipRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
59
61
64 inline const Member& GetMember() const { return m_member; }
65 inline bool MemberHasBeenSet() const { return m_memberHasBeenSet; }
66 template<typename MemberT = Member>
67 void SetMember(MemberT&& value) { m_memberHasBeenSet = true; m_member = std::forward<MemberT>(value); }
68 template<typename MemberT = Member>
69 CreateProjectMembershipRequest& WithMember(MemberT&& value) { SetMember(std::forward<MemberT>(value)); return *this;}
71
73
76 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
77 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
78 template<typename ProjectIdentifierT = Aws::String>
79 void SetProjectIdentifier(ProjectIdentifierT&& value) { m_projectIdentifierHasBeenSet = true; m_projectIdentifier = std::forward<ProjectIdentifierT>(value); }
80 template<typename ProjectIdentifierT = Aws::String>
81 CreateProjectMembershipRequest& WithProjectIdentifier(ProjectIdentifierT&& value) { SetProjectIdentifier(std::forward<ProjectIdentifierT>(value)); return *this;}
83 private:
84
86 bool m_designationHasBeenSet = false;
87
88 Aws::String m_domainIdentifier;
89 bool m_domainIdentifierHasBeenSet = false;
90
91 Member m_member;
92 bool m_memberHasBeenSet = false;
93
94 Aws::String m_projectIdentifier;
95 bool m_projectIdentifierHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace DataZone
100} // namespace Aws
AWS_DATAZONE_API CreateProjectMembershipRequest()=default
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateProjectMembershipRequest & WithProjectIdentifier(ProjectIdentifierT &&value)
CreateProjectMembershipRequest & WithMember(MemberT &&value)
CreateProjectMembershipRequest & WithDesignation(UserDesignation value)
CreateProjectMembershipRequest & WithDomainIdentifier(DomainIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String