/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A data volume to mount from another container.See Also:
AWS
* API Reference
Whether the container has read-only access to the volume.
*/ inline bool GetReadOnly() const{ return m_readOnly; } /** *Whether the container has read-only access to the volume.
*/ inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; } /** *Whether the container has read-only access to the volume.
*/ inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; } /** *Whether the container has read-only access to the volume.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails& WithReadOnly(bool value) { SetReadOnly(value); return *this;} /** *The name of another container within the same task definition from which to * mount volumes.
*/ inline const Aws::String& GetSourceContainer() const{ return m_sourceContainer; } /** *The name of another container within the same task definition from which to * mount volumes.
*/ inline bool SourceContainerHasBeenSet() const { return m_sourceContainerHasBeenSet; } /** *The name of another container within the same task definition from which to * mount volumes.
*/ inline void SetSourceContainer(const Aws::String& value) { m_sourceContainerHasBeenSet = true; m_sourceContainer = value; } /** *The name of another container within the same task definition from which to * mount volumes.
*/ inline void SetSourceContainer(Aws::String&& value) { m_sourceContainerHasBeenSet = true; m_sourceContainer = std::move(value); } /** *The name of another container within the same task definition from which to * mount volumes.
*/ inline void SetSourceContainer(const char* value) { m_sourceContainerHasBeenSet = true; m_sourceContainer.assign(value); } /** *The name of another container within the same task definition from which to * mount volumes.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails& WithSourceContainer(const Aws::String& value) { SetSourceContainer(value); return *this;} /** *The name of another container within the same task definition from which to * mount volumes.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails& WithSourceContainer(Aws::String&& value) { SetSourceContainer(std::move(value)); return *this;} /** *The name of another container within the same task definition from which to * mount volumes.
*/ inline AwsEcsTaskDefinitionContainerDefinitionsVolumesFromDetails& WithSourceContainer(const char* value) { SetSourceContainer(value); return *this;} private: bool m_readOnly; bool m_readOnlyHasBeenSet = false; Aws::String m_sourceContainer; bool m_sourceContainerHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws