1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/servicecatalog/ServiceCatalog_EXPORTS.h> 8 #include <aws/servicecatalog/ServiceCatalogRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace ServiceCatalog 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_SERVICECATALOG_API DescribePortfolioShareStatusRequest : public ServiceCatalogRequest 22 { 23 public: 24 DescribePortfolioShareStatusRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "DescribePortfolioShareStatus"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The token for the portfolio share operation. This token is returned either by 39 * CreatePortfolioShare or by DeletePortfolioShare.</p> 40 */ GetPortfolioShareToken()41 inline const Aws::String& GetPortfolioShareToken() const{ return m_portfolioShareToken; } 42 43 /** 44 * <p>The token for the portfolio share operation. This token is returned either by 45 * CreatePortfolioShare or by DeletePortfolioShare.</p> 46 */ PortfolioShareTokenHasBeenSet()47 inline bool PortfolioShareTokenHasBeenSet() const { return m_portfolioShareTokenHasBeenSet; } 48 49 /** 50 * <p>The token for the portfolio share operation. This token is returned either by 51 * CreatePortfolioShare or by DeletePortfolioShare.</p> 52 */ SetPortfolioShareToken(const Aws::String & value)53 inline void SetPortfolioShareToken(const Aws::String& value) { m_portfolioShareTokenHasBeenSet = true; m_portfolioShareToken = value; } 54 55 /** 56 * <p>The token for the portfolio share operation. This token is returned either by 57 * CreatePortfolioShare or by DeletePortfolioShare.</p> 58 */ SetPortfolioShareToken(Aws::String && value)59 inline void SetPortfolioShareToken(Aws::String&& value) { m_portfolioShareTokenHasBeenSet = true; m_portfolioShareToken = std::move(value); } 60 61 /** 62 * <p>The token for the portfolio share operation. This token is returned either by 63 * CreatePortfolioShare or by DeletePortfolioShare.</p> 64 */ SetPortfolioShareToken(const char * value)65 inline void SetPortfolioShareToken(const char* value) { m_portfolioShareTokenHasBeenSet = true; m_portfolioShareToken.assign(value); } 66 67 /** 68 * <p>The token for the portfolio share operation. This token is returned either by 69 * CreatePortfolioShare or by DeletePortfolioShare.</p> 70 */ WithPortfolioShareToken(const Aws::String & value)71 inline DescribePortfolioShareStatusRequest& WithPortfolioShareToken(const Aws::String& value) { SetPortfolioShareToken(value); return *this;} 72 73 /** 74 * <p>The token for the portfolio share operation. This token is returned either by 75 * CreatePortfolioShare or by DeletePortfolioShare.</p> 76 */ WithPortfolioShareToken(Aws::String && value)77 inline DescribePortfolioShareStatusRequest& WithPortfolioShareToken(Aws::String&& value) { SetPortfolioShareToken(std::move(value)); return *this;} 78 79 /** 80 * <p>The token for the portfolio share operation. This token is returned either by 81 * CreatePortfolioShare or by DeletePortfolioShare.</p> 82 */ WithPortfolioShareToken(const char * value)83 inline DescribePortfolioShareStatusRequest& WithPortfolioShareToken(const char* value) { SetPortfolioShareToken(value); return *this;} 84 85 private: 86 87 Aws::String m_portfolioShareToken; 88 bool m_portfolioShareTokenHasBeenSet; 89 }; 90 91 } // namespace Model 92 } // namespace ServiceCatalog 93 } // namespace Aws 94