AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SecurityContext.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GuardDuty {
17namespace Model {
18
25 public:
26 AWS_GUARDDUTY_API SecurityContext() = default;
27 AWS_GUARDDUTY_API SecurityContext(Aws::Utils::Json::JsonView jsonValue);
29 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline bool GetPrivileged() const { return m_privileged; }
36 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
37 inline void SetPrivileged(bool value) {
38 m_privilegedHasBeenSet = true;
39 m_privileged = value;
40 }
41 inline SecurityContext& WithPrivileged(bool value) {
42 SetPrivileged(value);
43 return *this;
44 }
46
48
52 inline bool GetAllowPrivilegeEscalation() const { return m_allowPrivilegeEscalation; }
53 inline bool AllowPrivilegeEscalationHasBeenSet() const { return m_allowPrivilegeEscalationHasBeenSet; }
54 inline void SetAllowPrivilegeEscalation(bool value) {
55 m_allowPrivilegeEscalationHasBeenSet = true;
56 m_allowPrivilegeEscalation = value;
57 }
60 return *this;
61 }
63 private:
64 bool m_privileged{false};
65
66 bool m_allowPrivilegeEscalation{false};
67 bool m_privilegedHasBeenSet = false;
68 bool m_allowPrivilegeEscalationHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace GuardDuty
73} // namespace Aws
SecurityContext & WithAllowPrivilegeEscalation(bool value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API SecurityContext & operator=(Aws::Utils::Json::JsonView jsonValue)
SecurityContext & WithPrivileged(bool value)
AWS_GUARDDUTY_API SecurityContext()=default
AWS_GUARDDUTY_API SecurityContext(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue