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

Provides information about an Amazon ECS container.

See Also:

* AWS * API Reference

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

The name of the container.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the container.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the container.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the container.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the container.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the container.

*/ inline AwsEcsContainerDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the container.

*/ inline AwsEcsContainerDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the container.

*/ inline AwsEcsContainerDetails& WithName(const char* value) { SetName(value); return *this;} /** *

The image used for the container.

*/ inline const Aws::String& GetImage() const{ return m_image; } /** *

The image used for the container.

*/ inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } /** *

The image used for the container.

*/ inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; } /** *

The image used for the container.

*/ inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } /** *

The image used for the container.

*/ inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); } /** *

The image used for the container.

*/ inline AwsEcsContainerDetails& WithImage(const Aws::String& value) { SetImage(value); return *this;} /** *

The image used for the container.

*/ inline AwsEcsContainerDetails& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;} /** *

The image used for the container.

*/ inline AwsEcsContainerDetails& WithImage(const char* value) { SetImage(value); return *this;} /** *

The mount points for data volumes in your container.

*/ inline const Aws::Vector& GetMountPoints() const{ return m_mountPoints; } /** *

The mount points for data volumes in your container.

*/ inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; } /** *

The mount points for data volumes in your container.

*/ inline void SetMountPoints(const Aws::Vector& value) { m_mountPointsHasBeenSet = true; m_mountPoints = value; } /** *

The mount points for data volumes in your container.

*/ inline void SetMountPoints(Aws::Vector&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::move(value); } /** *

The mount points for data volumes in your container.

*/ inline AwsEcsContainerDetails& WithMountPoints(const Aws::Vector& value) { SetMountPoints(value); return *this;} /** *

The mount points for data volumes in your container.

*/ inline AwsEcsContainerDetails& WithMountPoints(Aws::Vector&& value) { SetMountPoints(std::move(value)); return *this;} /** *

The mount points for data volumes in your container.

*/ inline AwsEcsContainerDetails& AddMountPoints(const AwsMountPoint& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(value); return *this; } /** *

The mount points for data volumes in your container.

*/ inline AwsEcsContainerDetails& AddMountPoints(AwsMountPoint&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.push_back(std::move(value)); return *this; } /** *

When this parameter is true, the container is given elevated privileges on * the host container instance (similar to the root user).

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

When this parameter is true, the container is given elevated privileges on * the host container instance (similar to the root user).

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

When this parameter is true, the container is given elevated privileges on * the host container instance (similar to the root user).

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

When this parameter is true, the container is given elevated privileges on * the host container instance (similar to the root user).

*/ inline AwsEcsContainerDetails& WithPrivileged(bool value) { SetPrivileged(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_image; bool m_imageHasBeenSet = false; Aws::Vector m_mountPoints; bool m_mountPointsHasBeenSet = false; bool m_privileged; bool m_privilegedHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws