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

Used when a regular object exists in a Directory and you want to find * all of the policies that are associated with that object and the parent to that * object.

See Also:

AWS * API Reference

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

The path that is referenced from the root.

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

The path that is referenced from the root.

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

The path that is referenced from the root.

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

The path that is referenced from the root.

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

The path that is referenced from the root.

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

The path that is referenced from the root.

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

The path that is referenced from the root.

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

The path that is referenced from the root.

*/ inline PolicyToPath& WithPath(const char* value) { SetPath(value); return *this;} /** *

List of policy objects.

*/ inline const Aws::Vector& GetPolicies() const{ return m_policies; } /** *

List of policy objects.

*/ inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; } /** *

List of policy objects.

*/ inline void SetPolicies(const Aws::Vector& value) { m_policiesHasBeenSet = true; m_policies = value; } /** *

List of policy objects.

*/ inline void SetPolicies(Aws::Vector&& value) { m_policiesHasBeenSet = true; m_policies = std::move(value); } /** *

List of policy objects.

*/ inline PolicyToPath& WithPolicies(const Aws::Vector& value) { SetPolicies(value); return *this;} /** *

List of policy objects.

*/ inline PolicyToPath& WithPolicies(Aws::Vector&& value) { SetPolicies(std::move(value)); return *this;} /** *

List of policy objects.

*/ inline PolicyToPath& AddPolicies(const PolicyAttachment& value) { m_policiesHasBeenSet = true; m_policies.push_back(value); return *this; } /** *

List of policy objects.

*/ inline PolicyToPath& AddPolicies(PolicyAttachment&& value) { m_policiesHasBeenSet = true; m_policies.push_back(std::move(value)); return *this; } private: Aws::String m_path; bool m_pathHasBeenSet = false; Aws::Vector m_policies; bool m_policiesHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws