/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a Docker volume.See Also:
AWS
* API Reference
Whether to create the Docker volume automatically if it does not already * exist.
*/ inline bool GetAutoprovision() const{ return m_autoprovision; } /** *Whether to create the Docker volume automatically if it does not already * exist.
*/ inline bool AutoprovisionHasBeenSet() const { return m_autoprovisionHasBeenSet; } /** *Whether to create the Docker volume automatically if it does not already * exist.
*/ inline void SetAutoprovision(bool value) { m_autoprovisionHasBeenSet = true; m_autoprovision = value; } /** *Whether to create the Docker volume automatically if it does not already * exist.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& WithAutoprovision(bool value) { SetAutoprovision(value); return *this;} /** *The Docker volume driver to use.
*/ inline const Aws::String& GetDriver() const{ return m_driver; } /** *The Docker volume driver to use.
*/ inline bool DriverHasBeenSet() const { return m_driverHasBeenSet; } /** *The Docker volume driver to use.
*/ inline void SetDriver(const Aws::String& value) { m_driverHasBeenSet = true; m_driver = value; } /** *The Docker volume driver to use.
*/ inline void SetDriver(Aws::String&& value) { m_driverHasBeenSet = true; m_driver = std::move(value); } /** *The Docker volume driver to use.
*/ inline void SetDriver(const char* value) { m_driverHasBeenSet = true; m_driver.assign(value); } /** *The Docker volume driver to use.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& WithDriver(const Aws::String& value) { SetDriver(value); return *this;} /** *The Docker volume driver to use.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& WithDriver(Aws::String&& value) { SetDriver(std::move(value)); return *this;} /** *The Docker volume driver to use.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& WithDriver(const char* value) { SetDriver(value); return *this;} /** *A map of Docker driver-specific options that are passed through.
*/ inline const Aws::MapA map of Docker driver-specific options that are passed through.
*/ inline bool DriverOptsHasBeenSet() const { return m_driverOptsHasBeenSet; } /** *A map of Docker driver-specific options that are passed through.
*/ inline void SetDriverOpts(const Aws::MapA map of Docker driver-specific options that are passed through.
*/ inline void SetDriverOpts(Aws::MapA map of Docker driver-specific options that are passed through.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& WithDriverOpts(const Aws::MapA map of Docker driver-specific options that are passed through.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& WithDriverOpts(Aws::MapA map of Docker driver-specific options that are passed through.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddDriverOpts(const Aws::String& key, const Aws::String& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, value); return *this; } /** *A map of Docker driver-specific options that are passed through.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddDriverOpts(Aws::String&& key, const Aws::String& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::move(key), value); return *this; } /** *A map of Docker driver-specific options that are passed through.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddDriverOpts(const Aws::String& key, Aws::String&& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, std::move(value)); return *this; } /** *A map of Docker driver-specific options that are passed through.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddDriverOpts(Aws::String&& key, Aws::String&& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::move(key), std::move(value)); return *this; } /** *A map of Docker driver-specific options that are passed through.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddDriverOpts(const char* key, Aws::String&& value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, std::move(value)); return *this; } /** *A map of Docker driver-specific options that are passed through.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddDriverOpts(Aws::String&& key, const char* value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(std::move(key), value); return *this; } /** *A map of Docker driver-specific options that are passed through.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddDriverOpts(const char* key, const char* value) { m_driverOptsHasBeenSet = true; m_driverOpts.emplace(key, value); return *this; } /** *Custom metadata to add to the Docker volume.
*/ inline const Aws::MapCustom metadata to add to the Docker volume.
*/ inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; } /** *Custom metadata to add to the Docker volume.
*/ inline void SetLabels(const Aws::MapCustom metadata to add to the Docker volume.
*/ inline void SetLabels(Aws::MapCustom metadata to add to the Docker volume.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& WithLabels(const Aws::MapCustom metadata to add to the Docker volume.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& WithLabels(Aws::MapCustom metadata to add to the Docker volume.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddLabels(const Aws::String& key, const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, value); return *this; } /** *Custom metadata to add to the Docker volume.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddLabels(Aws::String&& key, const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), value); return *this; } /** *Custom metadata to add to the Docker volume.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddLabels(const Aws::String& key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, std::move(value)); return *this; } /** *Custom metadata to add to the Docker volume.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddLabels(Aws::String&& key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), std::move(value)); return *this; } /** *Custom metadata to add to the Docker volume.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddLabels(const char* key, Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.emplace(key, std::move(value)); return *this; } /** *Custom metadata to add to the Docker volume.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddLabels(Aws::String&& key, const char* value) { m_labelsHasBeenSet = true; m_labels.emplace(std::move(key), value); return *this; } /** *Custom metadata to add to the Docker volume.
*/ inline AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails& AddLabels(const char* key, const char* value) { m_labelsHasBeenSet = true; m_labels.emplace(key, value); return *this; } /** *The scope for the Docker volume that determines its lifecycle. Docker volumes
* that are scoped to a task are provisioned automatically when the task starts and
* destroyed when the task stops. Docker volumes that are shared persist after the
* task stops. Valid values are shared
or task
.
The scope for the Docker volume that determines its lifecycle. Docker volumes
* that are scoped to a task are provisioned automatically when the task starts and
* destroyed when the task stops. Docker volumes that are shared persist after the
* task stops. Valid values are shared
or task
.
The scope for the Docker volume that determines its lifecycle. Docker volumes
* that are scoped to a task are provisioned automatically when the task starts and
* destroyed when the task stops. Docker volumes that are shared persist after the
* task stops. Valid values are shared
or task
.
The scope for the Docker volume that determines its lifecycle. Docker volumes
* that are scoped to a task are provisioned automatically when the task starts and
* destroyed when the task stops. Docker volumes that are shared persist after the
* task stops. Valid values are shared
or task
.
The scope for the Docker volume that determines its lifecycle. Docker volumes
* that are scoped to a task are provisioned automatically when the task starts and
* destroyed when the task stops. Docker volumes that are shared persist after the
* task stops. Valid values are shared
or task
.
The scope for the Docker volume that determines its lifecycle. Docker volumes
* that are scoped to a task are provisioned automatically when the task starts and
* destroyed when the task stops. Docker volumes that are shared persist after the
* task stops. Valid values are shared
or task
.
The scope for the Docker volume that determines its lifecycle. Docker volumes
* that are scoped to a task are provisioned automatically when the task starts and
* destroyed when the task stops. Docker volumes that are shared persist after the
* task stops. Valid values are shared
or task
.
The scope for the Docker volume that determines its lifecycle. Docker volumes
* that are scoped to a task are provisioned automatically when the task starts and
* destroyed when the task stops. Docker volumes that are shared persist after the
* task stops. Valid values are shared
or task
.