com.amazonaws.services.cleanrooms.model.CollaborationSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cleanrooms Show documentation
/*
* Copyright 2019-2024 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 metadata of the collaboration.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CollaborationSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The identifier for the collaboration.
*
*/
private String id;
/**
*
* The ARN of the collaboration.
*
*/
private String arn;
/**
*
* A human-readable identifier provided by the collaboration owner. Display names are not unique.
*
*/
private String name;
/**
*
* The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services
* account ID.
*
*/
private String creatorAccountId;
/**
*
* The display name of the collaboration creator.
*
*/
private String creatorDisplayName;
/**
*
* The time when the collaboration was created.
*
*/
private java.util.Date createTime;
/**
*
* The time the collaboration metadata was last updated.
*
*/
private java.util.Date updateTime;
/**
*
* The status of a member in a collaboration.
*
*/
private String memberStatus;
/**
*
* The identifier of a member in a collaboration.
*
*/
private String membershipId;
/**
*
* The ARN of a member in a collaboration.
*
*/
private String membershipArn;
/**
*
* The identifier for the collaboration.
*
*
* @param id
* The identifier for the collaboration.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* The identifier for the collaboration.
*
*
* @return The identifier for the collaboration.
*/
public String getId() {
return this.id;
}
/**
*
* The identifier for the collaboration.
*
*
* @param id
* The identifier for the collaboration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CollaborationSummary withId(String id) {
setId(id);
return this;
}
/**
*
* The ARN of the collaboration.
*
*
* @param arn
* The ARN of the collaboration.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The ARN of the collaboration.
*
*
* @return The ARN of the collaboration.
*/
public String getArn() {
return this.arn;
}
/**
*
* The ARN of the collaboration.
*
*
* @param arn
* The ARN of the collaboration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CollaborationSummary withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* A human-readable identifier provided by the collaboration owner. Display names are not unique.
*
*
* @param name
* A human-readable identifier provided by the collaboration owner. Display names are not unique.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* A human-readable identifier provided by the collaboration owner. Display names are not unique.
*
*
* @return A human-readable identifier provided by the collaboration owner. Display names are not unique.
*/
public String getName() {
return this.name;
}
/**
*
* A human-readable identifier provided by the collaboration owner. Display names are not unique.
*
*
* @param name
* A human-readable identifier provided by the collaboration owner. Display names are not unique.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CollaborationSummary withName(String name) {
setName(name);
return this;
}
/**
*
* The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services
* account ID.
*
*
* @param creatorAccountId
* The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services
* account ID.
*/
public void setCreatorAccountId(String creatorAccountId) {
this.creatorAccountId = creatorAccountId;
}
/**
*
* The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services
* account ID.
*
*
* @return The identifier used to reference members of the collaboration. Currently only supports Amazon Web
* Services account ID.
*/
public String getCreatorAccountId() {
return this.creatorAccountId;
}
/**
*
* The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services
* account ID.
*
*
* @param creatorAccountId
* The identifier used to reference members of 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 CollaborationSummary withCreatorAccountId(String creatorAccountId) {
setCreatorAccountId(creatorAccountId);
return this;
}
/**
*
* The display name of the collaboration creator.
*
*
* @param creatorDisplayName
* The display name of the collaboration creator.
*/
public void setCreatorDisplayName(String creatorDisplayName) {
this.creatorDisplayName = creatorDisplayName;
}
/**
*
* The display name of the collaboration creator.
*
*
* @return The display name of the collaboration creator.
*/
public String getCreatorDisplayName() {
return this.creatorDisplayName;
}
/**
*
* The display name of the collaboration creator.
*
*
* @param creatorDisplayName
* The display name of the collaboration creator.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CollaborationSummary withCreatorDisplayName(String creatorDisplayName) {
setCreatorDisplayName(creatorDisplayName);
return this;
}
/**
*
* The time when the collaboration was created.
*
*
* @param createTime
* The time when the collaboration was created.
*/
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
/**
*
* The time when the collaboration was created.
*
*
* @return The time when the collaboration was created.
*/
public java.util.Date getCreateTime() {
return this.createTime;
}
/**
*
* The time when the collaboration was created.
*
*
* @param createTime
* The time when the collaboration was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CollaborationSummary withCreateTime(java.util.Date createTime) {
setCreateTime(createTime);
return this;
}
/**
*
* The time the collaboration metadata was last updated.
*
*
* @param updateTime
* The time the collaboration metadata was last updated.
*/
public void setUpdateTime(java.util.Date updateTime) {
this.updateTime = updateTime;
}
/**
*
* The time the collaboration metadata was last updated.
*
*
* @return The time the collaboration metadata was last updated.
*/
public java.util.Date getUpdateTime() {
return this.updateTime;
}
/**
*
* The time the collaboration metadata was last updated.
*
*
* @param updateTime
* The time the collaboration metadata was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CollaborationSummary withUpdateTime(java.util.Date updateTime) {
setUpdateTime(updateTime);
return this;
}
/**
*
* The status of a member in a collaboration.
*
*
* @param memberStatus
* The status of a member in a collaboration.
* @see MemberStatus
*/
public void setMemberStatus(String memberStatus) {
this.memberStatus = memberStatus;
}
/**
*
* The status of a member in a collaboration.
*
*
* @return The status of a member in a collaboration.
* @see MemberStatus
*/
public String getMemberStatus() {
return this.memberStatus;
}
/**
*
* The status of a member in a collaboration.
*
*
* @param memberStatus
* The status of a member in a collaboration.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MemberStatus
*/
public CollaborationSummary withMemberStatus(String memberStatus) {
setMemberStatus(memberStatus);
return this;
}
/**
*
* The status of a member in a collaboration.
*
*
* @param memberStatus
* The status of a member in a collaboration.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MemberStatus
*/
public CollaborationSummary withMemberStatus(MemberStatus memberStatus) {
this.memberStatus = memberStatus.toString();
return this;
}
/**
*
* The identifier of a member in a collaboration.
*
*
* @param membershipId
* The identifier of a member in a collaboration.
*/
public void setMembershipId(String membershipId) {
this.membershipId = membershipId;
}
/**
*
* The identifier of a member in a collaboration.
*
*
* @return The identifier of a member in a collaboration.
*/
public String getMembershipId() {
return this.membershipId;
}
/**
*
* The identifier of a member in a collaboration.
*
*
* @param membershipId
* The identifier of a member in a collaboration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CollaborationSummary withMembershipId(String membershipId) {
setMembershipId(membershipId);
return this;
}
/**
*
* The ARN of a member in a collaboration.
*
*
* @param membershipArn
* The ARN of a member in a collaboration.
*/
public void setMembershipArn(String membershipArn) {
this.membershipArn = membershipArn;
}
/**
*
* The ARN of a member in a collaboration.
*
*
* @return The ARN of a member in a collaboration.
*/
public String getMembershipArn() {
return this.membershipArn;
}
/**
*
* The ARN of a member in a collaboration.
*
*
* @param membershipArn
* The ARN of a member in a collaboration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CollaborationSummary withMembershipArn(String membershipArn) {
setMembershipArn(membershipArn);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getCreatorAccountId() != null)
sb.append("CreatorAccountId: ").append(getCreatorAccountId()).append(",");
if (getCreatorDisplayName() != null)
sb.append("CreatorDisplayName: ").append(getCreatorDisplayName()).append(",");
if (getCreateTime() != null)
sb.append("CreateTime: ").append(getCreateTime()).append(",");
if (getUpdateTime() != null)
sb.append("UpdateTime: ").append(getUpdateTime()).append(",");
if (getMemberStatus() != null)
sb.append("MemberStatus: ").append(getMemberStatus()).append(",");
if (getMembershipId() != null)
sb.append("MembershipId: ").append(getMembershipId()).append(",");
if (getMembershipArn() != null)
sb.append("MembershipArn: ").append(getMembershipArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CollaborationSummary == false)
return false;
CollaborationSummary other = (CollaborationSummary) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getCreatorAccountId() == null ^ this.getCreatorAccountId() == null)
return false;
if (other.getCreatorAccountId() != null && other.getCreatorAccountId().equals(this.getCreatorAccountId()) == false)
return false;
if (other.getCreatorDisplayName() == null ^ this.getCreatorDisplayName() == null)
return false;
if (other.getCreatorDisplayName() != null && other.getCreatorDisplayName().equals(this.getCreatorDisplayName()) == false)
return false;
if (other.getCreateTime() == null ^ this.getCreateTime() == null)
return false;
if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false)
return false;
if (other.getUpdateTime() == null ^ this.getUpdateTime() == null)
return false;
if (other.getUpdateTime() != null && other.getUpdateTime().equals(this.getUpdateTime()) == false)
return false;
if (other.getMemberStatus() == null ^ this.getMemberStatus() == null)
return false;
if (other.getMemberStatus() != null && other.getMemberStatus().equals(this.getMemberStatus()) == false)
return false;
if (other.getMembershipId() == null ^ this.getMembershipId() == null)
return false;
if (other.getMembershipId() != null && other.getMembershipId().equals(this.getMembershipId()) == false)
return false;
if (other.getMembershipArn() == null ^ this.getMembershipArn() == null)
return false;
if (other.getMembershipArn() != null && other.getMembershipArn().equals(this.getMembershipArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getCreatorAccountId() == null) ? 0 : getCreatorAccountId().hashCode());
hashCode = prime * hashCode + ((getCreatorDisplayName() == null) ? 0 : getCreatorDisplayName().hashCode());
hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
hashCode = prime * hashCode + ((getMemberStatus() == null) ? 0 : getMemberStatus().hashCode());
hashCode = prime * hashCode + ((getMembershipId() == null) ? 0 : getMembershipId().hashCode());
hashCode = prime * hashCode + ((getMembershipArn() == null) ? 0 : getMembershipArn().hashCode());
return hashCode;
}
@Override
public CollaborationSummary clone() {
try {
return (CollaborationSummary) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.cleanrooms.model.transform.CollaborationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}