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

com.amazonaws.services.b2bi.model.UpdatePartnershipRequest 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.AmazonWebServiceRequest;

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

    /**
     * 

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

*/ private String partnershipId; /** *

* The name of the partnership, used to identify it. *

*/ private String name; /** *

* List of the capabilities associated with this partnership. *

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

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

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

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

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

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

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

* The name of the partnership, used to identify it. *

* * @param name * The name of the partnership, used to identify it. */ public void setName(String name) { this.name = name; } /** *

* The name of the partnership, used to identify it. *

* * @return The name of the partnership, used to identify it. */ public String getName() { return this.name; } /** *

* The name of the partnership, used to identify it. *

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

* List of the capabilities associated with this partnership. *

* * @return List of the capabilities associated with this partnership. */ public java.util.List getCapabilities() { return capabilities; } /** *

* List of the capabilities associated with this partnership. *

* * @param capabilities * List of the 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); } /** *

* List of the 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 * List of the capabilities associated with this partnership. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePartnershipRequest withCapabilities(String... capabilities) { if (this.capabilities == null) { setCapabilities(new java.util.ArrayList(capabilities.length)); } for (String ele : capabilities) { this.capabilities.add(ele); } return this; } /** *

* List of the capabilities associated with this partnership. *

* * @param capabilities * List of the capabilities associated with this partnership. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePartnershipRequest withCapabilities(java.util.Collection capabilities) { setCapabilities(capabilities); 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 (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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdatePartnershipRequest == false) return false; UpdatePartnershipRequest other = (UpdatePartnershipRequest) obj; 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPartnershipId() == null) ? 0 : getPartnershipId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getCapabilities() == null) ? 0 : getCapabilities().hashCode()); return hashCode; } @Override public UpdatePartnershipRequest clone() { return (UpdatePartnershipRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy