AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SetPermissionRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace OpsWorks
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_OPSWORKS_API SetPermissionRequest() = default;
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_OPSWORKS_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetStackId() const { return m_stackId; }
42 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
43 template<typename StackIdT = Aws::String>
44 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
45 template<typename StackIdT = Aws::String>
46 SetPermissionRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetIamUserArn() const { return m_iamUserArn; }
54 inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
55 template<typename IamUserArnT = Aws::String>
56 void SetIamUserArn(IamUserArnT&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::forward<IamUserArnT>(value); }
57 template<typename IamUserArnT = Aws::String>
58 SetPermissionRequest& WithIamUserArn(IamUserArnT&& value) { SetIamUserArn(std::forward<IamUserArnT>(value)); return *this;}
60
62
65 inline bool GetAllowSsh() const { return m_allowSsh; }
66 inline bool AllowSshHasBeenSet() const { return m_allowSshHasBeenSet; }
67 inline void SetAllowSsh(bool value) { m_allowSshHasBeenSet = true; m_allowSsh = value; }
68 inline SetPermissionRequest& WithAllowSsh(bool value) { SetAllowSsh(value); return *this;}
70
72
75 inline bool GetAllowSudo() const { return m_allowSudo; }
76 inline bool AllowSudoHasBeenSet() const { return m_allowSudoHasBeenSet; }
77 inline void SetAllowSudo(bool value) { m_allowSudoHasBeenSet = true; m_allowSudo = value; }
78 inline SetPermissionRequest& WithAllowSudo(bool value) { SetAllowSudo(value); return *this;}
80
82
92 inline const Aws::String& GetLevel() const { return m_level; }
93 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
94 template<typename LevelT = Aws::String>
95 void SetLevel(LevelT&& value) { m_levelHasBeenSet = true; m_level = std::forward<LevelT>(value); }
96 template<typename LevelT = Aws::String>
97 SetPermissionRequest& WithLevel(LevelT&& value) { SetLevel(std::forward<LevelT>(value)); return *this;}
99 private:
100
101 Aws::String m_stackId;
102 bool m_stackIdHasBeenSet = false;
103
104 Aws::String m_iamUserArn;
105 bool m_iamUserArnHasBeenSet = false;
106
107 bool m_allowSsh{false};
108 bool m_allowSshHasBeenSet = false;
109
110 bool m_allowSudo{false};
111 bool m_allowSudoHasBeenSet = false;
112
113 Aws::String m_level;
114 bool m_levelHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace OpsWorks
119} // namespace Aws
SetPermissionRequest & WithLevel(LevelT &&value)
SetPermissionRequest & WithIamUserArn(IamUserArnT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SetPermissionRequest & WithAllowSudo(bool value)
SetPermissionRequest & WithStackId(StackIdT &&value)
virtual const char * GetServiceRequestName() const override
SetPermissionRequest & WithAllowSsh(bool value)
AWS_OPSWORKS_API SetPermissionRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String