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

com.amazonaws.services.b2bi.model.PartnershipSummary Maven / Gradle / Ivy

/*
 * 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.b2bi.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A structure that contains the details for a partnership. A partnership represents the connection between you and your * trading partner. It ties together a profile and one or more trading capabilities. *

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

* Returns the unique, system-generated identifier for the profile connected to this partnership. *

*/ private String profileId; /** *

* Returns the unique, system-generated identifier for a partnership. *

*/ private String partnershipId; /** *

* Returns the name of the partnership. *

*/ private String name; /** *

* Returns one or more capabilities associated with this partnership. *

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

* Returns the unique, system-generated identifier for a trading partner. *

*/ private String tradingPartnerId; /** *

* Returns a timestamp for creation date and time of the partnership. *

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

* Returns a timestamp that identifies the most recent date and time that the partnership was modified. *

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

* Returns the unique, system-generated identifier for the profile connected to this partnership. *

* * @param profileId * Returns the unique, system-generated identifier for the profile connected to this partnership. */ public void setProfileId(String profileId) { this.profileId = profileId; } /** *

* Returns the unique, system-generated identifier for the profile connected to this partnership. *

* * @return Returns the unique, system-generated identifier for the profile connected to this partnership. */ public String getProfileId() { return this.profileId; } /** *

* Returns the unique, system-generated identifier for the profile connected to this partnership. *

* * @param profileId * Returns the unique, system-generated identifier for the profile connected to this partnership. * @return Returns a reference to this object so that method calls can be chained together. */ public PartnershipSummary withProfileId(String profileId) { setProfileId(profileId); return this; } /** *

* Returns the unique, system-generated identifier for a partnership. *

* * @param partnershipId * Returns the unique, system-generated identifier for a partnership. */ public void setPartnershipId(String partnershipId) { this.partnershipId = partnershipId; } /** *

* Returns the unique, system-generated identifier for a partnership. *

* * @return Returns the unique, system-generated identifier for a partnership. */ public String getPartnershipId() { return this.partnershipId; } /** *

* Returns the unique, system-generated identifier for a partnership. *

* * @param partnershipId * Returns the unique, system-generated identifier for a partnership. * @return Returns a reference to this object so that method calls can be chained together. */ public PartnershipSummary withPartnershipId(String partnershipId) { setPartnershipId(partnershipId); return this; } /** *

* Returns the name of the partnership. *

* * @param name * Returns the name of the partnership. */ public void setName(String name) { this.name = name; } /** *

* Returns the name of the partnership. *

* * @return Returns the name of the partnership. */ public String getName() { return this.name; } /** *

* Returns the name of the partnership. *

* * @param name * Returns the name of the partnership. * @return Returns a reference to this object so that method calls can be chained together. */ public PartnershipSummary withName(String name) { setName(name); return this; } /** *

* Returns one or more capabilities associated with this partnership. *

* * @return Returns one or more capabilities associated with this partnership. */ public java.util.List getCapabilities() { return capabilities; } /** *

* Returns one or more capabilities associated with this partnership. *

* * @param capabilities * Returns one or more capabilities associated with this partnership. */ public void setCapabilities(java.util.Collection capabilities) { if (capabilities == null) { this.capabilities = null; return; } this.capabilities = new java.util.ArrayList(capabilities); } /** *

* Returns one or more capabilities associated with this partnership. *

*

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

* * @param capabilities * Returns one or more capabilities associated with this partnership. * @return Returns a reference to this object so that method calls can be chained together. */ public PartnershipSummary withCapabilities(String... capabilities) { if (this.capabilities == null) { setCapabilities(new java.util.ArrayList(capabilities.length)); } for (String ele : capabilities) { this.capabilities.add(ele); } return this; } /** *

* Returns one or more capabilities associated with this partnership. *

* * @param capabilities * Returns one or more capabilities associated with this partnership. * @return Returns a reference to this object so that method calls can be chained together. */ public PartnershipSummary withCapabilities(java.util.Collection capabilities) { setCapabilities(capabilities); return this; } /** *

* Returns the unique, system-generated identifier for a trading partner. *

* * @param tradingPartnerId * Returns the unique, system-generated identifier for a trading partner. */ public void setTradingPartnerId(String tradingPartnerId) { this.tradingPartnerId = tradingPartnerId; } /** *

* Returns the unique, system-generated identifier for a trading partner. *

* * @return Returns the unique, system-generated identifier for a trading partner. */ public String getTradingPartnerId() { return this.tradingPartnerId; } /** *

* Returns the unique, system-generated identifier for a trading partner. *

* * @param tradingPartnerId * Returns the unique, system-generated identifier for a trading partner. * @return Returns a reference to this object so that method calls can be chained together. */ public PartnershipSummary withTradingPartnerId(String tradingPartnerId) { setTradingPartnerId(tradingPartnerId); return this; } /** *

* Returns a timestamp for creation date and time of the partnership. *

* * @param createdAt * Returns a timestamp for creation date and time of the partnership. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* Returns a timestamp for creation date and time of the partnership. *

* * @return Returns a timestamp for creation date and time of the partnership. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* Returns a timestamp for creation date and time of the partnership. *

* * @param createdAt * Returns a timestamp for creation date and time of the partnership. * @return Returns a reference to this object so that method calls can be chained together. */ public PartnershipSummary withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* Returns a timestamp that identifies the most recent date and time that the partnership was modified. *

* * @param modifiedAt * Returns a timestamp that identifies the most recent date and time that the partnership was modified. */ public void setModifiedAt(java.util.Date modifiedAt) { this.modifiedAt = modifiedAt; } /** *

* Returns a timestamp that identifies the most recent date and time that the partnership was modified. *

* * @return Returns a timestamp that identifies the most recent date and time that the partnership was modified. */ public java.util.Date getModifiedAt() { return this.modifiedAt; } /** *

* Returns a timestamp that identifies the most recent date and time that the partnership was modified. *

* * @param modifiedAt * Returns a timestamp that identifies the most recent date and time that the partnership was modified. * @return Returns a reference to this object so that method calls can be chained together. */ public PartnershipSummary withModifiedAt(java.util.Date modifiedAt) { setModifiedAt(modifiedAt); 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 (getProfileId() != null) sb.append("ProfileId: ").append(getProfileId()).append(","); if (getPartnershipId() != null) sb.append("PartnershipId: ").append(getPartnershipId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getCapabilities() != null) sb.append("Capabilities: ").append(getCapabilities()).append(","); if (getTradingPartnerId() != null) sb.append("TradingPartnerId: ").append(getTradingPartnerId()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getModifiedAt() != null) sb.append("ModifiedAt: ").append(getModifiedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PartnershipSummary == false) return false; PartnershipSummary other = (PartnershipSummary) obj; if (other.getProfileId() == null ^ this.getProfileId() == null) return false; if (other.getProfileId() != null && other.getProfileId().equals(this.getProfileId()) == false) return false; if (other.getPartnershipId() == null ^ this.getPartnershipId() == null) return false; if (other.getPartnershipId() != null && other.getPartnershipId().equals(this.getPartnershipId()) == 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.getCapabilities() == null ^ this.getCapabilities() == null) return false; if (other.getCapabilities() != null && other.getCapabilities().equals(this.getCapabilities()) == false) return false; if (other.getTradingPartnerId() == null ^ this.getTradingPartnerId() == null) return false; if (other.getTradingPartnerId() != null && other.getTradingPartnerId().equals(this.getTradingPartnerId()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getModifiedAt() == null ^ this.getModifiedAt() == null) return false; if (other.getModifiedAt() != null && other.getModifiedAt().equals(this.getModifiedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProfileId() == null) ? 0 : getProfileId().hashCode()); hashCode = prime * hashCode + ((getPartnershipId() == null) ? 0 : getPartnershipId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getCapabilities() == null) ? 0 : getCapabilities().hashCode()); hashCode = prime * hashCode + ((getTradingPartnerId() == null) ? 0 : getTradingPartnerId().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getModifiedAt() == null) ? 0 : getModifiedAt().hashCode()); return hashCode; } @Override public PartnershipSummary clone() { try { return (PartnershipSummary) 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.b2bi.model.transform.PartnershipSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy