/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about a role that a managed policy is attached to. This data type is used as a response element in the
* ListEntitiesForPolicy operation. For more information about
* managed policies, refer to Managed
* policies and inline policies in the IAM User Guide. See
* Also:
AWS API
* Reference
The name (friendly name, not ARN) identifying the role.
*/ inline const Aws::String& GetRoleName() const{ return m_roleName; } /** *The name (friendly name, not ARN) identifying the role.
*/ inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; } /** *The name (friendly name, not ARN) identifying the role.
*/ inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; } /** *The name (friendly name, not ARN) identifying the role.
*/ inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); } /** *The name (friendly name, not ARN) identifying the role.
*/ inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); } /** *The name (friendly name, not ARN) identifying the role.
*/ inline PolicyRole& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;} /** *The name (friendly name, not ARN) identifying the role.
*/ inline PolicyRole& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;} /** *The name (friendly name, not ARN) identifying the role.
*/ inline PolicyRole& WithRoleName(const char* value) { SetRoleName(value); return *this;} /** *The stable and unique string identifying the role. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline const Aws::String& GetRoleId() const{ return m_roleId; } /** *The stable and unique string identifying the role. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; } /** *The stable and unique string identifying the role. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline void SetRoleId(const Aws::String& value) { m_roleIdHasBeenSet = true; m_roleId = value; } /** *The stable and unique string identifying the role. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline void SetRoleId(Aws::String&& value) { m_roleIdHasBeenSet = true; m_roleId = std::move(value); } /** *The stable and unique string identifying the role. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline void SetRoleId(const char* value) { m_roleIdHasBeenSet = true; m_roleId.assign(value); } /** *The stable and unique string identifying the role. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline PolicyRole& WithRoleId(const Aws::String& value) { SetRoleId(value); return *this;} /** *The stable and unique string identifying the role. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline PolicyRole& WithRoleId(Aws::String&& value) { SetRoleId(std::move(value)); return *this;} /** *The stable and unique string identifying the role. For more information about * IDs, see IAM * identifiers in the IAM User Guide.
*/ inline PolicyRole& WithRoleId(const char* value) { SetRoleId(value); return *this;} private: Aws::String m_roleName; bool m_roleNameHasBeenSet = false; Aws::String m_roleId; bool m_roleIdHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws