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

The member object listed by the request.

See Also:

AWS * API Reference

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

The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.

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

The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.

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

The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.

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

The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.

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

The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.

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

The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.

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

The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.

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

The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.

*/ inline MemberSummary& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The status of the member. Valid values are `INVITED`, `ACTIVE`, `LEFT`, and * `REMOVED`.

*/ inline const MemberStatus& GetStatus() const{ return m_status; } /** *

The status of the member. Valid values are `INVITED`, `ACTIVE`, `LEFT`, and * `REMOVED`.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the member. Valid values are `INVITED`, `ACTIVE`, `LEFT`, and * `REMOVED`.

*/ inline void SetStatus(const MemberStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the member. Valid values are `INVITED`, `ACTIVE`, `LEFT`, and * `REMOVED`.

*/ inline void SetStatus(MemberStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the member. Valid values are `INVITED`, `ACTIVE`, `LEFT`, and * `REMOVED`.

*/ inline MemberSummary& WithStatus(const MemberStatus& value) { SetStatus(value); return *this;} /** *

The status of the member. Valid values are `INVITED`, `ACTIVE`, `LEFT`, and * `REMOVED`.

*/ inline MemberSummary& WithStatus(MemberStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The member's display name.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The member's display name.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The member's display name.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The member's display name.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The member's display name.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The member's display name.

*/ inline MemberSummary& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The member's display name.

*/ inline MemberSummary& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The member's display name.

*/ inline MemberSummary& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The abilities granted to the collaboration member.

*/ inline const Aws::Vector& GetAbilities() const{ return m_abilities; } /** *

The abilities granted to the collaboration member.

*/ inline bool AbilitiesHasBeenSet() const { return m_abilitiesHasBeenSet; } /** *

The abilities granted to the collaboration member.

*/ inline void SetAbilities(const Aws::Vector& value) { m_abilitiesHasBeenSet = true; m_abilities = value; } /** *

The abilities granted to the collaboration member.

*/ inline void SetAbilities(Aws::Vector&& value) { m_abilitiesHasBeenSet = true; m_abilities = std::move(value); } /** *

The abilities granted to the collaboration member.

*/ inline MemberSummary& WithAbilities(const Aws::Vector& value) { SetAbilities(value); return *this;} /** *

The abilities granted to the collaboration member.

*/ inline MemberSummary& WithAbilities(Aws::Vector&& value) { SetAbilities(std::move(value)); return *this;} /** *

The abilities granted to the collaboration member.

*/ inline MemberSummary& AddAbilities(const MemberAbility& value) { m_abilitiesHasBeenSet = true; m_abilities.push_back(value); return *this; } /** *

The abilities granted to the collaboration member.

*/ inline MemberSummary& AddAbilities(MemberAbility&& value) { m_abilitiesHasBeenSet = true; m_abilities.push_back(std::move(value)); return *this; } /** *

The time when the member was created.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The time when the member was created.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The time when the member was created.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The time when the member was created.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The time when the member was created.

*/ inline MemberSummary& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The time when the member was created.

*/ inline MemberSummary& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The time the member metadata was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *

The time the member metadata was last updated.

*/ inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; } /** *

The time the member metadata was last updated.

*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; } /** *

The time the member metadata was last updated.

*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); } /** *

The time the member metadata was last updated.

*/ inline MemberSummary& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *

The time the member metadata was last updated.

*/ inline MemberSummary& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;} /** *

The unique ID for the member's associated membership, if present.

*/ inline const Aws::String& GetMembershipId() const{ return m_membershipId; } /** *

The unique ID for the member's associated membership, if present.

*/ inline bool MembershipIdHasBeenSet() const { return m_membershipIdHasBeenSet; } /** *

The unique ID for the member's associated membership, if present.

*/ inline void SetMembershipId(const Aws::String& value) { m_membershipIdHasBeenSet = true; m_membershipId = value; } /** *

The unique ID for the member's associated membership, if present.

*/ inline void SetMembershipId(Aws::String&& value) { m_membershipIdHasBeenSet = true; m_membershipId = std::move(value); } /** *

The unique ID for the member's associated membership, if present.

*/ inline void SetMembershipId(const char* value) { m_membershipIdHasBeenSet = true; m_membershipId.assign(value); } /** *

The unique ID for the member's associated membership, if present.

*/ inline MemberSummary& WithMembershipId(const Aws::String& value) { SetMembershipId(value); return *this;} /** *

The unique ID for the member's associated membership, if present.

*/ inline MemberSummary& WithMembershipId(Aws::String&& value) { SetMembershipId(std::move(value)); return *this;} /** *

The unique ID for the member's associated membership, if present.

*/ inline MemberSummary& WithMembershipId(const char* value) { SetMembershipId(value); return *this;} /** *

The unique ARN for the member's associated membership, if present.

*/ inline const Aws::String& GetMembershipArn() const{ return m_membershipArn; } /** *

The unique ARN for the member's associated membership, if present.

*/ inline bool MembershipArnHasBeenSet() const { return m_membershipArnHasBeenSet; } /** *

The unique ARN for the member's associated membership, if present.

*/ inline void SetMembershipArn(const Aws::String& value) { m_membershipArnHasBeenSet = true; m_membershipArn = value; } /** *

The unique ARN for the member's associated membership, if present.

*/ inline void SetMembershipArn(Aws::String&& value) { m_membershipArnHasBeenSet = true; m_membershipArn = std::move(value); } /** *

The unique ARN for the member's associated membership, if present.

*/ inline void SetMembershipArn(const char* value) { m_membershipArnHasBeenSet = true; m_membershipArn.assign(value); } /** *

The unique ARN for the member's associated membership, if present.

*/ inline MemberSummary& WithMembershipArn(const Aws::String& value) { SetMembershipArn(value); return *this;} /** *

The unique ARN for the member's associated membership, if present.

*/ inline MemberSummary& WithMembershipArn(Aws::String&& value) { SetMembershipArn(std::move(value)); return *this;} /** *

The unique ARN for the member's associated membership, if present.

*/ inline MemberSummary& WithMembershipArn(const char* value) { SetMembershipArn(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; MemberStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::Vector m_abilities; bool m_abilitiesHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::Utils::DateTime m_updateTime; bool m_updateTimeHasBeenSet = false; Aws::String m_membershipId; bool m_membershipIdHasBeenSet = false; Aws::String m_membershipArn; bool m_membershipArnHasBeenSet = false; }; } // namespace Model } // namespace CleanRooms } // namespace Aws