/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cleanrooms.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The membership object listed by the request. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MembershipSummary implements Serializable, Cloneable, StructuredPojo { /** ** The unique ID for the membership's collaboration. *
*/ private String id; /** ** The unique ARN for the membership. *
*/ private String arn; /** ** The unique ARN for the membership's associated collaboration. *
*/ private String collaborationArn; /** ** The unique ID for the membership's collaboration. *
*/ private String collaborationId; /** ** The identifier of the Amazon Web Services principal that created the collaboration. Currently only supports * Amazon Web Services account ID. *
*/ private String collaborationCreatorAccountId; /** ** The display name of the collaboration creator. *
*/ private String collaborationCreatorDisplayName; /** ** The name for the membership's collaboration. *
*/ private String collaborationName; /** ** The time when the membership was created. *
*/ private java.util.Date createTime; /** ** The time the membership metadata was last updated. *
*/ private java.util.Date updateTime; /** ** The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. *
*/ private String status; /** ** The abilities granted to the collaboration member. *
*/ private java.util.List* The unique ID for the membership's collaboration. *
* * @param id * The unique ID for the membership's collaboration. */ public void setId(String id) { this.id = id; } /** ** The unique ID for the membership's collaboration. *
* * @return The unique ID for the membership's collaboration. */ public String getId() { return this.id; } /** ** The unique ID for the membership's collaboration. *
* * @param id * The unique ID for the membership's collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipSummary withId(String id) { setId(id); return this; } /** ** The unique ARN for the membership. *
* * @param arn * The unique ARN for the membership. */ public void setArn(String arn) { this.arn = arn; } /** ** The unique ARN for the membership. *
* * @return The unique ARN for the membership. */ public String getArn() { return this.arn; } /** ** The unique ARN for the membership. *
* * @param arn * The unique ARN for the membership. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipSummary withArn(String arn) { setArn(arn); return this; } /** ** The unique ARN for the membership's associated collaboration. *
* * @param collaborationArn * The unique ARN for the membership's associated collaboration. */ public void setCollaborationArn(String collaborationArn) { this.collaborationArn = collaborationArn; } /** ** The unique ARN for the membership's associated collaboration. *
* * @return The unique ARN for the membership's associated collaboration. */ public String getCollaborationArn() { return this.collaborationArn; } /** ** The unique ARN for the membership's associated collaboration. *
* * @param collaborationArn * The unique ARN for the membership's associated collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipSummary withCollaborationArn(String collaborationArn) { setCollaborationArn(collaborationArn); return this; } /** ** The unique ID for the membership's collaboration. *
* * @param collaborationId * The unique ID for the membership's collaboration. */ public void setCollaborationId(String collaborationId) { this.collaborationId = collaborationId; } /** ** The unique ID for the membership's collaboration. *
* * @return The unique ID for the membership's collaboration. */ public String getCollaborationId() { return this.collaborationId; } /** ** The unique ID for the membership's collaboration. *
* * @param collaborationId * The unique ID for the membership's collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipSummary withCollaborationId(String collaborationId) { setCollaborationId(collaborationId); return this; } /** ** The identifier of the Amazon Web Services principal that created the collaboration. Currently only supports * Amazon Web Services account ID. *
* * @param collaborationCreatorAccountId * The identifier of the Amazon Web Services principal that created the collaboration. Currently only * supports Amazon Web Services account ID. */ public void setCollaborationCreatorAccountId(String collaborationCreatorAccountId) { this.collaborationCreatorAccountId = collaborationCreatorAccountId; } /** ** The identifier of the Amazon Web Services principal that created the collaboration. Currently only supports * Amazon Web Services account ID. *
* * @return The identifier of the Amazon Web Services principal that created the collaboration. Currently only * supports Amazon Web Services account ID. */ public String getCollaborationCreatorAccountId() { return this.collaborationCreatorAccountId; } /** ** The identifier of the Amazon Web Services principal that created the collaboration. Currently only supports * Amazon Web Services account ID. *
* * @param collaborationCreatorAccountId * The identifier of the Amazon Web Services principal that created the collaboration. Currently only * supports Amazon Web Services account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipSummary withCollaborationCreatorAccountId(String collaborationCreatorAccountId) { setCollaborationCreatorAccountId(collaborationCreatorAccountId); return this; } /** ** The display name of the collaboration creator. *
* * @param collaborationCreatorDisplayName * The display name of the collaboration creator. */ public void setCollaborationCreatorDisplayName(String collaborationCreatorDisplayName) { this.collaborationCreatorDisplayName = collaborationCreatorDisplayName; } /** ** The display name of the collaboration creator. *
* * @return The display name of the collaboration creator. */ public String getCollaborationCreatorDisplayName() { return this.collaborationCreatorDisplayName; } /** ** The display name of the collaboration creator. *
* * @param collaborationCreatorDisplayName * The display name of the collaboration creator. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipSummary withCollaborationCreatorDisplayName(String collaborationCreatorDisplayName) { setCollaborationCreatorDisplayName(collaborationCreatorDisplayName); return this; } /** ** The name for the membership's collaboration. *
* * @param collaborationName * The name for the membership's collaboration. */ public void setCollaborationName(String collaborationName) { this.collaborationName = collaborationName; } /** ** The name for the membership's collaboration. *
* * @return The name for the membership's collaboration. */ public String getCollaborationName() { return this.collaborationName; } /** ** The name for the membership's collaboration. *
* * @param collaborationName * The name for the membership's collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipSummary withCollaborationName(String collaborationName) { setCollaborationName(collaborationName); return this; } /** ** The time when the membership was created. *
* * @param createTime * The time when the membership was created. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** ** The time when the membership was created. *
* * @return The time when the membership was created. */ public java.util.Date getCreateTime() { return this.createTime; } /** ** The time when the membership was created. *
* * @param createTime * The time when the membership was created. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipSummary withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** ** The time the membership metadata was last updated. *
* * @param updateTime * The time the membership metadata was last updated. */ public void setUpdateTime(java.util.Date updateTime) { this.updateTime = updateTime; } /** ** The time the membership metadata was last updated. *
* * @return The time the membership metadata was last updated. */ public java.util.Date getUpdateTime() { return this.updateTime; } /** ** The time the membership metadata was last updated. *
* * @param updateTime * The time the membership metadata was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public MembershipSummary withUpdateTime(java.util.Date updateTime) { setUpdateTime(updateTime); return this; } /** ** The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. *
* * @param status * The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. * @see MembershipStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. *
* * @return The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. * @see MembershipStatus */ public String getStatus() { return this.status; } /** ** The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. *
* * @param status * The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. * @return Returns a reference to this object so that method calls can be chained together. * @see MembershipStatus */ public MembershipSummary withStatus(String status) { setStatus(status); return this; } /** ** The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. *
* * @param status * The status of the membership. Valid values are `ACTIVE`, `REMOVED`, and `COLLABORATION_DELETED`. * @return Returns a reference to this object so that method calls can be chained together. * @see MembershipStatus */ public MembershipSummary withStatus(MembershipStatus status) { this.status = status.toString(); return this; } /** ** The abilities granted to the collaboration member. *
* * @return The abilities granted to the collaboration member. * @see MemberAbility */ public java.util.List* The abilities granted to the collaboration member. *
* * @param memberAbilities * The abilities granted to the collaboration member. * @see MemberAbility */ public void setMemberAbilities(java.util.Collection* The abilities granted to the collaboration member. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMemberAbilities(java.util.Collection)} or {@link #withMemberAbilities(java.util.Collection)} if you * want to override the existing values. *
* * @param memberAbilities * The abilities granted to the collaboration member. * @return Returns a reference to this object so that method calls can be chained together. * @see MemberAbility */ public MembershipSummary withMemberAbilities(String... memberAbilities) { if (this.memberAbilities == null) { setMemberAbilities(new java.util.ArrayList* The abilities granted to the collaboration member. *
* * @param memberAbilities * The abilities granted to the collaboration member. * @return Returns a reference to this object so that method calls can be chained together. * @see MemberAbility */ public MembershipSummary withMemberAbilities(java.util.Collection* The abilities granted to the collaboration member. *
* * @param memberAbilities * The abilities granted to the collaboration member. * @return Returns a reference to this object so that method calls can be chained together. * @see MemberAbility */ public MembershipSummary withMemberAbilities(MemberAbility... memberAbilities) { java.util.ArrayList