/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ServiceCatalog { namespace Model { class DescribePortfolioShareStatusResult { public: AWS_SERVICECATALOG_API DescribePortfolioShareStatusResult(); AWS_SERVICECATALOG_API DescribePortfolioShareStatusResult(const Aws::AmazonWebServiceResult& result); AWS_SERVICECATALOG_API DescribePortfolioShareStatusResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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

*/ inline const Aws::String& GetPortfolioShareToken() const{ return m_portfolioShareToken; } /** *

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

*/ inline void SetPortfolioShareToken(const Aws::String& value) { m_portfolioShareToken = value; } /** *

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

*/ inline void SetPortfolioShareToken(Aws::String&& value) { m_portfolioShareToken = std::move(value); } /** *

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

*/ inline void SetPortfolioShareToken(const char* value) { m_portfolioShareToken.assign(value); } /** *

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

*/ inline DescribePortfolioShareStatusResult& WithPortfolioShareToken(const Aws::String& value) { SetPortfolioShareToken(value); return *this;} /** *

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

*/ inline DescribePortfolioShareStatusResult& WithPortfolioShareToken(Aws::String&& value) { SetPortfolioShareToken(std::move(value)); return *this;} /** *

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

*/ inline DescribePortfolioShareStatusResult& WithPortfolioShareToken(const char* value) { SetPortfolioShareToken(value); return *this;} /** *

The portfolio identifier.

*/ inline const Aws::String& GetPortfolioId() const{ return m_portfolioId; } /** *

The portfolio identifier.

*/ inline void SetPortfolioId(const Aws::String& value) { m_portfolioId = value; } /** *

The portfolio identifier.

*/ inline void SetPortfolioId(Aws::String&& value) { m_portfolioId = std::move(value); } /** *

The portfolio identifier.

*/ inline void SetPortfolioId(const char* value) { m_portfolioId.assign(value); } /** *

The portfolio identifier.

*/ inline DescribePortfolioShareStatusResult& WithPortfolioId(const Aws::String& value) { SetPortfolioId(value); return *this;} /** *

The portfolio identifier.

*/ inline DescribePortfolioShareStatusResult& WithPortfolioId(Aws::String&& value) { SetPortfolioId(std::move(value)); return *this;} /** *

The portfolio identifier.

*/ inline DescribePortfolioShareStatusResult& WithPortfolioId(const char* value) { SetPortfolioId(value); return *this;} /** *

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

*/ inline const Aws::String& GetOrganizationNodeValue() const{ return m_organizationNodeValue; } /** *

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

*/ inline void SetOrganizationNodeValue(const Aws::String& value) { m_organizationNodeValue = value; } /** *

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

*/ inline void SetOrganizationNodeValue(Aws::String&& value) { m_organizationNodeValue = std::move(value); } /** *

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

*/ inline void SetOrganizationNodeValue(const char* value) { m_organizationNodeValue.assign(value); } /** *

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

*/ inline DescribePortfolioShareStatusResult& WithOrganizationNodeValue(const Aws::String& value) { SetOrganizationNodeValue(value); return *this;} /** *

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

*/ inline DescribePortfolioShareStatusResult& WithOrganizationNodeValue(Aws::String&& value) { SetOrganizationNodeValue(std::move(value)); return *this;} /** *

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

*/ inline DescribePortfolioShareStatusResult& WithOrganizationNodeValue(const char* value) { SetOrganizationNodeValue(value); return *this;} /** *

Status of the portfolio share operation.

*/ inline const ShareStatus& GetStatus() const{ return m_status; } /** *

Status of the portfolio share operation.

*/ inline void SetStatus(const ShareStatus& value) { m_status = value; } /** *

Status of the portfolio share operation.

*/ inline void SetStatus(ShareStatus&& value) { m_status = std::move(value); } /** *

Status of the portfolio share operation.

*/ inline DescribePortfolioShareStatusResult& WithStatus(const ShareStatus& value) { SetStatus(value); return *this;} /** *

Status of the portfolio share operation.

*/ inline DescribePortfolioShareStatusResult& WithStatus(ShareStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Information about the portfolio share operation.

*/ inline const ShareDetails& GetShareDetails() const{ return m_shareDetails; } /** *

Information about the portfolio share operation.

*/ inline void SetShareDetails(const ShareDetails& value) { m_shareDetails = value; } /** *

Information about the portfolio share operation.

*/ inline void SetShareDetails(ShareDetails&& value) { m_shareDetails = std::move(value); } /** *

Information about the portfolio share operation.

*/ inline DescribePortfolioShareStatusResult& WithShareDetails(const ShareDetails& value) { SetShareDetails(value); return *this;} /** *

Information about the portfolio share operation.

*/ inline DescribePortfolioShareStatusResult& WithShareDetails(ShareDetails&& value) { SetShareDetails(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribePortfolioShareStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribePortfolioShareStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribePortfolioShareStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_portfolioShareToken; Aws::String m_portfolioId; Aws::String m_organizationNodeValue; ShareStatus m_status; ShareDetails m_shareDetails; Aws::String m_requestId; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws