AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
AddProfilePermissionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/signer/SignerRequest.h>
9#include <aws/signer/Signer_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace signer {
15namespace Model {
16
20 public:
21 AWS_SIGNER_API AddProfilePermissionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "AddProfilePermission"; }
28
29 AWS_SIGNER_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetProfileName() const { return m_profileName; }
36 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
37 template <typename ProfileNameT = Aws::String>
38 void SetProfileName(ProfileNameT&& value) {
39 m_profileNameHasBeenSet = true;
40 m_profileName = std::forward<ProfileNameT>(value);
41 }
42 template <typename ProfileNameT = Aws::String>
44 SetProfileName(std::forward<ProfileNameT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetProfileVersion() const { return m_profileVersion; }
54 inline bool ProfileVersionHasBeenSet() const { return m_profileVersionHasBeenSet; }
55 template <typename ProfileVersionT = Aws::String>
56 void SetProfileVersion(ProfileVersionT&& value) {
57 m_profileVersionHasBeenSet = true;
58 m_profileVersion = std::forward<ProfileVersionT>(value);
59 }
60 template <typename ProfileVersionT = Aws::String>
62 SetProfileVersion(std::forward<ProfileVersionT>(value));
63 return *this;
64 }
66
68
84 inline const Aws::String& GetAction() const { return m_action; }
85 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
86 template <typename ActionT = Aws::String>
87 void SetAction(ActionT&& value) {
88 m_actionHasBeenSet = true;
89 m_action = std::forward<ActionT>(value);
90 }
91 template <typename ActionT = Aws::String>
93 SetAction(std::forward<ActionT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetPrincipal() const { return m_principal; }
104 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
105 template <typename PrincipalT = Aws::String>
106 void SetPrincipal(PrincipalT&& value) {
107 m_principalHasBeenSet = true;
108 m_principal = std::forward<PrincipalT>(value);
109 }
110 template <typename PrincipalT = Aws::String>
112 SetPrincipal(std::forward<PrincipalT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
122 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
123 template <typename RevisionIdT = Aws::String>
124 void SetRevisionId(RevisionIdT&& value) {
125 m_revisionIdHasBeenSet = true;
126 m_revisionId = std::forward<RevisionIdT>(value);
127 }
128 template <typename RevisionIdT = Aws::String>
130 SetRevisionId(std::forward<RevisionIdT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetStatementId() const { return m_statementId; }
140 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
141 template <typename StatementIdT = Aws::String>
142 void SetStatementId(StatementIdT&& value) {
143 m_statementIdHasBeenSet = true;
144 m_statementId = std::forward<StatementIdT>(value);
145 }
146 template <typename StatementIdT = Aws::String>
148 SetStatementId(std::forward<StatementIdT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_profileName;
154 bool m_profileNameHasBeenSet = false;
155
156 Aws::String m_profileVersion;
157 bool m_profileVersionHasBeenSet = false;
158
159 Aws::String m_action;
160 bool m_actionHasBeenSet = false;
161
162 Aws::String m_principal;
163 bool m_principalHasBeenSet = false;
164
165 Aws::String m_revisionId;
166 bool m_revisionIdHasBeenSet = false;
167
168 Aws::String m_statementId;
169 bool m_statementIdHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace signer
174} // namespace Aws
AddProfilePermissionRequest & WithStatementId(StatementIdT &&value)
AddProfilePermissionRequest & WithProfileVersion(ProfileVersionT &&value)
AddProfilePermissionRequest & WithAction(ActionT &&value)
AWS_SIGNER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AddProfilePermissionRequest & WithPrincipal(PrincipalT &&value)
AWS_SIGNER_API AddProfilePermissionRequest()=default
AddProfilePermissionRequest & WithProfileName(ProfileNameT &&value)
AddProfilePermissionRequest & WithRevisionId(RevisionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String