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

Specifies the name and path of a customer managed policy. You must have an * IAM policy that matches the name and path in each AWS account where you want to * deploy your permission set.

See Also:

AWS * API Reference

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

The name of the IAM policy that you have configured in each account where you * want to deploy your permission set.

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

The name of the IAM policy that you have configured in each account where you * want to deploy your permission set.

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

The name of the IAM policy that you have configured in each account where you * want to deploy your permission set.

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

The name of the IAM policy that you have configured in each account where you * want to deploy your permission set.

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

The name of the IAM policy that you have configured in each account where you * want to deploy your permission set.

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

The name of the IAM policy that you have configured in each account where you * want to deploy your permission set.

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

The name of the IAM policy that you have configured in each account where you * want to deploy your permission set.

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

The name of the IAM policy that you have configured in each account where you * want to deploy your permission set.

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

The path to the IAM policy that you have configured in each account where you * want to deploy your permission set. The default is /. For more * information, see Friendly * names and paths in the IAM User Guide.

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

The path to the IAM policy that you have configured in each account where you * want to deploy your permission set. The default is /. For more * information, see Friendly * names and paths in the IAM User Guide.

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

The path to the IAM policy that you have configured in each account where you * want to deploy your permission set. The default is /. For more * information, see Friendly * names and paths in the IAM User Guide.

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

The path to the IAM policy that you have configured in each account where you * want to deploy your permission set. The default is /. For more * information, see Friendly * names and paths in the IAM User Guide.

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

The path to the IAM policy that you have configured in each account where you * want to deploy your permission set. The default is /. For more * information, see Friendly * names and paths in the IAM User Guide.

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

The path to the IAM policy that you have configured in each account where you * want to deploy your permission set. The default is /. For more * information, see Friendly * names and paths in the IAM User Guide.

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

The path to the IAM policy that you have configured in each account where you * want to deploy your permission set. The default is /. For more * information, see Friendly * names and paths in the IAM User Guide.

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

The path to the IAM policy that you have configured in each account where you * want to deploy your permission set. The default is /. For more * information, see Friendly * names and paths in the IAM User Guide.

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