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

Describes the path information of a resource.

See Also:

AWS * API Reference

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

The components of the resource path.

*/ inline const Aws::Vector& GetComponents() const{ return m_components; } /** *

The components of the resource path.

*/ inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; } /** *

The components of the resource path.

*/ inline void SetComponents(const Aws::Vector& value) { m_componentsHasBeenSet = true; m_components = value; } /** *

The components of the resource path.

*/ inline void SetComponents(Aws::Vector&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); } /** *

The components of the resource path.

*/ inline ResourcePath& WithComponents(const Aws::Vector& value) { SetComponents(value); return *this;} /** *

The components of the resource path.

*/ inline ResourcePath& WithComponents(Aws::Vector&& value) { SetComponents(std::move(value)); return *this;} /** *

The components of the resource path.

*/ inline ResourcePath& AddComponents(const ResourcePathComponent& value) { m_componentsHasBeenSet = true; m_components.push_back(value); return *this; } /** *

The components of the resource path.

*/ inline ResourcePath& AddComponents(ResourcePathComponent&& value) { m_componentsHasBeenSet = true; m_components.push_back(std::move(value)); return *this; } private: Aws::Vector m_components; bool m_componentsHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws