/** * 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 { /** *

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

See Also:

AWS * API Reference

*/ class AwsMountPoint { public: AWS_SECURITYHUB_API AwsMountPoint(); AWS_SECURITYHUB_API AwsMountPoint(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsMountPoint& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_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 AwsMountPoint& 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 AwsMountPoint& 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 AwsMountPoint& 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 AwsMountPoint& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;} /** *

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

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

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

*/ inline AwsMountPoint& WithContainerPath(const char* value) { SetContainerPath(value); return *this;} private: Aws::String m_sourceVolume; bool m_sourceVolumeHasBeenSet = false; Aws::String m_containerPath; bool m_containerPathHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws