AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecurityContext.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_GUARDDUTY_API SecurityContext();
33 AWS_GUARDDUTY_API SecurityContext(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
42 inline bool GetPrivileged() const{ return m_privileged; }
43 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
44 inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; }
45 inline SecurityContext& WithPrivileged(bool value) { SetPrivileged(value); return *this;}
47
49
53 inline bool GetAllowPrivilegeEscalation() const{ return m_allowPrivilegeEscalation; }
54 inline bool AllowPrivilegeEscalationHasBeenSet() const { return m_allowPrivilegeEscalationHasBeenSet; }
55 inline void SetAllowPrivilegeEscalation(bool value) { m_allowPrivilegeEscalationHasBeenSet = true; m_allowPrivilegeEscalation = value; }
58 private:
59
60 bool m_privileged;
61 bool m_privilegedHasBeenSet = false;
62
63 bool m_allowPrivilegeEscalation;
64 bool m_allowPrivilegeEscalationHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace GuardDuty
69} // 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(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue