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

Provides information about the role that is assigned to the * user.

See Also:

AWS API * Reference

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

The friendly name of the role that is assigned to the user.

*/ inline const Aws::String& GetRoleName() const{ return m_roleName; } /** *

The friendly name of the role that is assigned to the user.

*/ inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; } /** *

The friendly name of the role that is assigned to the user.

*/ inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; } /** *

The friendly name of the role that is assigned to the user.

*/ inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); } /** *

The friendly name of the role that is assigned to the user.

*/ inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); } /** *

The friendly name of the role that is assigned to the user.

*/ inline RoleInfo& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;} /** *

The friendly name of the role that is assigned to the user.

*/ inline RoleInfo& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;} /** *

The friendly name of the role that is assigned to the user.

*/ inline RoleInfo& WithRoleName(const char* value) { SetRoleName(value); return *this;} /** *

The identifier of the AWS account assigned to the user.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The identifier of the AWS account assigned to the user.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The identifier of the AWS account assigned to the user.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The identifier of the AWS account assigned to the user.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The identifier of the AWS account assigned to the user.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The identifier of the AWS account assigned to the user.

*/ inline RoleInfo& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The identifier of the AWS account assigned to the user.

*/ inline RoleInfo& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The identifier of the AWS account assigned to the user.

*/ inline RoleInfo& WithAccountId(const char* value) { SetAccountId(value); return *this;} private: Aws::String m_roleName; bool m_roleNameHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; }; } // namespace Model } // namespace SSO } // namespace Aws