/** * 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 { namespace ServiceCatalog { namespace Model { /** */ class AcceptPortfolioShareRequest : public ServiceCatalogRequest { public: AWS_SERVICECATALOG_API AcceptPortfolioShareRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AcceptPortfolioShare"; } AWS_SERVICECATALOG_API Aws::String SerializePayload() const override; AWS_SERVICECATALOG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline AcceptPortfolioShareRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;} /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline AcceptPortfolioShareRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;} /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline AcceptPortfolioShareRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;} /** *

The portfolio identifier.

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

The portfolio identifier.

*/ inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; } /** *

The portfolio identifier.

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

The portfolio identifier.

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

The portfolio identifier.

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

The portfolio identifier.

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

The portfolio identifier.

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

The portfolio identifier.

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

The type of shared portfolios to accept. The default is to accept imported * portfolios.

  • AWS_ORGANIZATIONS - Accept portfolios * shared by the management account of your organization.

  • * IMPORTED - Accept imported portfolios.

  • * AWS_SERVICECATALOG - Not supported. (Throws * ResourceNotFoundException.)

For example, aws * servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" * --portfolio-share-type AWS_ORGANIZATIONS

*/ inline const PortfolioShareType& GetPortfolioShareType() const{ return m_portfolioShareType; } /** *

The type of shared portfolios to accept. The default is to accept imported * portfolios.

  • AWS_ORGANIZATIONS - Accept portfolios * shared by the management account of your organization.

  • * IMPORTED - Accept imported portfolios.

  • * AWS_SERVICECATALOG - Not supported. (Throws * ResourceNotFoundException.)

For example, aws * servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" * --portfolio-share-type AWS_ORGANIZATIONS

*/ inline bool PortfolioShareTypeHasBeenSet() const { return m_portfolioShareTypeHasBeenSet; } /** *

The type of shared portfolios to accept. The default is to accept imported * portfolios.

  • AWS_ORGANIZATIONS - Accept portfolios * shared by the management account of your organization.

  • * IMPORTED - Accept imported portfolios.

  • * AWS_SERVICECATALOG - Not supported. (Throws * ResourceNotFoundException.)

For example, aws * servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" * --portfolio-share-type AWS_ORGANIZATIONS

*/ inline void SetPortfolioShareType(const PortfolioShareType& value) { m_portfolioShareTypeHasBeenSet = true; m_portfolioShareType = value; } /** *

The type of shared portfolios to accept. The default is to accept imported * portfolios.

  • AWS_ORGANIZATIONS - Accept portfolios * shared by the management account of your organization.

  • * IMPORTED - Accept imported portfolios.

  • * AWS_SERVICECATALOG - Not supported. (Throws * ResourceNotFoundException.)

For example, aws * servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" * --portfolio-share-type AWS_ORGANIZATIONS

*/ inline void SetPortfolioShareType(PortfolioShareType&& value) { m_portfolioShareTypeHasBeenSet = true; m_portfolioShareType = std::move(value); } /** *

The type of shared portfolios to accept. The default is to accept imported * portfolios.

  • AWS_ORGANIZATIONS - Accept portfolios * shared by the management account of your organization.

  • * IMPORTED - Accept imported portfolios.

  • * AWS_SERVICECATALOG - Not supported. (Throws * ResourceNotFoundException.)

For example, aws * servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" * --portfolio-share-type AWS_ORGANIZATIONS

*/ inline AcceptPortfolioShareRequest& WithPortfolioShareType(const PortfolioShareType& value) { SetPortfolioShareType(value); return *this;} /** *

The type of shared portfolios to accept. The default is to accept imported * portfolios.

  • AWS_ORGANIZATIONS - Accept portfolios * shared by the management account of your organization.

  • * IMPORTED - Accept imported portfolios.

  • * AWS_SERVICECATALOG - Not supported. (Throws * ResourceNotFoundException.)

For example, aws * servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" * --portfolio-share-type AWS_ORGANIZATIONS

*/ inline AcceptPortfolioShareRequest& WithPortfolioShareType(PortfolioShareType&& value) { SetPortfolioShareType(std::move(value)); return *this;} private: Aws::String m_acceptLanguage; bool m_acceptLanguageHasBeenSet = false; Aws::String m_portfolioId; bool m_portfolioIdHasBeenSet = false; PortfolioShareType m_portfolioShareType; bool m_portfolioShareTypeHasBeenSet = false; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws