174 lines
6.1 KiB
C++
174 lines
6.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ecs/ECS_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace ECS
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Details on a volume mount point that is used in a container
|
|
* definition.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/MountPoint">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
class AWS_ECS_API MountPoint
|
|
{
|
|
public:
|
|
MountPoint();
|
|
MountPoint(Aws::Utils::Json::JsonView jsonValue);
|
|
MountPoint& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The name of the volume to mount. Must be a volume name referenced in the
|
|
* <code>name</code> parameter of task definition <code>volume</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetSourceVolume() const{ return m_sourceVolume; }
|
|
|
|
/**
|
|
* <p>The name of the volume to mount. Must be a volume name referenced in the
|
|
* <code>name</code> parameter of task definition <code>volume</code>.</p>
|
|
*/
|
|
inline bool SourceVolumeHasBeenSet() const { return m_sourceVolumeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the volume to mount. Must be a volume name referenced in the
|
|
* <code>name</code> parameter of task definition <code>volume</code>.</p>
|
|
*/
|
|
inline void SetSourceVolume(const Aws::String& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = value; }
|
|
|
|
/**
|
|
* <p>The name of the volume to mount. Must be a volume name referenced in the
|
|
* <code>name</code> parameter of task definition <code>volume</code>.</p>
|
|
*/
|
|
inline void SetSourceVolume(Aws::String&& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the volume to mount. Must be a volume name referenced in the
|
|
* <code>name</code> parameter of task definition <code>volume</code>.</p>
|
|
*/
|
|
inline void SetSourceVolume(const char* value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the volume to mount. Must be a volume name referenced in the
|
|
* <code>name</code> parameter of task definition <code>volume</code>.</p>
|
|
*/
|
|
inline MountPoint& WithSourceVolume(const Aws::String& value) { SetSourceVolume(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the volume to mount. Must be a volume name referenced in the
|
|
* <code>name</code> parameter of task definition <code>volume</code>.</p>
|
|
*/
|
|
inline MountPoint& WithSourceVolume(Aws::String&& value) { SetSourceVolume(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the volume to mount. Must be a volume name referenced in the
|
|
* <code>name</code> parameter of task definition <code>volume</code>.</p>
|
|
*/
|
|
inline MountPoint& WithSourceVolume(const char* value) { SetSourceVolume(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The path on the container to mount the host volume at.</p>
|
|
*/
|
|
inline const Aws::String& GetContainerPath() const{ return m_containerPath; }
|
|
|
|
/**
|
|
* <p>The path on the container to mount the host volume at.</p>
|
|
*/
|
|
inline bool ContainerPathHasBeenSet() const { return m_containerPathHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The path on the container to mount the host volume at.</p>
|
|
*/
|
|
inline void SetContainerPath(const Aws::String& value) { m_containerPathHasBeenSet = true; m_containerPath = value; }
|
|
|
|
/**
|
|
* <p>The path on the container to mount the host volume at.</p>
|
|
*/
|
|
inline void SetContainerPath(Aws::String&& value) { m_containerPathHasBeenSet = true; m_containerPath = std::move(value); }
|
|
|
|
/**
|
|
* <p>The path on the container to mount the host volume at.</p>
|
|
*/
|
|
inline void SetContainerPath(const char* value) { m_containerPathHasBeenSet = true; m_containerPath.assign(value); }
|
|
|
|
/**
|
|
* <p>The path on the container to mount the host volume at.</p>
|
|
*/
|
|
inline MountPoint& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;}
|
|
|
|
/**
|
|
* <p>The path on the container to mount the host volume at.</p>
|
|
*/
|
|
inline MountPoint& WithContainerPath(Aws::String&& value) { SetContainerPath(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The path on the container to mount the host volume at.</p>
|
|
*/
|
|
inline MountPoint& WithContainerPath(const char* value) { SetContainerPath(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>If this value is <code>true</code>, the container has read-only access to the
|
|
* volume. If this value is <code>false</code>, then the container can write to the
|
|
* volume. The default value is <code>false</code>.</p>
|
|
*/
|
|
inline bool GetReadOnly() const{ return m_readOnly; }
|
|
|
|
/**
|
|
* <p>If this value is <code>true</code>, the container has read-only access to the
|
|
* volume. If this value is <code>false</code>, then the container can write to the
|
|
* volume. The default value is <code>false</code>.</p>
|
|
*/
|
|
inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
|
|
|
|
/**
|
|
* <p>If this value is <code>true</code>, the container has read-only access to the
|
|
* volume. If this value is <code>false</code>, then the container can write to the
|
|
* volume. The default value is <code>false</code>.</p>
|
|
*/
|
|
inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
|
|
|
|
/**
|
|
* <p>If this value is <code>true</code>, the container has read-only access to the
|
|
* volume. If this value is <code>false</code>, then the container can write to the
|
|
* volume. The default value is <code>false</code>.</p>
|
|
*/
|
|
inline MountPoint& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_sourceVolume;
|
|
bool m_sourceVolumeHasBeenSet;
|
|
|
|
Aws::String m_containerPath;
|
|
bool m_containerPathHasBeenSet;
|
|
|
|
bool m_readOnly;
|
|
bool m_readOnlyHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ECS
|
|
} // namespace Aws
|