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

Represents a pre-existing file or directory on the host machine that the * volume maps to.

See Also:

AWS * API Reference

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

Path of the file or directory on the host that the volume maps to.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

Path of the file or directory on the host that the volume maps to.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

Path of the file or directory on the host that the volume maps to.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

Path of the file or directory on the host that the volume maps to.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

Path of the file or directory on the host that the volume maps to.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

Path of the file or directory on the host that the volume maps to.

*/ inline HostPath& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

Path of the file or directory on the host that the volume maps to.

*/ inline HostPath& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

Path of the file or directory on the host that the volume maps to.

*/ inline HostPath& WithPath(const char* value) { SetPath(value); return *this;} private: Aws::String m_path; bool m_pathHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws