/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details for a Docker volume mount point that's used in a job's container
* properties. This parameter maps to Volumes
in the Create
* a container section of the Docker Remote API and the
* --volume
option to docker run.See Also:
AWS
* API Reference
The path on the container where the host volume is mounted.
*/ inline const Aws::String& GetContainerPath() const{ return m_containerPath; } /** *The path on the container where the host volume is mounted.
*/ inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; } /** *The path on the container where the host volume is mounted.
*/ inline void SetContainerPath(const Aws::String& value) { m_containerPathHasBeenSet = true; m_containerPath = value; } /** *The path on the container where the host volume is mounted.
*/ inline void SetContainerPath(Aws::String&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::move(value); } /** *The path on the container where the host volume is mounted.
*/ inline void SetContainerPath(const char* value) { m_containerPathHasBeenSet = true; m_containerPath.assign(value); } /** *The path on the container where the host volume is mounted.
*/ inline MountPoint& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;} /** *The path on the container where the host volume is mounted.
*/ inline MountPoint& WithContainerPath(Aws::String&& value) { SetContainerPath(std::move(value)); return *this;} /** *The path on the container where the host volume is mounted.
*/ inline MountPoint& WithContainerPath(const char* value) { SetContainerPath(value); return *this;} /** *If this value is true
, the container has read-only access to the
* volume. Otherwise, the container can write to the volume. The default value is
* false
.
If this value is true
, the container has read-only access to the
* volume. Otherwise, the container can write to the volume. The default value is
* false
.
If this value is true
, the container has read-only access to the
* volume. Otherwise, the container can write to the volume. The default value is
* false
.
If this value is true
, the container has read-only access to the
* volume. Otherwise, the container can write to the volume. The default value is
* false
.
The name of the volume to mount.
*/ inline const Aws::String& GetSourceVolume() const{ return m_sourceVolume; } /** *The name of the volume to mount.
*/ inline bool SourceVolumeHasBeenSet() const { return m_sourceVolumeHasBeenSet; } /** *The name of the volume to mount.
*/ inline void SetSourceVolume(const Aws::String& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = value; } /** *The name of the volume to mount.
*/ inline void SetSourceVolume(Aws::String&& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = std::move(value); } /** *The name of the volume to mount.
*/ inline void SetSourceVolume(const char* value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume.assign(value); } /** *The name of the volume to mount.
*/ inline MountPoint& WithSourceVolume(const Aws::String& value) { SetSourceVolume(value); return *this;} /** *The name of the volume to mount.
*/ inline MountPoint& WithSourceVolume(Aws::String&& value) { SetSourceVolume(std::move(value)); return *this;} /** *The name of the volume to mount.
*/ inline MountPoint& 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 Batch } // namespace Aws