All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.cleanrooms.model.Collaboration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Clean Rooms module holds the client classes that are used for communicating with AWS Clean Rooms Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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 multi-party data share environment. The collaboration contains metadata about its purpose and participants. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Collaboration implements Serializable, Cloneable, StructuredPojo { /** *

* The unique ID for the collaboration. *

*/ private String id; /** *

* The unique ARN for the collaboration. *

*/ private String arn; /** *

* A human-readable identifier provided by the collaboration owner. Display names are not unique. *

*/ private String name; /** *

* A description of the collaboration provided by the collaboration owner. *

*/ private String description; /** *

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

*/ private String creatorAccountId; /** *

* A 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 unique ID for your membership within the collaboration. *

*/ private String membershipId; /** *

* The unique ARN for your membership within the collaboration. *

*/ private String membershipArn; /** *

* The settings for client-side encryption for cryptographic computing. *

*/ private DataEncryptionMetadata dataEncryptionMetadata; /** *

* An indicator as to whether query logging has been enabled or disabled for the collaboration. *

*/ private String queryLogStatus; /** *

* The unique ID for the collaboration. *

* * @param id * The unique ID for the collaboration. */ public void setId(String id) { this.id = id; } /** *

* The unique ID for the collaboration. *

* * @return The unique ID for the collaboration. */ public String getId() { return this.id; } /** *

* The unique ID for the collaboration. *

* * @param id * The unique ID for the collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public Collaboration withId(String id) { setId(id); return this; } /** *

* The unique ARN for the collaboration. *

* * @param arn * The unique ARN for the collaboration. */ public void setArn(String arn) { this.arn = arn; } /** *

* The unique ARN for the collaboration. *

* * @return The unique ARN for the collaboration. */ public String getArn() { return this.arn; } /** *

* The unique ARN for the collaboration. *

* * @param arn * The unique ARN for the collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public Collaboration 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 Collaboration withName(String name) { setName(name); return this; } /** *

* A description of the collaboration provided by the collaboration owner. *

* * @param description * A description of the collaboration provided by the collaboration owner. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the collaboration provided by the collaboration owner. *

* * @return A description of the collaboration provided by the collaboration owner. */ public String getDescription() { return this.description; } /** *

* A description of the collaboration provided by the collaboration owner. *

* * @param description * A description of the collaboration provided by the collaboration owner. * @return Returns a reference to this object so that method calls can be chained together. */ public Collaboration withDescription(String description) { setDescription(description); 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 Collaboration withCreatorAccountId(String creatorAccountId) { setCreatorAccountId(creatorAccountId); return this; } /** *

* A display name of the collaboration creator. *

* * @param creatorDisplayName * A display name of the collaboration creator. */ public void setCreatorDisplayName(String creatorDisplayName) { this.creatorDisplayName = creatorDisplayName; } /** *

* A display name of the collaboration creator. *

* * @return A display name of the collaboration creator. */ public String getCreatorDisplayName() { return this.creatorDisplayName; } /** *

* A display name of the collaboration creator. *

* * @param creatorDisplayName * A display name of the collaboration creator. * @return Returns a reference to this object so that method calls can be chained together. */ public Collaboration 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 Collaboration 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 Collaboration 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 Collaboration 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 Collaboration withMemberStatus(MemberStatus memberStatus) { this.memberStatus = memberStatus.toString(); return this; } /** *

* The unique ID for your membership within the collaboration. *

* * @param membershipId * The unique ID for your membership within the collaboration. */ public void setMembershipId(String membershipId) { this.membershipId = membershipId; } /** *

* The unique ID for your membership within the collaboration. *

* * @return The unique ID for your membership within the collaboration. */ public String getMembershipId() { return this.membershipId; } /** *

* The unique ID for your membership within the collaboration. *

* * @param membershipId * The unique ID for your membership within the collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public Collaboration withMembershipId(String membershipId) { setMembershipId(membershipId); return this; } /** *

* The unique ARN for your membership within the collaboration. *

* * @param membershipArn * The unique ARN for your membership within the collaboration. */ public void setMembershipArn(String membershipArn) { this.membershipArn = membershipArn; } /** *

* The unique ARN for your membership within the collaboration. *

* * @return The unique ARN for your membership within the collaboration. */ public String getMembershipArn() { return this.membershipArn; } /** *

* The unique ARN for your membership within the collaboration. *

* * @param membershipArn * The unique ARN for your membership within the collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public Collaboration withMembershipArn(String membershipArn) { setMembershipArn(membershipArn); return this; } /** *

* The settings for client-side encryption for cryptographic computing. *

* * @param dataEncryptionMetadata * The settings for client-side encryption for cryptographic computing. */ public void setDataEncryptionMetadata(DataEncryptionMetadata dataEncryptionMetadata) { this.dataEncryptionMetadata = dataEncryptionMetadata; } /** *

* The settings for client-side encryption for cryptographic computing. *

* * @return The settings for client-side encryption for cryptographic computing. */ public DataEncryptionMetadata getDataEncryptionMetadata() { return this.dataEncryptionMetadata; } /** *

* The settings for client-side encryption for cryptographic computing. *

* * @param dataEncryptionMetadata * The settings for client-side encryption for cryptographic computing. * @return Returns a reference to this object so that method calls can be chained together. */ public Collaboration withDataEncryptionMetadata(DataEncryptionMetadata dataEncryptionMetadata) { setDataEncryptionMetadata(dataEncryptionMetadata); return this; } /** *

* An indicator as to whether query logging has been enabled or disabled for the collaboration. *

* * @param queryLogStatus * An indicator as to whether query logging has been enabled or disabled for the collaboration. * @see CollaborationQueryLogStatus */ public void setQueryLogStatus(String queryLogStatus) { this.queryLogStatus = queryLogStatus; } /** *

* An indicator as to whether query logging has been enabled or disabled for the collaboration. *

* * @return An indicator as to whether query logging has been enabled or disabled for the collaboration. * @see CollaborationQueryLogStatus */ public String getQueryLogStatus() { return this.queryLogStatus; } /** *

* An indicator as to whether query logging has been enabled or disabled for the collaboration. *

* * @param queryLogStatus * An indicator as to whether query logging has been enabled or disabled for the collaboration. * @return Returns a reference to this object so that method calls can be chained together. * @see CollaborationQueryLogStatus */ public Collaboration withQueryLogStatus(String queryLogStatus) { setQueryLogStatus(queryLogStatus); return this; } /** *

* An indicator as to whether query logging has been enabled or disabled for the collaboration. *

* * @param queryLogStatus * An indicator as to whether query logging has been enabled or disabled for the collaboration. * @return Returns a reference to this object so that method calls can be chained together. * @see CollaborationQueryLogStatus */ public Collaboration withQueryLogStatus(CollaborationQueryLogStatus queryLogStatus) { this.queryLogStatus = queryLogStatus.toString(); 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 (getDescription() != null) sb.append("Description: ").append(getDescription()).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()).append(","); if (getDataEncryptionMetadata() != null) sb.append("DataEncryptionMetadata: ").append(getDataEncryptionMetadata()).append(","); if (getQueryLogStatus() != null) sb.append("QueryLogStatus: ").append(getQueryLogStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Collaboration == false) return false; Collaboration other = (Collaboration) 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == 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; if (other.getDataEncryptionMetadata() == null ^ this.getDataEncryptionMetadata() == null) return false; if (other.getDataEncryptionMetadata() != null && other.getDataEncryptionMetadata().equals(this.getDataEncryptionMetadata()) == false) return false; if (other.getQueryLogStatus() == null ^ this.getQueryLogStatus() == null) return false; if (other.getQueryLogStatus() != null && other.getQueryLogStatus().equals(this.getQueryLogStatus()) == 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 + ((getDescription() == null) ? 0 : getDescription().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()); hashCode = prime * hashCode + ((getDataEncryptionMetadata() == null) ? 0 : getDataEncryptionMetadata().hashCode()); hashCode = prime * hashCode + ((getQueryLogStatus() == null) ? 0 : getQueryLogStatus().hashCode()); return hashCode; } @Override public Collaboration clone() { try { return (Collaboration) 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.CollaborationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy