/** * 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 SecurityHub { namespace Model { /** *

Provides information about a data volume that's used in a task definition. *

See Also:

AWS * API Reference

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

The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, * underscores, and hyphens 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, * underscores, and hyphens 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, * underscores, and hyphens 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, * underscores, and hyphens 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, * underscores, and hyphens 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, * underscores, and hyphens are allowed. This name is referenced in the * sourceVolume parameter of container definition * mountPoints.

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

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

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

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

*/ inline AwsEcsTaskVolumeDetails& WithName(const char* value) { SetName(value); return *this;} /** *

This parameter is specified when you use bind mount host volumes. The * contents of the host parameter determine whether your bind mount * host volume persists on the host container instance and where it's stored.

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

This parameter is specified when you use bind mount host volumes. The * contents of the host parameter determine whether your bind mount * host volume persists on the host container instance and where it's stored.

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

This parameter is specified when you use bind mount host volumes. The * contents of the host parameter determine whether your bind mount * host volume persists on the host container instance and where it's stored.

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

This parameter is specified when you use bind mount host volumes. The * contents of the host parameter determine whether your bind mount * host volume persists on the host container instance and where it's stored.

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

This parameter is specified when you use bind mount host volumes. The * contents of the host parameter determine whether your bind mount * host volume persists on the host container instance and where it's stored.

*/ inline AwsEcsTaskVolumeDetails& WithHost(const AwsEcsTaskVolumeHostDetails& value) { SetHost(value); return *this;} /** *

This parameter is specified when you use bind mount host volumes. The * contents of the host parameter determine whether your bind mount * host volume persists on the host container instance and where it's stored.

*/ inline AwsEcsTaskVolumeDetails& WithHost(AwsEcsTaskVolumeHostDetails&& value) { SetHost(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; AwsEcsTaskVolumeHostDetails m_host; bool m_hostHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws