AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Permission.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpsWorks
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_OPSWORKS_API Permission();
35 AWS_OPSWORKS_API Permission(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPSWORKS_API Permission& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetStackId() const{ return m_stackId; }
45 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
46 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
47 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
48 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
49 inline Permission& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
50 inline Permission& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
51 inline Permission& WithStackId(const char* value) { SetStackId(value); return *this;}
53
55
61 inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
62 inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
63 inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
64 inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
65 inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
66 inline Permission& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
67 inline Permission& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
68 inline Permission& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
70
72
75 inline bool GetAllowSsh() const{ return m_allowSsh; }
76 inline bool AllowSshHasBeenSet() const { return m_allowSshHasBeenSet; }
77 inline void SetAllowSsh(bool value) { m_allowSshHasBeenSet = true; m_allowSsh = value; }
78 inline Permission& WithAllowSsh(bool value) { SetAllowSsh(value); return *this;}
80
82
85 inline bool GetAllowSudo() const{ return m_allowSudo; }
86 inline bool AllowSudoHasBeenSet() const { return m_allowSudoHasBeenSet; }
87 inline void SetAllowSudo(bool value) { m_allowSudoHasBeenSet = true; m_allowSudo = value; }
88 inline Permission& WithAllowSudo(bool value) { SetAllowSudo(value); return *this;}
90
92
101 inline const Aws::String& GetLevel() const{ return m_level; }
102 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
103 inline void SetLevel(const Aws::String& value) { m_levelHasBeenSet = true; m_level = value; }
104 inline void SetLevel(Aws::String&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
105 inline void SetLevel(const char* value) { m_levelHasBeenSet = true; m_level.assign(value); }
106 inline Permission& WithLevel(const Aws::String& value) { SetLevel(value); return *this;}
107 inline Permission& WithLevel(Aws::String&& value) { SetLevel(std::move(value)); return *this;}
108 inline Permission& WithLevel(const char* value) { SetLevel(value); return *this;}
110 private:
111
112 Aws::String m_stackId;
113 bool m_stackIdHasBeenSet = false;
114
115 Aws::String m_iamUserArn;
116 bool m_iamUserArnHasBeenSet = false;
117
118 bool m_allowSsh;
119 bool m_allowSshHasBeenSet = false;
120
121 bool m_allowSudo;
122 bool m_allowSudoHasBeenSet = false;
123
124 Aws::String m_level;
125 bool m_levelHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace OpsWorks
130} // namespace Aws
Permission & WithAllowSsh(bool value)
Definition Permission.h:78
AWS_OPSWORKS_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLevel(Aws::String &&value)
Definition Permission.h:104
void SetIamUserArn(const Aws::String &value)
Definition Permission.h:63
Permission & WithStackId(Aws::String &&value)
Definition Permission.h:50
const Aws::String & GetLevel() const
Definition Permission.h:101
void SetStackId(const Aws::String &value)
Definition Permission.h:46
void SetLevel(const char *value)
Definition Permission.h:105
AWS_OPSWORKS_API Permission(Aws::Utils::Json::JsonView jsonValue)
Permission & WithIamUserArn(const char *value)
Definition Permission.h:68
Permission & WithLevel(Aws::String &&value)
Definition Permission.h:107
Permission & WithAllowSudo(bool value)
Definition Permission.h:88
Permission & WithLevel(const char *value)
Definition Permission.h:108
Permission & WithLevel(const Aws::String &value)
Definition Permission.h:106
Permission & WithStackId(const Aws::String &value)
Definition Permission.h:49
Permission & WithIamUserArn(Aws::String &&value)
Definition Permission.h:67
void SetStackId(Aws::String &&value)
Definition Permission.h:47
void SetLevel(const Aws::String &value)
Definition Permission.h:103
void SetStackId(const char *value)
Definition Permission.h:48
const Aws::String & GetIamUserArn() const
Definition Permission.h:61
const Aws::String & GetStackId() const
Definition Permission.h:44
void SetIamUserArn(const char *value)
Definition Permission.h:65
void SetIamUserArn(Aws::String &&value)
Definition Permission.h:64
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
Permission & WithStackId(const char *value)
Definition Permission.h:51
Permission & WithIamUserArn(const Aws::String &value)
Definition Permission.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue