AWS SDK for C++  1.9.105
AWS SDK for C++
SetPermissionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace OpsWorks
15 {
16 namespace 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 "SetPermission"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetStackId() const{ return m_stackId; }
41 
45  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
46 
50  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
51 
55  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
56 
60  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
61 
65  inline SetPermissionRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
66 
70  inline SetPermissionRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
71 
75  inline SetPermissionRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
76 
77 
81  inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
82 
86  inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
87 
91  inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
92 
96  inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
97 
101  inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
102 
106  inline SetPermissionRequest& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
107 
111  inline SetPermissionRequest& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
112 
116  inline SetPermissionRequest& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
117 
118 
122  inline bool GetAllowSsh() const{ return m_allowSsh; }
123 
127  inline bool AllowSshHasBeenSet() const { return m_allowSshHasBeenSet; }
128 
132  inline void SetAllowSsh(bool value) { m_allowSshHasBeenSet = true; m_allowSsh = value; }
133 
137  inline SetPermissionRequest& WithAllowSsh(bool value) { SetAllowSsh(value); return *this;}
138 
139 
143  inline bool GetAllowSudo() const{ return m_allowSudo; }
144 
148  inline bool AllowSudoHasBeenSet() const { return m_allowSudoHasBeenSet; }
149 
153  inline void SetAllowSudo(bool value) { m_allowSudoHasBeenSet = true; m_allowSudo = value; }
154 
158  inline SetPermissionRequest& WithAllowSudo(bool value) { SetAllowSudo(value); return *this;}
159 
160 
171  inline const Aws::String& GetLevel() const{ return m_level; }
172 
183  inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
184 
195  inline void SetLevel(const Aws::String& value) { m_levelHasBeenSet = true; m_level = value; }
196 
207  inline void SetLevel(Aws::String&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
208 
219  inline void SetLevel(const char* value) { m_levelHasBeenSet = true; m_level.assign(value); }
220 
231  inline SetPermissionRequest& WithLevel(const Aws::String& value) { SetLevel(value); return *this;}
232 
243  inline SetPermissionRequest& WithLevel(Aws::String&& value) { SetLevel(std::move(value)); return *this;}
244 
255  inline SetPermissionRequest& WithLevel(const char* value) { SetLevel(value); return *this;}
256 
257  private:
258 
259  Aws::String m_stackId;
260  bool m_stackIdHasBeenSet;
261 
262  Aws::String m_iamUserArn;
263  bool m_iamUserArnHasBeenSet;
264 
265  bool m_allowSsh;
266  bool m_allowSshHasBeenSet;
267 
268  bool m_allowSudo;
269  bool m_allowSudoHasBeenSet;
270 
271  Aws::String m_level;
272  bool m_levelHasBeenSet;
273  };
274 
275 } // namespace Model
276 } // namespace OpsWorks
277 } // namespace Aws
Aws::OpsWorks::Model::SetPermissionRequest::SetLevel
void SetLevel(const char *value)
Definition: SetPermissionRequest.h:219
Aws::OpsWorks::Model::SetPermissionRequest::WithLevel
SetPermissionRequest & WithLevel(const Aws::String &value)
Definition: SetPermissionRequest.h:231
Aws::OpsWorks::Model::SetPermissionRequest::SetAllowSsh
void SetAllowSsh(bool value)
Definition: SetPermissionRequest.h:132
Aws::OpsWorks::Model::SetPermissionRequest::WithStackId
SetPermissionRequest & WithStackId(const char *value)
Definition: SetPermissionRequest.h:75
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::SetPermissionRequest::WithLevel
SetPermissionRequest & WithLevel(Aws::String &&value)
Definition: SetPermissionRequest.h:243
Aws::OpsWorks::Model::SetPermissionRequest::SetPermissionRequest
SetPermissionRequest()
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::SetPermissionRequest::GetAllowSsh
bool GetAllowSsh() const
Definition: SetPermissionRequest.h:122
Aws::OpsWorks::Model::SetPermissionRequest::SetIamUserArn
void SetIamUserArn(Aws::String &&value)
Definition: SetPermissionRequest.h:96
Aws::OpsWorks::Model::SetPermissionRequest::SetLevel
void SetLevel(const Aws::String &value)
Definition: SetPermissionRequest.h:195
Aws::OpsWorks::Model::SetPermissionRequest::SetIamUserArn
void SetIamUserArn(const Aws::String &value)
Definition: SetPermissionRequest.h:91
Aws::OpsWorks::Model::SetPermissionRequest::GetIamUserArn
const Aws::String & GetIamUserArn() const
Definition: SetPermissionRequest.h:81
Aws::OpsWorks::Model::SetPermissionRequest::AllowSshHasBeenSet
bool AllowSshHasBeenSet() const
Definition: SetPermissionRequest.h:127
Aws::OpsWorks::Model::SetPermissionRequest::GetStackId
const Aws::String & GetStackId() const
Definition: SetPermissionRequest.h:40
Aws::OpsWorks::Model::SetPermissionRequest::SetAllowSudo
void SetAllowSudo(bool value)
Definition: SetPermissionRequest.h:153
Aws::OpsWorks::Model::SetPermissionRequest::GetAllowSudo
bool GetAllowSudo() const
Definition: SetPermissionRequest.h:143
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::SetPermissionRequest::WithAllowSsh
SetPermissionRequest & WithAllowSsh(bool value)
Definition: SetPermissionRequest.h:137
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
OpsWorksRequest.h
Aws::OpsWorks::Model::SetPermissionRequest::WithAllowSudo
SetPermissionRequest & WithAllowSudo(bool value)
Definition: SetPermissionRequest.h:158
Aws::OpsWorks::Model::SetPermissionRequest::SetStackId
void SetStackId(const char *value)
Definition: SetPermissionRequest.h:60
Aws::OpsWorks::Model::SetPermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetPermissionRequest.h:30
Aws::OpsWorks::Model::SetPermissionRequest::IamUserArnHasBeenSet
bool IamUserArnHasBeenSet() const
Definition: SetPermissionRequest.h:86
AWSString.h
Aws::OpsWorks::Model::SetPermissionRequest::SetIamUserArn
void SetIamUserArn(const char *value)
Definition: SetPermissionRequest.h:101
Aws::OpsWorks::Model::SetPermissionRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: SetPermissionRequest.h:50
Aws::OpsWorks::Model::SetPermissionRequest::WithIamUserArn
SetPermissionRequest & WithIamUserArn(Aws::String &&value)
Definition: SetPermissionRequest.h:111
Aws::OpsWorks::Model::SetPermissionRequest::WithStackId
SetPermissionRequest & WithStackId(const Aws::String &value)
Definition: SetPermissionRequest.h:65
Aws::OpsWorks::Model::SetPermissionRequest::WithLevel
SetPermissionRequest & WithLevel(const char *value)
Definition: SetPermissionRequest.h:255
Aws::OpsWorks::Model::SetPermissionRequest::WithIamUserArn
SetPermissionRequest & WithIamUserArn(const Aws::String &value)
Definition: SetPermissionRequest.h:106
Aws::OpsWorks::Model::SetPermissionRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: SetPermissionRequest.h:45
Aws::OpsWorks::Model::SetPermissionRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: SetPermissionRequest.h:55
Aws::OpsWorks::Model::SetPermissionRequest::AllowSudoHasBeenSet
bool AllowSudoHasBeenSet() const
Definition: SetPermissionRequest.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::SetPermissionRequest
Definition: SetPermissionRequest.h:22
Aws::OpsWorks::Model::SetPermissionRequest::WithStackId
SetPermissionRequest & WithStackId(Aws::String &&value)
Definition: SetPermissionRequest.h:70
Aws::OpsWorks::Model::SetPermissionRequest::GetLevel
const Aws::String & GetLevel() const
Definition: SetPermissionRequest.h:171
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::SetPermissionRequest::SetLevel
void SetLevel(Aws::String &&value)
Definition: SetPermissionRequest.h:207
Aws::OpsWorks::Model::SetPermissionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::SetPermissionRequest::WithIamUserArn
SetPermissionRequest & WithIamUserArn(const char *value)
Definition: SetPermissionRequest.h:116
Aws::OpsWorks::Model::SetPermissionRequest::LevelHasBeenSet
bool LevelHasBeenSet() const
Definition: SetPermissionRequest.h:183
Aws::OpsWorks::Model::SetPermissionRequest::SerializePayload
Aws::String SerializePayload() const override