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

A data volume used in a job's container properties.

See Also:

* AWS API * Reference

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

The contents of the host parameter determine whether your data * volume persists on the host container instance and where it is stored. If the * host parameter is empty, then the Docker daemon assigns a host path for your * data volume. However, the data is not guaranteed to persist after the containers * associated with it stop running.

*/ inline const Host& GetHost() const{ return m_host; } /** *

The contents of the host parameter determine whether your data * volume persists on the host container instance and where it is stored. If the * host parameter is empty, then the Docker daemon assigns a host path for your * data volume. However, the data is not guaranteed to persist after the containers * associated with it stop running.

*/ inline bool HostHasBeenSet() const { return m_hostHasBeenSet; } /** *

The contents of the host parameter determine whether your data * volume persists on the host container instance and where it is stored. If the * host parameter is empty, then the Docker daemon assigns a host path for your * data volume. However, the data is not guaranteed to persist after the containers * associated with it stop running.

*/ inline void SetHost(const Host& value) { m_hostHasBeenSet = true; m_host = value; } /** *

The contents of the host parameter determine whether your data * volume persists on the host container instance and where it is stored. If the * host parameter is empty, then the Docker daemon assigns a host path for your * data volume. However, the data is not guaranteed to persist after the containers * associated with it stop running.

*/ inline void SetHost(Host&& value) { m_hostHasBeenSet = true; m_host = std::move(value); } /** *

The contents of the host parameter determine whether your data * volume persists on the host container instance and where it is stored. If the * host parameter is empty, then the Docker daemon assigns a host path for your * data volume. However, the data is not guaranteed to persist after the containers * associated with it stop running.

*/ inline Volume& WithHost(const Host& value) { SetHost(value); return *this;} /** *

The contents of the host parameter determine whether your data * volume persists on the host container instance and where it is stored. If the * host parameter is empty, then the Docker daemon assigns a host path for your * data volume. However, the data is not guaranteed to persist after the containers * associated with it stop running.

*/ inline Volume& WithHost(Host&& value) { SetHost(std::move(value)); return *this;} /** *

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, * hyphens, and underscores are allowed. This name is referenced in the * sourceVolume parameter of container definition * mountPoints.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, * hyphens, and underscores are allowed. This name is referenced in the * sourceVolume parameter of container definition * mountPoints.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, * hyphens, and underscores are allowed. This name is referenced in the * sourceVolume parameter of container definition * mountPoints.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, * hyphens, and underscores are allowed. This name is referenced in the * sourceVolume parameter of container definition * mountPoints.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, * hyphens, and underscores are allowed. This name is referenced in the * sourceVolume parameter of container definition * mountPoints.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, * hyphens, and underscores are allowed. This name is referenced in the * sourceVolume parameter of container definition * mountPoints.

*/ inline Volume& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, * hyphens, and underscores are allowed. This name is referenced in the * sourceVolume parameter of container definition * mountPoints.

*/ inline Volume& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, * hyphens, and underscores are allowed. This name is referenced in the * sourceVolume parameter of container definition * mountPoints.

*/ inline Volume& WithName(const char* value) { SetName(value); return *this;} private: Host m_host; bool m_hostHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; }; } // namespace Model } // namespace Batch } // namespace Aws