AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateProjectMembershipRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/Member.h>
11#include <aws/datazone/model/UserDesignation.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DataZone {
17namespace Model {
18
22 public:
23 AWS_DATAZONE_API CreateProjectMembershipRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateProjectMembership"; }
30
31 AWS_DATAZONE_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
39 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
40 template <typename DomainIdentifierT = Aws::String>
41 void SetDomainIdentifier(DomainIdentifierT&& value) {
42 m_domainIdentifierHasBeenSet = true;
43 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
44 }
45 template <typename DomainIdentifierT = Aws::String>
47 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetProjectIdentifier() const { return m_projectIdentifier; }
57 inline bool ProjectIdentifierHasBeenSet() const { return m_projectIdentifierHasBeenSet; }
58 template <typename ProjectIdentifierT = Aws::String>
59 void SetProjectIdentifier(ProjectIdentifierT&& value) {
60 m_projectIdentifierHasBeenSet = true;
61 m_projectIdentifier = std::forward<ProjectIdentifierT>(value);
62 }
63 template <typename ProjectIdentifierT = Aws::String>
65 SetProjectIdentifier(std::forward<ProjectIdentifierT>(value));
66 return *this;
67 }
69
71
74 inline const Member& GetMember() const { return m_member; }
75 inline bool MemberHasBeenSet() const { return m_memberHasBeenSet; }
76 template <typename MemberT = Member>
77 void SetMember(MemberT&& value) {
78 m_memberHasBeenSet = true;
79 m_member = std::forward<MemberT>(value);
80 }
81 template <typename MemberT = Member>
83 SetMember(std::forward<MemberT>(value));
84 return *this;
85 }
87
89
92 inline UserDesignation GetDesignation() const { return m_designation; }
93 inline bool DesignationHasBeenSet() const { return m_designationHasBeenSet; }
94 inline void SetDesignation(UserDesignation value) {
95 m_designationHasBeenSet = true;
96 m_designation = value;
97 }
99 SetDesignation(value);
100 return *this;
101 }
103 private:
104 Aws::String m_domainIdentifier;
105
106 Aws::String m_projectIdentifier;
107
108 Member m_member;
109
111 bool m_domainIdentifierHasBeenSet = false;
112 bool m_projectIdentifierHasBeenSet = false;
113 bool m_memberHasBeenSet = false;
114 bool m_designationHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace DataZone
119} // 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