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

Contains an AWS SSO identity ID for a user or group.

Currently, * you can't use AWS APIs to retrieve AWS SSO identity IDs. You can find the AWS * SSO identity IDs in the URL of user and group pages in the AWS SSO console.

*

See Also:

AWS * API Reference

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

A user identity.

*/ inline const UserIdentity& GetUser() const{ return m_user; } /** *

A user identity.

*/ inline bool UserHasBeenSet() const { return m_userHasBeenSet; } /** *

A user identity.

*/ inline void SetUser(const UserIdentity& value) { m_userHasBeenSet = true; m_user = value; } /** *

A user identity.

*/ inline void SetUser(UserIdentity&& value) { m_userHasBeenSet = true; m_user = std::move(value); } /** *

A user identity.

*/ inline Identity& WithUser(const UserIdentity& value) { SetUser(value); return *this;} /** *

A user identity.

*/ inline Identity& WithUser(UserIdentity&& value) { SetUser(std::move(value)); return *this;} /** *

A group identity.

*/ inline const GroupIdentity& GetGroup() const{ return m_group; } /** *

A group identity.

*/ inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; } /** *

A group identity.

*/ inline void SetGroup(const GroupIdentity& value) { m_groupHasBeenSet = true; m_group = value; } /** *

A group identity.

*/ inline void SetGroup(GroupIdentity&& value) { m_groupHasBeenSet = true; m_group = std::move(value); } /** *

A group identity.

*/ inline Identity& WithGroup(const GroupIdentity& value) { SetGroup(value); return *this;} /** *

A group identity.

*/ inline Identity& WithGroup(GroupIdentity&& value) { SetGroup(std::move(value)); return *this;} private: UserIdentity m_user; bool m_userHasBeenSet; GroupIdentity m_group; bool m_groupHasBeenSet; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws