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

A mount point for the data volumes in the container.

See Also:

* AWS * API Reference

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

The path on the container to mount the host volume at.

*/ inline const Aws::String& GetContainerPath() const{ return m_containerPath; } /** *

The path on the container to mount the host volume at.

*/ inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; } /** *

The path on the container to mount the host volume at.

*/ inline void SetContainerPath(const Aws::String& value) { m_containerPathHasBeenSet = true; m_containerPath = value; } /** *

The path on the container to mount the host volume at.

*/ inline void SetContainerPath(Aws::String&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::move(value); } /** *

The path on the container to mount the host volume at.

*/ inline void SetContainerPath(const char* value) { m_containerPathHasBeenSet = true; m_containerPath.assign(value); } /** *

The path on the container to mount the host volume at.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;} /** *

The path on the container to mount the host volume at.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails& WithContainerPath(Aws::String&& value) { SetContainerPath(std::move(value)); return *this;} /** *

The path on the container to mount the host volume at.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails& WithContainerPath(const char* value) { SetContainerPath(value); return *this;} /** *

Whether the container has read-only access to the volume.

*/ inline bool GetReadOnly() const{ return m_readOnly; } /** *

Whether the container has read-only access to the volume.

*/ inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; } /** *

Whether the container has read-only access to the volume.

*/ inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; } /** *

Whether the container has read-only access to the volume.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails& WithReadOnly(bool value) { SetReadOnly(value); return *this;} /** *

The name of the volume to mount. Must match the name of a volume listed in * VolumeDetails for the task definition.

*/ inline const Aws::String& GetSourceVolume() const{ return m_sourceVolume; } /** *

The name of the volume to mount. Must match the name of a volume listed in * VolumeDetails for the task definition.

*/ inline bool SourceVolumeHasBeenSet() const { return m_sourceVolumeHasBeenSet; } /** *

The name of the volume to mount. Must match the name of a volume listed in * VolumeDetails for the task definition.

*/ inline void SetSourceVolume(const Aws::String& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = value; } /** *

The name of the volume to mount. Must match the name of a volume listed in * VolumeDetails for the task definition.

*/ inline void SetSourceVolume(Aws::String&& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = std::move(value); } /** *

The name of the volume to mount. Must match the name of a volume listed in * VolumeDetails for the task definition.

*/ inline void SetSourceVolume(const char* value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume.assign(value); } /** *

The name of the volume to mount. Must match the name of a volume listed in * VolumeDetails for the task definition.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails& WithSourceVolume(const Aws::String& value) { SetSourceVolume(value); return *this;} /** *

The name of the volume to mount. Must match the name of a volume listed in * VolumeDetails for the task definition.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails& WithSourceVolume(Aws::String&& value) { SetSourceVolume(std::move(value)); return *this;} /** *

The name of the volume to mount. Must match the name of a volume listed in * VolumeDetails for the task definition.

*/ inline AwsEcsTaskDefinitionContainerDefinitionsMountPointsDetails& WithSourceVolume(const char* value) { SetSourceVolume(value); return *this;} private: Aws::String m_containerPath; bool m_containerPathHasBeenSet = false; bool m_readOnly; bool m_readOnlyHasBeenSet = false; Aws::String m_sourceVolume; bool m_sourceVolumeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws