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

The portfolio shares a unique identifier that only returns if the portfolio * is shared to an organization node.

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

The portfolio shares a unique identifier that only returns if the portfolio * is shared to an organization node.

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

The portfolio shares a unique identifier that only returns if the portfolio * is shared to an organization node.

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

The portfolio shares a unique identifier that only returns if the portfolio * is shared to an organization node.

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

The portfolio shares a unique identifier that only returns if the portfolio * is shared to an organization node.

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

The portfolio shares a unique identifier that only returns if the portfolio * is shared to an organization node.

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

The portfolio shares a unique identifier that only returns if the portfolio * is shared to an organization node.

*/ inline CreatePortfolioShareResult& WithPortfolioShareToken(const char* value) { SetPortfolioShareToken(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 CreatePortfolioShareResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreatePortfolioShareResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreatePortfolioShareResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_portfolioShareToken; Aws::String m_requestId; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws