AWS SDK for C++  1.9.104
AWS SDK for C++
Permission.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace OpsWorks
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetStackId() const{ return m_stackId; }
44 
48  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
49 
53  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
54 
58  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
59 
63  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
64 
68  inline Permission& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
69 
73  inline Permission& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
74 
78  inline Permission& WithStackId(const char* value) { SetStackId(value); return *this;}
79 
80 
87  inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
88 
95  inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
96 
103  inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
104 
111  inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
112 
119  inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
120 
127  inline Permission& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
128 
135  inline Permission& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
136 
143  inline Permission& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
144 
145 
149  inline bool GetAllowSsh() const{ return m_allowSsh; }
150 
154  inline bool AllowSshHasBeenSet() const { return m_allowSshHasBeenSet; }
155 
159  inline void SetAllowSsh(bool value) { m_allowSshHasBeenSet = true; m_allowSsh = value; }
160 
164  inline Permission& WithAllowSsh(bool value) { SetAllowSsh(value); return *this;}
165 
166 
170  inline bool GetAllowSudo() const{ return m_allowSudo; }
171 
175  inline bool AllowSudoHasBeenSet() const { return m_allowSudoHasBeenSet; }
176 
180  inline void SetAllowSudo(bool value) { m_allowSudoHasBeenSet = true; m_allowSudo = value; }
181 
185  inline Permission& WithAllowSudo(bool value) { SetAllowSudo(value); return *this;}
186 
187 
197  inline const Aws::String& GetLevel() const{ return m_level; }
198 
208  inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
209 
219  inline void SetLevel(const Aws::String& value) { m_levelHasBeenSet = true; m_level = value; }
220 
230  inline void SetLevel(Aws::String&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
231 
241  inline void SetLevel(const char* value) { m_levelHasBeenSet = true; m_level.assign(value); }
242 
252  inline Permission& WithLevel(const Aws::String& value) { SetLevel(value); return *this;}
253 
263  inline Permission& WithLevel(Aws::String&& value) { SetLevel(std::move(value)); return *this;}
264 
274  inline Permission& WithLevel(const char* value) { SetLevel(value); return *this;}
275 
276  private:
277 
278  Aws::String m_stackId;
279  bool m_stackIdHasBeenSet;
280 
281  Aws::String m_iamUserArn;
282  bool m_iamUserArnHasBeenSet;
283 
284  bool m_allowSsh;
285  bool m_allowSshHasBeenSet;
286 
287  bool m_allowSudo;
288  bool m_allowSudoHasBeenSet;
289 
290  Aws::String m_level;
291  bool m_levelHasBeenSet;
292  };
293 
294 } // namespace Model
295 } // namespace OpsWorks
296 } // namespace Aws
Aws::OpsWorks::Model::Permission::SetLevel
void SetLevel(Aws::String &&value)
Definition: Permission.h:230
Aws::OpsWorks::Model::Permission::AllowSudoHasBeenSet
bool AllowSudoHasBeenSet() const
Definition: Permission.h:175
Aws::OpsWorks::Model::Permission::GetIamUserArn
const Aws::String & GetIamUserArn() const
Definition: Permission.h:87
Aws::OpsWorks::Model::Permission::GetAllowSudo
bool GetAllowSudo() const
Definition: Permission.h:170
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::Permission::Permission
Permission(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::Permission::SetStackId
void SetStackId(const Aws::String &value)
Definition: Permission.h:53
Aws::OpsWorks::Model::Permission::AllowSshHasBeenSet
bool AllowSshHasBeenSet() const
Definition: Permission.h:154
Aws::OpsWorks::Model::Permission::WithIamUserArn
Permission & WithIamUserArn(const Aws::String &value)
Definition: Permission.h:127
Aws::OpsWorks::Model::Permission::SetStackId
void SetStackId(Aws::String &&value)
Definition: Permission.h:58
Aws::OpsWorks::Model::Permission::operator=
Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::Permission::SetAllowSudo
void SetAllowSudo(bool value)
Definition: Permission.h:180
Aws::OpsWorks::Model::Permission::SetIamUserArn
void SetIamUserArn(const char *value)
Definition: Permission.h:119
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::Permission::WithAllowSsh
Permission & WithAllowSsh(bool value)
Definition: Permission.h:164
Aws::OpsWorks::Model::Permission::GetStackId
const Aws::String & GetStackId() const
Definition: Permission.h:43
Aws::OpsWorks::Model::Permission::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: Permission.h:48
Aws::OpsWorks::Model::Permission::SetIamUserArn
void SetIamUserArn(Aws::String &&value)
Definition: Permission.h:111
Aws::OpsWorks::Model::Permission::SetLevel
void SetLevel(const Aws::String &value)
Definition: Permission.h:219
Aws::OpsWorks::Model::Permission::WithIamUserArn
Permission & WithIamUserArn(Aws::String &&value)
Definition: Permission.h:135
Aws::OpsWorks::Model::Permission::SetStackId
void SetStackId(const char *value)
Definition: Permission.h:63
Aws::OpsWorks::Model::Permission::WithIamUserArn
Permission & WithIamUserArn(const char *value)
Definition: Permission.h:143
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::OpsWorks::Model::Permission::WithLevel
Permission & WithLevel(const Aws::String &value)
Definition: Permission.h:252
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::Permission::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::Permission::LevelHasBeenSet
bool LevelHasBeenSet() const
Definition: Permission.h:208
Aws::OpsWorks::Model::Permission::IamUserArnHasBeenSet
bool IamUserArnHasBeenSet() const
Definition: Permission.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::Permission::GetLevel
const Aws::String & GetLevel() const
Definition: Permission.h:197
Aws::OpsWorks::Model::Permission::SetLevel
void SetLevel(const char *value)
Definition: Permission.h:241
Aws::OpsWorks::Model::Permission::WithStackId
Permission & WithStackId(const Aws::String &value)
Definition: Permission.h:68
Aws::OpsWorks::Model::Permission
Definition: Permission.h:32
Aws::OpsWorks::Model::Permission::Permission
Permission()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::Permission::WithLevel
Permission & WithLevel(Aws::String &&value)
Definition: Permission.h:263
Aws::OpsWorks::Model::Permission::WithLevel
Permission & WithLevel(const char *value)
Definition: Permission.h:274
Aws::OpsWorks::Model::Permission::WithStackId
Permission & WithStackId(Aws::String &&value)
Definition: Permission.h:73
Aws::OpsWorks::Model::Permission::WithStackId
Permission & WithStackId(const char *value)
Definition: Permission.h:78
Aws::OpsWorks::Model::Permission::GetAllowSsh
bool GetAllowSsh() const
Definition: Permission.h:149
Aws::OpsWorks::Model::Permission::WithAllowSudo
Permission & WithAllowSudo(bool value)
Definition: Permission.h:185
Aws::OpsWorks::Model::Permission::SetIamUserArn
void SetIamUserArn(const Aws::String &value)
Definition: Permission.h:103
Aws::OpsWorks::Model::Permission::SetAllowSsh
void SetAllowSsh(bool value)
Definition: Permission.h:159