/** * 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 membership object listed by the request.

See Also:

AWS * API Reference

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

The unique ID for the membership's collaboration.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique ID for the membership's collaboration.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique ID for the membership's collaboration.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique ID for the membership's collaboration.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique ID for the membership's collaboration.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique ID for the membership's collaboration.

*/ inline MembershipSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique ID for the membership's collaboration.

*/ inline MembershipSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique ID for the membership's collaboration.

*/ inline MembershipSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The unique ARN for the membership.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The unique ARN for the membership.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The unique ARN for the membership.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The unique ARN for the membership.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The unique ARN for the membership.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The unique ARN for the membership.

*/ inline MembershipSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The unique ARN for the membership.

*/ inline MembershipSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The unique ARN for the membership.

*/ inline MembershipSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

The unique ARN for the membership's associated collaboration.

*/ inline const Aws::String& GetCollaborationArn() const{ return m_collaborationArn; } /** *

The unique ARN for the membership's associated collaboration.

*/ inline bool CollaborationArnHasBeenSet() const { return m_collaborationArnHasBeenSet; } /** *

The unique ARN for the membership's associated collaboration.

*/ inline void SetCollaborationArn(const Aws::String& value) { m_collaborationArnHasBeenSet = true; m_collaborationArn = value; } /** *

The unique ARN for the membership's associated collaboration.

*/ inline void SetCollaborationArn(Aws::String&& value) { m_collaborationArnHasBeenSet = true; m_collaborationArn = std::move(value); } /** *

The unique ARN for the membership's associated collaboration.

*/ inline void SetCollaborationArn(const char* value) { m_collaborationArnHasBeenSet = true; m_collaborationArn.assign(value); } /** *

The unique ARN for the membership's associated collaboration.

*/ inline MembershipSummary& WithCollaborationArn(const Aws::String& value) { SetCollaborationArn(value); return *this;} /** *

The unique ARN for the membership's associated collaboration.

*/ inline MembershipSummary& WithCollaborationArn(Aws::String&& value) { SetCollaborationArn(std::move(value)); return *this;} /** *

The unique ARN for the membership's associated collaboration.

*/ inline MembershipSummary& WithCollaborationArn(const char* value) { SetCollaborationArn(value); return *this;} /** *

The unique ID for the membership's collaboration.

*/ inline const Aws::String& GetCollaborationId() const{ return m_collaborationId; } /** *

The unique ID for the membership's collaboration.

*/ inline bool CollaborationIdHasBeenSet() const { return m_collaborationIdHasBeenSet; } /** *

The unique ID for the membership's collaboration.

*/ inline void SetCollaborationId(const Aws::String& value) { m_collaborationIdHasBeenSet = true; m_collaborationId = value; } /** *

The unique ID for the membership's collaboration.

*/ inline void SetCollaborationId(Aws::String&& value) { m_collaborationIdHasBeenSet = true; m_collaborationId = std::move(value); } /** *

The unique ID for the membership's collaboration.

*/ inline void SetCollaborationId(const char* value) { m_collaborationIdHasBeenSet = true; m_collaborationId.assign(value); } /** *

The unique ID for the membership's collaboration.

*/ inline MembershipSummary& WithCollaborationId(const Aws::String& value) { SetCollaborationId(value); return *this;} /** *

The unique ID for the membership's collaboration.

*/ inline MembershipSummary& WithCollaborationId(Aws::String&& value) { SetCollaborationId(std::move(value)); return *this;} /** *

The unique ID for the membership's collaboration.

*/ inline MembershipSummary& WithCollaborationId(const char* value) { SetCollaborationId(value); return *this;} /** *

The identifier of the Amazon Web Services principal that created the * collaboration. Currently only supports Amazon Web Services account ID.

*/ inline const Aws::String& GetCollaborationCreatorAccountId() const{ return m_collaborationCreatorAccountId; } /** *

The identifier of the Amazon Web Services principal that created the * collaboration. Currently only supports Amazon Web Services account ID.

*/ inline bool CollaborationCreatorAccountIdHasBeenSet() const { return m_collaborationCreatorAccountIdHasBeenSet; } /** *

The identifier of the Amazon Web Services principal that created the * collaboration. Currently only supports Amazon Web Services account ID.

*/ inline void SetCollaborationCreatorAccountId(const Aws::String& value) { m_collaborationCreatorAccountIdHasBeenSet = true; m_collaborationCreatorAccountId = value; } /** *

The identifier of the Amazon Web Services principal that created the * collaboration. Currently only supports Amazon Web Services account ID.

*/ inline void SetCollaborationCreatorAccountId(Aws::String&& value) { m_collaborationCreatorAccountIdHasBeenSet = true; m_collaborationCreatorAccountId = std::move(value); } /** *

The identifier of the Amazon Web Services principal that created the * collaboration. Currently only supports Amazon Web Services account ID.

*/ inline void SetCollaborationCreatorAccountId(const char* value) { m_collaborationCreatorAccountIdHasBeenSet = true; m_collaborationCreatorAccountId.assign(value); } /** *

The identifier of the Amazon Web Services principal that created the * collaboration. Currently only supports Amazon Web Services account ID.

*/ inline MembershipSummary& WithCollaborationCreatorAccountId(const Aws::String& value) { SetCollaborationCreatorAccountId(value); return *this;} /** *

The identifier of the Amazon Web Services principal that created the * collaboration. Currently only supports Amazon Web Services account ID.

*/ inline MembershipSummary& WithCollaborationCreatorAccountId(Aws::String&& value) { SetCollaborationCreatorAccountId(std::move(value)); return *this;} /** *

The identifier of the Amazon Web Services principal that created the * collaboration. Currently only supports Amazon Web Services account ID.

*/ inline MembershipSummary& WithCollaborationCreatorAccountId(const char* value) { SetCollaborationCreatorAccountId(value); return *this;} /** *

The display name of the collaboration creator.

*/ inline const Aws::String& GetCollaborationCreatorDisplayName() const{ return m_collaborationCreatorDisplayName; } /** *

The display name of the collaboration creator.

*/ inline bool CollaborationCreatorDisplayNameHasBeenSet() const { return m_collaborationCreatorDisplayNameHasBeenSet; } /** *

The display name of the collaboration creator.

*/ inline void SetCollaborationCreatorDisplayName(const Aws::String& value) { m_collaborationCreatorDisplayNameHasBeenSet = true; m_collaborationCreatorDisplayName = value; } /** *

The display name of the collaboration creator.

*/ inline void SetCollaborationCreatorDisplayName(Aws::String&& value) { m_collaborationCreatorDisplayNameHasBeenSet = true; m_collaborationCreatorDisplayName = std::move(value); } /** *

The display name of the collaboration creator.

*/ inline void SetCollaborationCreatorDisplayName(const char* value) { m_collaborationCreatorDisplayNameHasBeenSet = true; m_collaborationCreatorDisplayName.assign(value); } /** *

The display name of the collaboration creator.

*/ inline MembershipSummary& WithCollaborationCreatorDisplayName(const Aws::String& value) { SetCollaborationCreatorDisplayName(value); return *this;} /** *

The display name of the collaboration creator.

*/ inline MembershipSummary& WithCollaborationCreatorDisplayName(Aws::String&& value) { SetCollaborationCreatorDisplayName(std::move(value)); return *this;} /** *

The display name of the collaboration creator.

*/ inline MembershipSummary& WithCollaborationCreatorDisplayName(const char* value) { SetCollaborationCreatorDisplayName(value); return *this;} /** *

The name for the membership's collaboration.

*/ inline const Aws::String& GetCollaborationName() const{ return m_collaborationName; } /** *

The name for the membership's collaboration.

*/ inline bool CollaborationNameHasBeenSet() const { return m_collaborationNameHasBeenSet; } /** *

The name for the membership's collaboration.

*/ inline void SetCollaborationName(const Aws::String& value) { m_collaborationNameHasBeenSet = true; m_collaborationName = value; } /** *

The name for the membership's collaboration.

*/ inline void SetCollaborationName(Aws::String&& value) { m_collaborationNameHasBeenSet = true; m_collaborationName = std::move(value); } /** *

The name for the membership's collaboration.

*/ inline void SetCollaborationName(const char* value) { m_collaborationNameHasBeenSet = true; m_collaborationName.assign(value); } /** *

The name for the membership's collaboration.

*/ inline MembershipSummary& WithCollaborationName(const Aws::String& value) { SetCollaborationName(value); return *this;} /** *

The name for the membership's collaboration.

*/ inline MembershipSummary& WithCollaborationName(Aws::String&& value) { SetCollaborationName(std::move(value)); return *this;} /** *

The name for the membership's collaboration.

*/ inline MembershipSummary& WithCollaborationName(const char* value) { SetCollaborationName(value); return *this;} /** *

The time when the membership was created.

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

The time when the membership was created.

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

The time when the membership was created.

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

The time when the membership was created.

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

The time when the membership was created.

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

The time when the membership was created.

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

The time the membership metadata was last updated.

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

The time the membership metadata was last updated.

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

The time the membership metadata was last updated.

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

The time the membership metadata was last updated.

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

The time the membership metadata was last updated.

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

The time the membership metadata was last updated.

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

The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and * `COLLABORATION_DELETED`.

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

The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and * `COLLABORATION_DELETED`.

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

The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and * `COLLABORATION_DELETED`.

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

The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and * `COLLABORATION_DELETED`.

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

The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and * `COLLABORATION_DELETED`.

*/ inline MembershipSummary& WithStatus(const MembershipStatus& value) { SetStatus(value); return *this;} /** *

The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and * `COLLABORATION_DELETED`.

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

The abilities granted to the collaboration member.

*/ inline const Aws::Vector& GetMemberAbilities() const{ return m_memberAbilities; } /** *

The abilities granted to the collaboration member.

*/ inline bool MemberAbilitiesHasBeenSet() const { return m_memberAbilitiesHasBeenSet; } /** *

The abilities granted to the collaboration member.

*/ inline void SetMemberAbilities(const Aws::Vector& value) { m_memberAbilitiesHasBeenSet = true; m_memberAbilities = value; } /** *

The abilities granted to the collaboration member.

*/ inline void SetMemberAbilities(Aws::Vector&& value) { m_memberAbilitiesHasBeenSet = true; m_memberAbilities = std::move(value); } /** *

The abilities granted to the collaboration member.

*/ inline MembershipSummary& WithMemberAbilities(const Aws::Vector& value) { SetMemberAbilities(value); return *this;} /** *

The abilities granted to the collaboration member.

*/ inline MembershipSummary& WithMemberAbilities(Aws::Vector&& value) { SetMemberAbilities(std::move(value)); return *this;} /** *

The abilities granted to the collaboration member.

*/ inline MembershipSummary& AddMemberAbilities(const MemberAbility& value) { m_memberAbilitiesHasBeenSet = true; m_memberAbilities.push_back(value); return *this; } /** *

The abilities granted to the collaboration member.

*/ inline MembershipSummary& AddMemberAbilities(MemberAbility&& value) { m_memberAbilitiesHasBeenSet = true; m_memberAbilities.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_collaborationArn; bool m_collaborationArnHasBeenSet = false; Aws::String m_collaborationId; bool m_collaborationIdHasBeenSet = false; Aws::String m_collaborationCreatorAccountId; bool m_collaborationCreatorAccountIdHasBeenSet = false; Aws::String m_collaborationCreatorDisplayName; bool m_collaborationCreatorDisplayNameHasBeenSet = false; Aws::String m_collaborationName; bool m_collaborationNameHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::Utils::DateTime m_updateTime; bool m_updateTimeHasBeenSet = false; MembershipStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_memberAbilities; bool m_memberAbilitiesHasBeenSet = false; }; } // namespace Model } // namespace CleanRooms } // namespace Aws