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

com.amazonaws.services.servicecatalog.model.DescribePortfolioShareStatusResult 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

There is a newer version: 1.12.772
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.servicecatalog.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The token for the portfolio share operation. For example, share-6v24abcdefghi. *

*/ private String portfolioShareToken; /** *

* The portfolio identifier. *

*/ private String portfolioId; /** *

* Organization node identifier. It can be either account id, organizational unit id or organization id. *

*/ private String organizationNodeValue; /** *

* Status of the portfolio share operation. *

*/ private String status; /** *

* Information about the portfolio share operation. *

*/ private ShareDetails shareDetails; /** *

* The token for the portfolio share operation. For example, share-6v24abcdefghi. *

* * @param portfolioShareToken * The token for the portfolio share operation. For example, share-6v24abcdefghi. */ public void setPortfolioShareToken(String portfolioShareToken) { this.portfolioShareToken = portfolioShareToken; } /** *

* The token for the portfolio share operation. For example, share-6v24abcdefghi. *

* * @return The token for the portfolio share operation. For example, share-6v24abcdefghi. */ public String getPortfolioShareToken() { return this.portfolioShareToken; } /** *

* The token for the portfolio share operation. For example, share-6v24abcdefghi. *

* * @param portfolioShareToken * The token for the portfolio share operation. For example, share-6v24abcdefghi. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePortfolioShareStatusResult withPortfolioShareToken(String portfolioShareToken) { setPortfolioShareToken(portfolioShareToken); 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 DescribePortfolioShareStatusResult withPortfolioId(String portfolioId) { setPortfolioId(portfolioId); return this; } /** *

* Organization node identifier. It can be either account id, organizational unit id or organization id. *

* * @param organizationNodeValue * Organization node identifier. It can be either account id, organizational unit id or organization id. */ public void setOrganizationNodeValue(String organizationNodeValue) { this.organizationNodeValue = organizationNodeValue; } /** *

* Organization node identifier. It can be either account id, organizational unit id or organization id. *

* * @return Organization node identifier. It can be either account id, organizational unit id or organization id. */ public String getOrganizationNodeValue() { return this.organizationNodeValue; } /** *

* Organization node identifier. It can be either account id, organizational unit id or organization id. *

* * @param organizationNodeValue * Organization node identifier. It can be either account id, organizational unit id or organization id. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePortfolioShareStatusResult withOrganizationNodeValue(String organizationNodeValue) { setOrganizationNodeValue(organizationNodeValue); return this; } /** *

* Status of the portfolio share operation. *

* * @param status * Status of the portfolio share operation. * @see ShareStatus */ public void setStatus(String status) { this.status = status; } /** *

* Status of the portfolio share operation. *

* * @return Status of the portfolio share operation. * @see ShareStatus */ public String getStatus() { return this.status; } /** *

* Status of the portfolio share operation. *

* * @param status * Status of the portfolio share operation. * @return Returns a reference to this object so that method calls can be chained together. * @see ShareStatus */ public DescribePortfolioShareStatusResult withStatus(String status) { setStatus(status); return this; } /** *

* Status of the portfolio share operation. *

* * @param status * Status of the portfolio share operation. * @return Returns a reference to this object so that method calls can be chained together. * @see ShareStatus */ public DescribePortfolioShareStatusResult withStatus(ShareStatus status) { this.status = status.toString(); return this; } /** *

* Information about the portfolio share operation. *

* * @param shareDetails * Information about the portfolio share operation. */ public void setShareDetails(ShareDetails shareDetails) { this.shareDetails = shareDetails; } /** *

* Information about the portfolio share operation. *

* * @return Information about the portfolio share operation. */ public ShareDetails getShareDetails() { return this.shareDetails; } /** *

* Information about the portfolio share operation. *

* * @param shareDetails * Information about the portfolio share operation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePortfolioShareStatusResult withShareDetails(ShareDetails shareDetails) { setShareDetails(shareDetails); 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 (getPortfolioShareToken() != null) sb.append("PortfolioShareToken: ").append(getPortfolioShareToken()).append(","); if (getPortfolioId() != null) sb.append("PortfolioId: ").append(getPortfolioId()).append(","); if (getOrganizationNodeValue() != null) sb.append("OrganizationNodeValue: ").append(getOrganizationNodeValue()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getShareDetails() != null) sb.append("ShareDetails: ").append(getShareDetails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribePortfolioShareStatusResult == false) return false; DescribePortfolioShareStatusResult other = (DescribePortfolioShareStatusResult) obj; if (other.getPortfolioShareToken() == null ^ this.getPortfolioShareToken() == null) return false; if (other.getPortfolioShareToken() != null && other.getPortfolioShareToken().equals(this.getPortfolioShareToken()) == 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.getOrganizationNodeValue() == null ^ this.getOrganizationNodeValue() == null) return false; if (other.getOrganizationNodeValue() != null && other.getOrganizationNodeValue().equals(this.getOrganizationNodeValue()) == 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.getShareDetails() == null ^ this.getShareDetails() == null) return false; if (other.getShareDetails() != null && other.getShareDetails().equals(this.getShareDetails()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPortfolioShareToken() == null) ? 0 : getPortfolioShareToken().hashCode()); hashCode = prime * hashCode + ((getPortfolioId() == null) ? 0 : getPortfolioId().hashCode()); hashCode = prime * hashCode + ((getOrganizationNodeValue() == null) ? 0 : getOrganizationNodeValue().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getShareDetails() == null) ? 0 : getShareDetails().hashCode()); return hashCode; } @Override public DescribePortfolioShareStatusResult clone() { try { return (DescribePortfolioShareStatusResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy