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 <aws/servicecatalog/model/PortfolioShareType.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace ServiceCatalog 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_SERVICECATALOG_API ListAcceptedPortfolioSharesRequest : public ServiceCatalogRequest 23 { 24 public: 25 ListAcceptedPortfolioSharesRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "ListAcceptedPortfolioShares"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 40 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 41 * Chinese</p> </li> </ul> 42 */ GetAcceptLanguage()43 inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; } 44 45 /** 46 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 47 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 48 * Chinese</p> </li> </ul> 49 */ AcceptLanguageHasBeenSet()50 inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; } 51 52 /** 53 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 54 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 55 * Chinese</p> </li> </ul> 56 */ SetAcceptLanguage(const Aws::String & value)57 inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; } 58 59 /** 60 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 61 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 62 * Chinese</p> </li> </ul> 63 */ SetAcceptLanguage(Aws::String && value)64 inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); } 65 66 /** 67 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 68 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 69 * Chinese</p> </li> </ul> 70 */ SetAcceptLanguage(const char * value)71 inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); } 72 73 /** 74 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 75 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 76 * Chinese</p> </li> </ul> 77 */ WithAcceptLanguage(const Aws::String & value)78 inline ListAcceptedPortfolioSharesRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;} 79 80 /** 81 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 82 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 83 * Chinese</p> </li> </ul> 84 */ WithAcceptLanguage(Aws::String && value)85 inline ListAcceptedPortfolioSharesRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;} 86 87 /** 88 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 89 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 90 * Chinese</p> </li> </ul> 91 */ WithAcceptLanguage(const char * value)92 inline ListAcceptedPortfolioSharesRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;} 93 94 95 /** 96 * <p>The page token for the next set of results. To retrieve the first set of 97 * results, use null.</p> 98 */ GetPageToken()99 inline const Aws::String& GetPageToken() const{ return m_pageToken; } 100 101 /** 102 * <p>The page token for the next set of results. To retrieve the first set of 103 * results, use null.</p> 104 */ PageTokenHasBeenSet()105 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; } 106 107 /** 108 * <p>The page token for the next set of results. To retrieve the first set of 109 * results, use null.</p> 110 */ SetPageToken(const Aws::String & value)111 inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; } 112 113 /** 114 * <p>The page token for the next set of results. To retrieve the first set of 115 * results, use null.</p> 116 */ SetPageToken(Aws::String && value)117 inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); } 118 119 /** 120 * <p>The page token for the next set of results. To retrieve the first set of 121 * results, use null.</p> 122 */ SetPageToken(const char * value)123 inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); } 124 125 /** 126 * <p>The page token for the next set of results. To retrieve the first set of 127 * results, use null.</p> 128 */ WithPageToken(const Aws::String & value)129 inline ListAcceptedPortfolioSharesRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;} 130 131 /** 132 * <p>The page token for the next set of results. To retrieve the first set of 133 * results, use null.</p> 134 */ WithPageToken(Aws::String && value)135 inline ListAcceptedPortfolioSharesRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;} 136 137 /** 138 * <p>The page token for the next set of results. To retrieve the first set of 139 * results, use null.</p> 140 */ WithPageToken(const char * value)141 inline ListAcceptedPortfolioSharesRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;} 142 143 144 /** 145 * <p>The maximum number of items to return with this call.</p> 146 */ GetPageSize()147 inline int GetPageSize() const{ return m_pageSize; } 148 149 /** 150 * <p>The maximum number of items to return with this call.</p> 151 */ PageSizeHasBeenSet()152 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } 153 154 /** 155 * <p>The maximum number of items to return with this call.</p> 156 */ SetPageSize(int value)157 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } 158 159 /** 160 * <p>The maximum number of items to return with this call.</p> 161 */ WithPageSize(int value)162 inline ListAcceptedPortfolioSharesRequest& WithPageSize(int value) { SetPageSize(value); return *this;} 163 164 165 /** 166 * <p>The type of shared portfolios to list. The default is to list imported 167 * portfolios.</p> <ul> <li> <p> <code>AWS_ORGANIZATIONS</code> - List portfolios 168 * shared by the management account of your organization</p> </li> <li> <p> 169 * <code>AWS_SERVICECATALOG</code> - List default portfolios</p> </li> <li> <p> 170 * <code>IMPORTED</code> - List imported portfolios</p> </li> </ul> 171 */ GetPortfolioShareType()172 inline const PortfolioShareType& GetPortfolioShareType() const{ return m_portfolioShareType; } 173 174 /** 175 * <p>The type of shared portfolios to list. The default is to list imported 176 * portfolios.</p> <ul> <li> <p> <code>AWS_ORGANIZATIONS</code> - List portfolios 177 * shared by the management account of your organization</p> </li> <li> <p> 178 * <code>AWS_SERVICECATALOG</code> - List default portfolios</p> </li> <li> <p> 179 * <code>IMPORTED</code> - List imported portfolios</p> </li> </ul> 180 */ PortfolioShareTypeHasBeenSet()181 inline bool PortfolioShareTypeHasBeenSet() const { return m_portfolioShareTypeHasBeenSet; } 182 183 /** 184 * <p>The type of shared portfolios to list. The default is to list imported 185 * portfolios.</p> <ul> <li> <p> <code>AWS_ORGANIZATIONS</code> - List portfolios 186 * shared by the management account of your organization</p> </li> <li> <p> 187 * <code>AWS_SERVICECATALOG</code> - List default portfolios</p> </li> <li> <p> 188 * <code>IMPORTED</code> - List imported portfolios</p> </li> </ul> 189 */ SetPortfolioShareType(const PortfolioShareType & value)190 inline void SetPortfolioShareType(const PortfolioShareType& value) { m_portfolioShareTypeHasBeenSet = true; m_portfolioShareType = value; } 191 192 /** 193 * <p>The type of shared portfolios to list. The default is to list imported 194 * portfolios.</p> <ul> <li> <p> <code>AWS_ORGANIZATIONS</code> - List portfolios 195 * shared by the management account of your organization</p> </li> <li> <p> 196 * <code>AWS_SERVICECATALOG</code> - List default portfolios</p> </li> <li> <p> 197 * <code>IMPORTED</code> - List imported portfolios</p> </li> </ul> 198 */ SetPortfolioShareType(PortfolioShareType && value)199 inline void SetPortfolioShareType(PortfolioShareType&& value) { m_portfolioShareTypeHasBeenSet = true; m_portfolioShareType = std::move(value); } 200 201 /** 202 * <p>The type of shared portfolios to list. The default is to list imported 203 * portfolios.</p> <ul> <li> <p> <code>AWS_ORGANIZATIONS</code> - List portfolios 204 * shared by the management account of your organization</p> </li> <li> <p> 205 * <code>AWS_SERVICECATALOG</code> - List default portfolios</p> </li> <li> <p> 206 * <code>IMPORTED</code> - List imported portfolios</p> </li> </ul> 207 */ WithPortfolioShareType(const PortfolioShareType & value)208 inline ListAcceptedPortfolioSharesRequest& WithPortfolioShareType(const PortfolioShareType& value) { SetPortfolioShareType(value); return *this;} 209 210 /** 211 * <p>The type of shared portfolios to list. The default is to list imported 212 * portfolios.</p> <ul> <li> <p> <code>AWS_ORGANIZATIONS</code> - List portfolios 213 * shared by the management account of your organization</p> </li> <li> <p> 214 * <code>AWS_SERVICECATALOG</code> - List default portfolios</p> </li> <li> <p> 215 * <code>IMPORTED</code> - List imported portfolios</p> </li> </ul> 216 */ WithPortfolioShareType(PortfolioShareType && value)217 inline ListAcceptedPortfolioSharesRequest& WithPortfolioShareType(PortfolioShareType&& value) { SetPortfolioShareType(std::move(value)); return *this;} 218 219 private: 220 221 Aws::String m_acceptLanguage; 222 bool m_acceptLanguageHasBeenSet; 223 224 Aws::String m_pageToken; 225 bool m_pageTokenHasBeenSet; 226 227 int m_pageSize; 228 bool m_pageSizeHasBeenSet; 229 230 PortfolioShareType m_portfolioShareType; 231 bool m_portfolioShareTypeHasBeenSet; 232 }; 233 234 } // namespace Model 235 } // namespace ServiceCatalog 236 } // namespace Aws 237