AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename StackIdT = Aws::String>
47 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
48 template<typename StackIdT = Aws::String>
49 Permission& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
51
53
59 inline const Aws::String& GetIamUserArn() const { return m_iamUserArn; }
60 inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
61 template<typename IamUserArnT = Aws::String>
62 void SetIamUserArn(IamUserArnT&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::forward<IamUserArnT>(value); }
63 template<typename IamUserArnT = Aws::String>
64 Permission& WithIamUserArn(IamUserArnT&& value) { SetIamUserArn(std::forward<IamUserArnT>(value)); return *this;}
66
68
71 inline bool GetAllowSsh() const { return m_allowSsh; }
72 inline bool AllowSshHasBeenSet() const { return m_allowSshHasBeenSet; }
73 inline void SetAllowSsh(bool value) { m_allowSshHasBeenSet = true; m_allowSsh = value; }
74 inline Permission& WithAllowSsh(bool value) { SetAllowSsh(value); return *this;}
76
78
81 inline bool GetAllowSudo() const { return m_allowSudo; }
82 inline bool AllowSudoHasBeenSet() const { return m_allowSudoHasBeenSet; }
83 inline void SetAllowSudo(bool value) { m_allowSudoHasBeenSet = true; m_allowSudo = value; }
84 inline Permission& WithAllowSudo(bool value) { SetAllowSudo(value); return *this;}
86
88
97 inline const Aws::String& GetLevel() const { return m_level; }
98 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
99 template<typename LevelT = Aws::String>
100 void SetLevel(LevelT&& value) { m_levelHasBeenSet = true; m_level = std::forward<LevelT>(value); }
101 template<typename LevelT = Aws::String>
102 Permission& WithLevel(LevelT&& value) { SetLevel(std::forward<LevelT>(value)); return *this;}
104 private:
105
106 Aws::String m_stackId;
107 bool m_stackIdHasBeenSet = false;
108
109 Aws::String m_iamUserArn;
110 bool m_iamUserArnHasBeenSet = false;
111
112 bool m_allowSsh{false};
113 bool m_allowSshHasBeenSet = false;
114
115 bool m_allowSudo{false};
116 bool m_allowSudoHasBeenSet = false;
117
118 Aws::String m_level;
119 bool m_levelHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace OpsWorks
124} // namespace Aws
Permission & WithAllowSsh(bool value)
Definition Permission.h:74
AWS_OPSWORKS_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLevel() const
Definition Permission.h:97
Permission & WithIamUserArn(IamUserArnT &&value)
Definition Permission.h:64
AWS_OPSWORKS_API Permission(Aws::Utils::Json::JsonView jsonValue)
void SetLevel(LevelT &&value)
Definition Permission.h:100
AWS_OPSWORKS_API Permission()=default
Permission & WithAllowSudo(bool value)
Definition Permission.h:84
void SetStackId(StackIdT &&value)
Definition Permission.h:47
Permission & WithStackId(StackIdT &&value)
Definition Permission.h:49
Permission & WithLevel(LevelT &&value)
Definition Permission.h:102
const Aws::String & GetIamUserArn() const
Definition Permission.h:59
const Aws::String & GetStackId() const
Definition Permission.h:44
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIamUserArn(IamUserArnT &&value)
Definition Permission.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue