/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GuardDuty { namespace Model { /** *

Container security context.

See Also:

AWS * API Reference

*/ class SecurityContext { public: AWS_GUARDDUTY_API SecurityContext(); AWS_GUARDDUTY_API SecurityContext(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API SecurityContext& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Whether the container is privileged.

*/ inline bool GetPrivileged() const{ return m_privileged; } /** *

Whether the container is privileged.

*/ inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; } /** *

Whether the container is privileged.

*/ inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; } /** *

Whether the container is privileged.

*/ inline SecurityContext& WithPrivileged(bool value) { SetPrivileged(value); return *this;} private: bool m_privileged; bool m_privilegedHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws