/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The membership object.See Also:
AWS
* API Reference
The unique ID of the membership.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The unique ID of the membership.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The unique ID of the membership.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The unique ID of the membership.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The unique ID of the membership.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The unique ID of the membership.
*/ inline Membership& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The unique ID of the membership.
*/ inline Membership& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The unique ID of the membership.
*/ inline Membership& 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 Membership& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The unique ARN for the membership.
*/ inline Membership& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The unique ARN for the membership.
*/ inline Membership& 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 Membership& WithCollaborationArn(const Aws::String& value) { SetCollaborationArn(value); return *this;} /** *The unique ARN for the membership's associated collaboration.
*/ inline Membership& WithCollaborationArn(Aws::String&& value) { SetCollaborationArn(std::move(value)); return *this;} /** *The unique ARN for the membership's associated collaboration.
*/ inline Membership& 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 Membership& WithCollaborationId(const Aws::String& value) { SetCollaborationId(value); return *this;} /** *The unique ID for the membership's collaboration.
*/ inline Membership& WithCollaborationId(Aws::String&& value) { SetCollaborationId(std::move(value)); return *this;} /** *The unique ID for the membership's collaboration.
*/ inline Membership& WithCollaborationId(const char* value) { SetCollaborationId(value); return *this;} /** *The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.
*/ inline const Aws::String& GetCollaborationCreatorAccountId() const{ return m_collaborationCreatorAccountId; } /** *The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.
*/ inline bool CollaborationCreatorAccountIdHasBeenSet() const { return m_collaborationCreatorAccountIdHasBeenSet; } /** *The identifier used to reference members of 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 used to reference members of 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 used to reference members of 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 used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.
*/ inline Membership& WithCollaborationCreatorAccountId(const Aws::String& value) { SetCollaborationCreatorAccountId(value); return *this;} /** *The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.
*/ inline Membership& WithCollaborationCreatorAccountId(Aws::String&& value) { SetCollaborationCreatorAccountId(std::move(value)); return *this;} /** *The identifier used to reference members of the collaboration. Currently only * supports Amazon Web Services account ID.
*/ inline Membership& 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 Membership& WithCollaborationCreatorDisplayName(const Aws::String& value) { SetCollaborationCreatorDisplayName(value); return *this;} /** *The display name of the collaboration creator.
*/ inline Membership& WithCollaborationCreatorDisplayName(Aws::String&& value) { SetCollaborationCreatorDisplayName(std::move(value)); return *this;} /** *The display name of the collaboration creator.
*/ inline Membership& WithCollaborationCreatorDisplayName(const char* value) { SetCollaborationCreatorDisplayName(value); return *this;} /** *The name of the membership's collaboration.
*/ inline const Aws::String& GetCollaborationName() const{ return m_collaborationName; } /** *The name of the membership's collaboration.
*/ inline bool CollaborationNameHasBeenSet() const { return m_collaborationNameHasBeenSet; } /** *The name of the membership's collaboration.
*/ inline void SetCollaborationName(const Aws::String& value) { m_collaborationNameHasBeenSet = true; m_collaborationName = value; } /** *The name of the membership's collaboration.
*/ inline void SetCollaborationName(Aws::String&& value) { m_collaborationNameHasBeenSet = true; m_collaborationName = std::move(value); } /** *The name of the membership's collaboration.
*/ inline void SetCollaborationName(const char* value) { m_collaborationNameHasBeenSet = true; m_collaborationName.assign(value); } /** *The name of the membership's collaboration.
*/ inline Membership& WithCollaborationName(const Aws::String& value) { SetCollaborationName(value); return *this;} /** *The name of the membership's collaboration.
*/ inline Membership& WithCollaborationName(Aws::String&& value) { SetCollaborationName(std::move(value)); return *this;} /** *The name of the membership's collaboration.
*/ inline Membership& 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 Membership& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *The time when the membership was created.
*/ inline Membership& 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 Membership& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *The time the membership metadata was last updated.
*/ inline Membership& 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 Membership& WithStatus(const MembershipStatus& value) { SetStatus(value); return *this;} /** *The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and * `COLLABORATION_DELETED`.
*/ inline Membership& WithStatus(MembershipStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The abilities granted to the collaboration member.
*/ inline const Aws::VectorThe 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::VectorThe abilities granted to the collaboration member.
*/ inline void SetMemberAbilities(Aws::VectorThe abilities granted to the collaboration member.
*/ inline Membership& WithMemberAbilities(const Aws::VectorThe abilities granted to the collaboration member.
*/ inline Membership& WithMemberAbilities(Aws::VectorThe abilities granted to the collaboration member.
*/ inline Membership& AddMemberAbilities(const MemberAbility& value) { m_memberAbilitiesHasBeenSet = true; m_memberAbilities.push_back(value); return *this; } /** *The abilities granted to the collaboration member.
*/ inline Membership& AddMemberAbilities(MemberAbility&& value) { m_memberAbilitiesHasBeenSet = true; m_memberAbilities.push_back(std::move(value)); return *this; } /** *An indicator as to whether query logging has been enabled or disabled for the * collaboration.
*/ inline const MembershipQueryLogStatus& GetQueryLogStatus() const{ return m_queryLogStatus; } /** *An indicator as to whether query logging has been enabled or disabled for the * collaboration.
*/ inline bool QueryLogStatusHasBeenSet() const { return m_queryLogStatusHasBeenSet; } /** *An indicator as to whether query logging has been enabled or disabled for the * collaboration.
*/ inline void SetQueryLogStatus(const MembershipQueryLogStatus& value) { m_queryLogStatusHasBeenSet = true; m_queryLogStatus = value; } /** *An indicator as to whether query logging has been enabled or disabled for the * collaboration.
*/ inline void SetQueryLogStatus(MembershipQueryLogStatus&& value) { m_queryLogStatusHasBeenSet = true; m_queryLogStatus = std::move(value); } /** *An indicator as to whether query logging has been enabled or disabled for the * collaboration.
*/ inline Membership& WithQueryLogStatus(const MembershipQueryLogStatus& value) { SetQueryLogStatus(value); return *this;} /** *An indicator as to whether query logging has been enabled or disabled for the * collaboration.
*/ inline Membership& WithQueryLogStatus(MembershipQueryLogStatus&& value) { SetQueryLogStatus(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