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

com.amazonaws.services.servicecatalog.model.DeletePortfolioShareRequest Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * Copyright 2020-2025 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.servicecatalog.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 DeletePortfolioShareRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The language code. *

*
    *
  • *

    * jp - Japanese *

    *
  • *
  • *

    * zh - Chinese *

    *
  • *
*/ private String acceptLanguage; /** *

* The portfolio identifier. *

*/ private String portfolioId; /** *

* The Amazon Web Services account ID. *

*/ private String accountId; /** *

* The organization node to whom you are going to stop sharing. *

*/ private OrganizationNode organizationNode; /** *

* The language code. *

*
    *
  • *

    * jp - Japanese *

    *
  • *
  • *

    * zh - Chinese *

    *
  • *
* * @param acceptLanguage * The language code.

*
    *
  • *

    * jp - Japanese *

    *
  • *
  • *

    * zh - Chinese *

    *
  • */ public void setAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; } /** *

    * The language code. *

    *
      *
    • *

      * jp - Japanese *

      *
    • *
    • *

      * zh - Chinese *

      *
    • *
    * * @return The language code.

    *
      *
    • *

      * jp - Japanese *

      *
    • *
    • *

      * zh - Chinese *

      *
    • */ public String getAcceptLanguage() { return this.acceptLanguage; } /** *

      * The language code. *

      *
        *
      • *

        * jp - Japanese *

        *
      • *
      • *

        * zh - Chinese *

        *
      • *
      * * @param acceptLanguage * The language code.

      *
        *
      • *

        * jp - Japanese *

        *
      • *
      • *

        * zh - Chinese *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public DeletePortfolioShareRequest withAcceptLanguage(String acceptLanguage) { setAcceptLanguage(acceptLanguage); return this; } /** *

        * The portfolio identifier. *

        * * @param portfolioId * The portfolio identifier. */ public void setPortfolioId(String portfolioId) { this.portfolioId = portfolioId; } /** *

        * The portfolio identifier. *

        * * @return The portfolio identifier. */ public String getPortfolioId() { return this.portfolioId; } /** *

        * The portfolio identifier. *

        * * @param portfolioId * The portfolio identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public DeletePortfolioShareRequest withPortfolioId(String portfolioId) { setPortfolioId(portfolioId); return this; } /** *

        * The Amazon Web Services account ID. *

        * * @param accountId * The Amazon Web Services account ID. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

        * The Amazon Web Services account ID. *

        * * @return The Amazon Web Services account ID. */ public String getAccountId() { return this.accountId; } /** *

        * The Amazon Web Services account ID. *

        * * @param accountId * The Amazon Web Services account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DeletePortfolioShareRequest withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

        * The organization node to whom you are going to stop sharing. *

        * * @param organizationNode * The organization node to whom you are going to stop sharing. */ public void setOrganizationNode(OrganizationNode organizationNode) { this.organizationNode = organizationNode; } /** *

        * The organization node to whom you are going to stop sharing. *

        * * @return The organization node to whom you are going to stop sharing. */ public OrganizationNode getOrganizationNode() { return this.organizationNode; } /** *

        * The organization node to whom you are going to stop sharing. *

        * * @param organizationNode * The organization node to whom you are going to stop sharing. * @return Returns a reference to this object so that method calls can be chained together. */ public DeletePortfolioShareRequest withOrganizationNode(OrganizationNode organizationNode) { setOrganizationNode(organizationNode); 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 (getAcceptLanguage() != null) sb.append("AcceptLanguage: ").append(getAcceptLanguage()).append(","); if (getPortfolioId() != null) sb.append("PortfolioId: ").append(getPortfolioId()).append(","); if (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getOrganizationNode() != null) sb.append("OrganizationNode: ").append(getOrganizationNode()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeletePortfolioShareRequest == false) return false; DeletePortfolioShareRequest other = (DeletePortfolioShareRequest) obj; if (other.getAcceptLanguage() == null ^ this.getAcceptLanguage() == null) return false; if (other.getAcceptLanguage() != null && other.getAcceptLanguage().equals(this.getAcceptLanguage()) == false) return false; if (other.getPortfolioId() == null ^ this.getPortfolioId() == null) return false; if (other.getPortfolioId() != null && other.getPortfolioId().equals(this.getPortfolioId()) == false) return false; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getOrganizationNode() == null ^ this.getOrganizationNode() == null) return false; if (other.getOrganizationNode() != null && other.getOrganizationNode().equals(this.getOrganizationNode()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAcceptLanguage() == null) ? 0 : getAcceptLanguage().hashCode()); hashCode = prime * hashCode + ((getPortfolioId() == null) ? 0 : getPortfolioId().hashCode()); hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getOrganizationNode() == null) ? 0 : getOrganizationNode().hashCode()); return hashCode; } @Override public DeletePortfolioShareRequest clone() { return (DeletePortfolioShareRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy