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

Volume used by the Kubernetes workload.

See Also:

AWS * API Reference

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

Volume name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Volume name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Volume name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Volume name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Volume name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Volume name.

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

Volume name.

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

Volume name.

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

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

*/ inline const HostPath& GetHostPath() const{ return m_hostPath; } /** *

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

*/ inline bool HostPathHasBeenSet() const { return m_hostPathHasBeenSet; } /** *

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

*/ inline void SetHostPath(const HostPath& value) { m_hostPathHasBeenSet = true; m_hostPath = value; } /** *

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

*/ inline void SetHostPath(HostPath&& value) { m_hostPathHasBeenSet = true; m_hostPath = std::move(value); } /** *

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

*/ inline Volume& WithHostPath(const HostPath& value) { SetHostPath(value); return *this;} /** *

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

*/ inline Volume& WithHostPath(HostPath&& value) { SetHostPath(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; HostPath m_hostPath; bool m_hostPathHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws