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

com.amazonaws.services.cleanrooms.model.Membership 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 membership object. *

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

* The unique ID of the membership. *

*/ 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 used to reference members of 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 of 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. *

*/ private String status; /** *

* The abilities granted to the collaboration member. *

*/ private java.util.List memberAbilities; /** *

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

*/ private String queryLogStatus; /** *

* The default protected query result configuration as specified by the member who can receive results. *

*/ private MembershipProtectedQueryResultConfiguration defaultResultConfiguration; /** *

* The payment responsibilities accepted by the collaboration member. *

*/ private MembershipPaymentConfiguration paymentConfiguration; /** *

* The unique ID of the membership. *

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

* The unique ID of the membership. *

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

* The unique ID of the membership. *

* * @param id * The unique ID of the membership. * @return Returns a reference to this object so that method calls can be chained together. */ public Membership 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 Membership 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 Membership 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 Membership withCollaborationId(String collaborationId) { setCollaborationId(collaborationId); return this; } /** *

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

* * @param collaborationCreatorAccountId * The identifier used to reference members of the collaboration. Currently only supports Amazon Web Services * account ID. */ public void setCollaborationCreatorAccountId(String collaborationCreatorAccountId) { this.collaborationCreatorAccountId = collaborationCreatorAccountId; } /** *

* 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 getCollaborationCreatorAccountId() { return this.collaborationCreatorAccountId; } /** *

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

* * @param collaborationCreatorAccountId * 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 Membership 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 Membership withCollaborationCreatorDisplayName(String collaborationCreatorDisplayName) { setCollaborationCreatorDisplayName(collaborationCreatorDisplayName); return this; } /** *

* The name of the membership's collaboration. *

* * @param collaborationName * The name of the membership's collaboration. */ public void setCollaborationName(String collaborationName) { this.collaborationName = collaborationName; } /** *

* The name of the membership's collaboration. *

* * @return The name of the membership's collaboration. */ public String getCollaborationName() { return this.collaborationName; } /** *

* The name of the membership's collaboration. *

* * @param collaborationName * The name of the membership's collaboration. * @return Returns a reference to this object so that method calls can be chained together. */ public Membership 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 Membership 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 Membership withUpdateTime(java.util.Date updateTime) { setUpdateTime(updateTime); return this; } /** *

* The status of the membership. *

* * @param status * The status of the membership. * @see MembershipStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the membership. *

* * @return The status of the membership. * @see MembershipStatus */ public String getStatus() { return this.status; } /** *

* The status of the membership. *

* * @param status * The status of the membership. * @return Returns a reference to this object so that method calls can be chained together. * @see MembershipStatus */ public Membership withStatus(String status) { setStatus(status); return this; } /** *

* The status of the membership. *

* * @param status * The status of the membership. * @return Returns a reference to this object so that method calls can be chained together. * @see MembershipStatus */ public Membership 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 getMemberAbilities() { return memberAbilities; } /** *

* The abilities granted to the collaboration member. *

* * @param memberAbilities * The abilities granted to the collaboration member. * @see MemberAbility */ public void setMemberAbilities(java.util.Collection memberAbilities) { if (memberAbilities == null) { this.memberAbilities = null; return; } this.memberAbilities = new java.util.ArrayList(memberAbilities); } /** *

* 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 Membership withMemberAbilities(String... memberAbilities) { if (this.memberAbilities == null) { setMemberAbilities(new java.util.ArrayList(memberAbilities.length)); } for (String ele : memberAbilities) { this.memberAbilities.add(ele); } return this; } /** *

* 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 Membership withMemberAbilities(java.util.Collection memberAbilities) { setMemberAbilities(memberAbilities); return this; } /** *

* 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 Membership withMemberAbilities(MemberAbility... memberAbilities) { java.util.ArrayList memberAbilitiesCopy = new java.util.ArrayList(memberAbilities.length); for (MemberAbility value : memberAbilities) { memberAbilitiesCopy.add(value.toString()); } if (getMemberAbilities() == null) { setMemberAbilities(memberAbilitiesCopy); } else { getMemberAbilities().addAll(memberAbilitiesCopy); } return this; } /** *

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

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

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

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

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

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

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

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

* The default protected query result configuration as specified by the member who can receive results. *

* * @param defaultResultConfiguration * The default protected query result configuration as specified by the member who can receive results. */ public void setDefaultResultConfiguration(MembershipProtectedQueryResultConfiguration defaultResultConfiguration) { this.defaultResultConfiguration = defaultResultConfiguration; } /** *

* The default protected query result configuration as specified by the member who can receive results. *

* * @return The default protected query result configuration as specified by the member who can receive results. */ public MembershipProtectedQueryResultConfiguration getDefaultResultConfiguration() { return this.defaultResultConfiguration; } /** *

* The default protected query result configuration as specified by the member who can receive results. *

* * @param defaultResultConfiguration * The default protected query result configuration as specified by the member who can receive results. * @return Returns a reference to this object so that method calls can be chained together. */ public Membership withDefaultResultConfiguration(MembershipProtectedQueryResultConfiguration defaultResultConfiguration) { setDefaultResultConfiguration(defaultResultConfiguration); return this; } /** *

* The payment responsibilities accepted by the collaboration member. *

* * @param paymentConfiguration * The payment responsibilities accepted by the collaboration member. */ public void setPaymentConfiguration(MembershipPaymentConfiguration paymentConfiguration) { this.paymentConfiguration = paymentConfiguration; } /** *

* The payment responsibilities accepted by the collaboration member. *

* * @return The payment responsibilities accepted by the collaboration member. */ public MembershipPaymentConfiguration getPaymentConfiguration() { return this.paymentConfiguration; } /** *

* The payment responsibilities accepted by the collaboration member. *

* * @param paymentConfiguration * The payment responsibilities accepted by the collaboration member. * @return Returns a reference to this object so that method calls can be chained together. */ public Membership withPaymentConfiguration(MembershipPaymentConfiguration paymentConfiguration) { setPaymentConfiguration(paymentConfiguration); 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 (getCollaborationArn() != null) sb.append("CollaborationArn: ").append(getCollaborationArn()).append(","); if (getCollaborationId() != null) sb.append("CollaborationId: ").append(getCollaborationId()).append(","); if (getCollaborationCreatorAccountId() != null) sb.append("CollaborationCreatorAccountId: ").append(getCollaborationCreatorAccountId()).append(","); if (getCollaborationCreatorDisplayName() != null) sb.append("CollaborationCreatorDisplayName: ").append(getCollaborationCreatorDisplayName()).append(","); if (getCollaborationName() != null) sb.append("CollaborationName: ").append(getCollaborationName()).append(","); if (getCreateTime() != null) sb.append("CreateTime: ").append(getCreateTime()).append(","); if (getUpdateTime() != null) sb.append("UpdateTime: ").append(getUpdateTime()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getMemberAbilities() != null) sb.append("MemberAbilities: ").append(getMemberAbilities()).append(","); if (getQueryLogStatus() != null) sb.append("QueryLogStatus: ").append(getQueryLogStatus()).append(","); if (getDefaultResultConfiguration() != null) sb.append("DefaultResultConfiguration: ").append(getDefaultResultConfiguration()).append(","); if (getPaymentConfiguration() != null) sb.append("PaymentConfiguration: ").append(getPaymentConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Membership == false) return false; Membership other = (Membership) 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.getCollaborationArn() == null ^ this.getCollaborationArn() == null) return false; if (other.getCollaborationArn() != null && other.getCollaborationArn().equals(this.getCollaborationArn()) == false) return false; if (other.getCollaborationId() == null ^ this.getCollaborationId() == null) return false; if (other.getCollaborationId() != null && other.getCollaborationId().equals(this.getCollaborationId()) == false) return false; if (other.getCollaborationCreatorAccountId() == null ^ this.getCollaborationCreatorAccountId() == null) return false; if (other.getCollaborationCreatorAccountId() != null && other.getCollaborationCreatorAccountId().equals(this.getCollaborationCreatorAccountId()) == false) return false; if (other.getCollaborationCreatorDisplayName() == null ^ this.getCollaborationCreatorDisplayName() == null) return false; if (other.getCollaborationCreatorDisplayName() != null && other.getCollaborationCreatorDisplayName().equals(this.getCollaborationCreatorDisplayName()) == false) return false; if (other.getCollaborationName() == null ^ this.getCollaborationName() == null) return false; if (other.getCollaborationName() != null && other.getCollaborationName().equals(this.getCollaborationName()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getMemberAbilities() == null ^ this.getMemberAbilities() == null) return false; if (other.getMemberAbilities() != null && other.getMemberAbilities().equals(this.getMemberAbilities()) == false) return false; if (other.getQueryLogStatus() == null ^ this.getQueryLogStatus() == null) return false; if (other.getQueryLogStatus() != null && other.getQueryLogStatus().equals(this.getQueryLogStatus()) == false) return false; if (other.getDefaultResultConfiguration() == null ^ this.getDefaultResultConfiguration() == null) return false; if (other.getDefaultResultConfiguration() != null && other.getDefaultResultConfiguration().equals(this.getDefaultResultConfiguration()) == false) return false; if (other.getPaymentConfiguration() == null ^ this.getPaymentConfiguration() == null) return false; if (other.getPaymentConfiguration() != null && other.getPaymentConfiguration().equals(this.getPaymentConfiguration()) == 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 + ((getCollaborationArn() == null) ? 0 : getCollaborationArn().hashCode()); hashCode = prime * hashCode + ((getCollaborationId() == null) ? 0 : getCollaborationId().hashCode()); hashCode = prime * hashCode + ((getCollaborationCreatorAccountId() == null) ? 0 : getCollaborationCreatorAccountId().hashCode()); hashCode = prime * hashCode + ((getCollaborationCreatorDisplayName() == null) ? 0 : getCollaborationCreatorDisplayName().hashCode()); hashCode = prime * hashCode + ((getCollaborationName() == null) ? 0 : getCollaborationName().hashCode()); hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getMemberAbilities() == null) ? 0 : getMemberAbilities().hashCode()); hashCode = prime * hashCode + ((getQueryLogStatus() == null) ? 0 : getQueryLogStatus().hashCode()); hashCode = prime * hashCode + ((getDefaultResultConfiguration() == null) ? 0 : getDefaultResultConfiguration().hashCode()); hashCode = prime * hashCode + ((getPaymentConfiguration() == null) ? 0 : getPaymentConfiguration().hashCode()); return hashCode; } @Override public Membership clone() { try { return (Membership) 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.MembershipMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy