AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddProfilePermissionRequest.h
1
6#pragma once
7#include <aws/signer/Signer_EXPORTS.h>
8#include <aws/signer/SignerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace signer
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AddProfilePermission"; }
31
32 AWS_SIGNER_API Aws::String SerializePayload() const override;
33
34
36
39 inline const Aws::String& GetProfileName() const{ return m_profileName; }
40 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
41 inline void SetProfileName(const Aws::String& value) { m_profileNameHasBeenSet = true; m_profileName = value; }
42 inline void SetProfileName(Aws::String&& value) { m_profileNameHasBeenSet = true; m_profileName = std::move(value); }
43 inline void SetProfileName(const char* value) { m_profileNameHasBeenSet = true; m_profileName.assign(value); }
44 inline AddProfilePermissionRequest& WithProfileName(const Aws::String& value) { SetProfileName(value); return *this;}
45 inline AddProfilePermissionRequest& WithProfileName(Aws::String&& value) { SetProfileName(std::move(value)); return *this;}
46 inline AddProfilePermissionRequest& WithProfileName(const char* value) { SetProfileName(value); return *this;}
48
50
53 inline const Aws::String& GetProfileVersion() const{ return m_profileVersion; }
54 inline bool ProfileVersionHasBeenSet() const { return m_profileVersionHasBeenSet; }
55 inline void SetProfileVersion(const Aws::String& value) { m_profileVersionHasBeenSet = true; m_profileVersion = value; }
56 inline void SetProfileVersion(Aws::String&& value) { m_profileVersionHasBeenSet = true; m_profileVersion = std::move(value); }
57 inline void SetProfileVersion(const char* value) { m_profileVersionHasBeenSet = true; m_profileVersion.assign(value); }
58 inline AddProfilePermissionRequest& WithProfileVersion(const Aws::String& value) { SetProfileVersion(value); return *this;}
59 inline AddProfilePermissionRequest& WithProfileVersion(Aws::String&& value) { SetProfileVersion(std::move(value)); return *this;}
60 inline AddProfilePermissionRequest& WithProfileVersion(const char* value) { SetProfileVersion(value); return *this;}
62
64
80 inline const Aws::String& GetAction() const{ return m_action; }
81 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
82 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
83 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
84 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
85 inline AddProfilePermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
86 inline AddProfilePermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
87 inline AddProfilePermissionRequest& WithAction(const char* value) { SetAction(value); return *this;}
89
91
95 inline const Aws::String& GetPrincipal() const{ return m_principal; }
96 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
97 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
98 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
99 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
100 inline AddProfilePermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
101 inline AddProfilePermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
102 inline AddProfilePermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
104
106
109 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
110 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
111 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
112 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
113 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
114 inline AddProfilePermissionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
115 inline AddProfilePermissionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
116 inline AddProfilePermissionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
118
120
123 inline const Aws::String& GetStatementId() const{ return m_statementId; }
124 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
125 inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
126 inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
127 inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
128 inline AddProfilePermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
129 inline AddProfilePermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
130 inline AddProfilePermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
132 private:
133
134 Aws::String m_profileName;
135 bool m_profileNameHasBeenSet = false;
136
137 Aws::String m_profileVersion;
138 bool m_profileVersionHasBeenSet = false;
139
140 Aws::String m_action;
141 bool m_actionHasBeenSet = false;
142
143 Aws::String m_principal;
144 bool m_principalHasBeenSet = false;
145
146 Aws::String m_revisionId;
147 bool m_revisionIdHasBeenSet = false;
148
149 Aws::String m_statementId;
150 bool m_statementIdHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace signer
155} // namespace Aws
AddProfilePermissionRequest & WithProfileName(const Aws::String &value)
AddProfilePermissionRequest & WithProfileName(Aws::String &&value)
AddProfilePermissionRequest & WithAction(Aws::String &&value)
AddProfilePermissionRequest & WithPrincipal(const char *value)
AddProfilePermissionRequest & WithStatementId(Aws::String &&value)
AddProfilePermissionRequest & WithAction(const char *value)
AddProfilePermissionRequest & WithPrincipal(const Aws::String &value)
AddProfilePermissionRequest & WithAction(const Aws::String &value)
AddProfilePermissionRequest & WithStatementId(const Aws::String &value)
AWS_SIGNER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AddProfilePermissionRequest & WithProfileName(const char *value)
AddProfilePermissionRequest & WithProfileVersion(const char *value)
AddProfilePermissionRequest & WithRevisionId(const Aws::String &value)
AddProfilePermissionRequest & WithPrincipal(Aws::String &&value)
AddProfilePermissionRequest & WithRevisionId(Aws::String &&value)
AddProfilePermissionRequest & WithProfileVersion(const Aws::String &value)
AddProfilePermissionRequest & WithRevisionId(const char *value)
AddProfilePermissionRequest & WithProfileVersion(Aws::String &&value)
AddProfilePermissionRequest & WithStatementId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String