/** * 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 ECS { namespace Model { /** *

The details for a volume mount point that's used in a container * definition.

See Also:

AWS API * Reference

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

The name of the volume to mount. Must be a volume name referenced in the * name parameter of task definition volume.

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

The name of the volume to mount. Must be a volume name referenced in the * name parameter of task definition volume.

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

The name of the volume to mount. Must be a volume name referenced in the * name parameter of task definition volume.

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

The name of the volume to mount. Must be a volume name referenced in the * name parameter of task definition volume.

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

The name of the volume to mount. Must be a volume name referenced in the * name parameter of task definition volume.

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

The name of the volume to mount. Must be a volume name referenced in the * name parameter of task definition volume.

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

The name of the volume to mount. Must be a volume name referenced in the * name parameter of task definition volume.

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

The name of the volume to mount. Must be a volume name referenced in the * name parameter of task definition volume.

*/ inline MountPoint& WithSourceVolume(const char* value) { SetSourceVolume(value); return *this;} /** *

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 MountPoint& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;} /** *

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

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

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

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

If this value is true, the container has read-only access to the * volume. If this value is false, then the container can write to the * volume. The default value is false.

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

If this value is true, the container has read-only access to the * volume. If this value is false, then the container can write to the * volume. The default value is false.

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

If this value is true, the container has read-only access to the * volume. If this value is false, then the container can write to the * volume. The default value is false.

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

If this value is true, the container has read-only access to the * volume. If this value is false, then the container can write to the * volume. The default value is false.

*/ inline MountPoint& WithReadOnly(bool value) { SetReadOnly(value); return *this;} private: Aws::String m_sourceVolume; bool m_sourceVolumeHasBeenSet = false; Aws::String m_containerPath; bool m_containerPathHasBeenSet = false; bool m_readOnly; bool m_readOnlyHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws