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

com.amazonaws.services.cleanrooms.model.MemberSummary 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 member object listed by the request. *

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

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

*/ private String accountId; /** *

* The status of the member. *

*/ private String status; /** *

* The member's display name. *

*/ private String displayName; /** *

* The abilities granted to the collaboration member. *

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

* The time when the member was created. *

*/ private java.util.Date createTime; /** *

* The time the member metadata was last updated. *

*/ private java.util.Date updateTime; /** *

* The unique ID for the member's associated membership, if present. *

*/ private String membershipId; /** *

* The unique ARN for the member's associated membership, if present. *

*/ private String membershipArn; /** *

* The collaboration member's payment responsibilities set by the collaboration creator. *

*/ private PaymentConfiguration paymentConfiguration; /** *

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

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

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

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

* * @param accountId * 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 MemberSummary withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The status of the member. *

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

* The status of the member. *

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

* The status of the member. *

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

* The status of the member. *

* * @param status * The status of the member. * @return Returns a reference to this object so that method calls can be chained together. * @see MemberStatus */ public MemberSummary withStatus(MemberStatus status) { this.status = status.toString(); return this; } /** *

* The member's display name. *

* * @param displayName * The member's display name. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The member's display name. *

* * @return The member's display name. */ public String getDisplayName() { return this.displayName; } /** *

* The member's display name. *

* * @param displayName * The member's display name. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The abilities granted to the collaboration member. *

* * @return The abilities granted to the collaboration member. * @see MemberAbility */ public java.util.List getAbilities() { return abilities; } /** *

* The abilities granted to the collaboration member. *

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

* The abilities granted to the collaboration member. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAbilities(java.util.Collection)} or {@link #withAbilities(java.util.Collection)} if you want to * override the existing values. *

* * @param abilities * 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 MemberSummary withAbilities(String... abilities) { if (this.abilities == null) { setAbilities(new java.util.ArrayList(abilities.length)); } for (String ele : abilities) { this.abilities.add(ele); } return this; } /** *

* The abilities granted to the collaboration member. *

* * @param abilities * 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 MemberSummary withAbilities(java.util.Collection abilities) { setAbilities(abilities); return this; } /** *

* The abilities granted to the collaboration member. *

* * @param abilities * 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 MemberSummary withAbilities(MemberAbility... abilities) { java.util.ArrayList abilitiesCopy = new java.util.ArrayList(abilities.length); for (MemberAbility value : abilities) { abilitiesCopy.add(value.toString()); } if (getAbilities() == null) { setAbilities(abilitiesCopy); } else { getAbilities().addAll(abilitiesCopy); } return this; } /** *

* The time when the member was created. *

* * @param createTime * The time when the member was created. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** *

* The time when the member was created. *

* * @return The time when the member was created. */ public java.util.Date getCreateTime() { return this.createTime; } /** *

* The time when the member was created. *

* * @param createTime * The time when the member was created. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** *

* The time the member metadata was last updated. *

* * @param updateTime * The time the member metadata was last updated. */ public void setUpdateTime(java.util.Date updateTime) { this.updateTime = updateTime; } /** *

* The time the member metadata was last updated. *

* * @return The time the member metadata was last updated. */ public java.util.Date getUpdateTime() { return this.updateTime; } /** *

* The time the member metadata was last updated. *

* * @param updateTime * The time the member metadata was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withUpdateTime(java.util.Date updateTime) { setUpdateTime(updateTime); return this; } /** *

* The unique ID for the member's associated membership, if present. *

* * @param membershipId * The unique ID for the member's associated membership, if present. */ public void setMembershipId(String membershipId) { this.membershipId = membershipId; } /** *

* The unique ID for the member's associated membership, if present. *

* * @return The unique ID for the member's associated membership, if present. */ public String getMembershipId() { return this.membershipId; } /** *

* The unique ID for the member's associated membership, if present. *

* * @param membershipId * The unique ID for the member's associated membership, if present. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withMembershipId(String membershipId) { setMembershipId(membershipId); return this; } /** *

* The unique ARN for the member's associated membership, if present. *

* * @param membershipArn * The unique ARN for the member's associated membership, if present. */ public void setMembershipArn(String membershipArn) { this.membershipArn = membershipArn; } /** *

* The unique ARN for the member's associated membership, if present. *

* * @return The unique ARN for the member's associated membership, if present. */ public String getMembershipArn() { return this.membershipArn; } /** *

* The unique ARN for the member's associated membership, if present. *

* * @param membershipArn * The unique ARN for the member's associated membership, if present. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withMembershipArn(String membershipArn) { setMembershipArn(membershipArn); return this; } /** *

* The collaboration member's payment responsibilities set by the collaboration creator. *

* * @param paymentConfiguration * The collaboration member's payment responsibilities set by the collaboration creator. */ public void setPaymentConfiguration(PaymentConfiguration paymentConfiguration) { this.paymentConfiguration = paymentConfiguration; } /** *

* The collaboration member's payment responsibilities set by the collaboration creator. *

* * @return The collaboration member's payment responsibilities set by the collaboration creator. */ public PaymentConfiguration getPaymentConfiguration() { return this.paymentConfiguration; } /** *

* The collaboration member's payment responsibilities set by the collaboration creator. *

* * @param paymentConfiguration * The collaboration member's payment responsibilities set by the collaboration creator. * @return Returns a reference to this object so that method calls can be chained together. */ public MemberSummary withPaymentConfiguration(PaymentConfiguration 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 (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getAbilities() != null) sb.append("Abilities: ").append(getAbilities()).append(","); if (getCreateTime() != null) sb.append("CreateTime: ").append(getCreateTime()).append(","); if (getUpdateTime() != null) sb.append("UpdateTime: ").append(getUpdateTime()).append(","); if (getMembershipId() != null) sb.append("MembershipId: ").append(getMembershipId()).append(","); if (getMembershipArn() != null) sb.append("MembershipArn: ").append(getMembershipArn()).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 MemberSummary == false) return false; MemberSummary other = (MemberSummary) obj; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == 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.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getAbilities() == null ^ this.getAbilities() == null) return false; if (other.getAbilities() != null && other.getAbilities().equals(this.getAbilities()) == 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.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.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 + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getAbilities() == null) ? 0 : getAbilities().hashCode()); hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); hashCode = prime * hashCode + ((getMembershipId() == null) ? 0 : getMembershipId().hashCode()); hashCode = prime * hashCode + ((getMembershipArn() == null) ? 0 : getMembershipArn().hashCode()); hashCode = prime * hashCode + ((getPaymentConfiguration() == null) ? 0 : getPaymentConfiguration().hashCode()); return hashCode; } @Override public MemberSummary clone() { try { return (MemberSummary) 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.MemberSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy