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

Specifies the configuration of a Kubernetes hostPath volume. A * hostPath volume mounts an existing file or directory from the host * node's filesystem into your pod. For more information, see hostPath * in the Kubernetes documentation.

See Also:

AWS * API Reference

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

The path of the file or directory on the host to mount into containers on the * pod.

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

The path of the file or directory on the host to mount into containers on the * pod.

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

The path of the file or directory on the host to mount into containers on the * pod.

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

The path of the file or directory on the host to mount into containers on the * pod.

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

The path of the file or directory on the host to mount into containers on the * pod.

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

The path of the file or directory on the host to mount into containers on the * pod.

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

The path of the file or directory on the host to mount into containers on the * pod.

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

The path of the file or directory on the host to mount into containers on the * pod.

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