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/OrganizationNodeType.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 ListOrganizationPortfolioAccessRequest : public ServiceCatalogRequest 23 { 24 public: 25 ListOrganizationPortfolioAccessRequest(); 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 "ListOrganizationPortfolioAccess"; } 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 ListOrganizationPortfolioAccessRequest& 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 ListOrganizationPortfolioAccessRequest& 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 ListOrganizationPortfolioAccessRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;} 93 94 95 /** 96 * <p>The portfolio identifier. For example, <code>port-2abcdext3y5fk</code>.</p> 97 */ GetPortfolioId()98 inline const Aws::String& GetPortfolioId() const{ return m_portfolioId; } 99 100 /** 101 * <p>The portfolio identifier. For example, <code>port-2abcdext3y5fk</code>.</p> 102 */ PortfolioIdHasBeenSet()103 inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; } 104 105 /** 106 * <p>The portfolio identifier. For example, <code>port-2abcdext3y5fk</code>.</p> 107 */ SetPortfolioId(const Aws::String & value)108 inline void SetPortfolioId(const Aws::String& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = value; } 109 110 /** 111 * <p>The portfolio identifier. For example, <code>port-2abcdext3y5fk</code>.</p> 112 */ SetPortfolioId(Aws::String && value)113 inline void SetPortfolioId(Aws::String&& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = std::move(value); } 114 115 /** 116 * <p>The portfolio identifier. For example, <code>port-2abcdext3y5fk</code>.</p> 117 */ SetPortfolioId(const char * value)118 inline void SetPortfolioId(const char* value) { m_portfolioIdHasBeenSet = true; m_portfolioId.assign(value); } 119 120 /** 121 * <p>The portfolio identifier. For example, <code>port-2abcdext3y5fk</code>.</p> 122 */ WithPortfolioId(const Aws::String & value)123 inline ListOrganizationPortfolioAccessRequest& WithPortfolioId(const Aws::String& value) { SetPortfolioId(value); return *this;} 124 125 /** 126 * <p>The portfolio identifier. For example, <code>port-2abcdext3y5fk</code>.</p> 127 */ WithPortfolioId(Aws::String && value)128 inline ListOrganizationPortfolioAccessRequest& WithPortfolioId(Aws::String&& value) { SetPortfolioId(std::move(value)); return *this;} 129 130 /** 131 * <p>The portfolio identifier. For example, <code>port-2abcdext3y5fk</code>.</p> 132 */ WithPortfolioId(const char * value)133 inline ListOrganizationPortfolioAccessRequest& WithPortfolioId(const char* value) { SetPortfolioId(value); return *this;} 134 135 136 /** 137 * <p>The organization node type that will be returned in the output.</p> <ul> <li> 138 * <p> <code>ORGANIZATION</code> - Organization that has access to the portfolio. 139 * </p> </li> <li> <p> <code>ORGANIZATIONAL_UNIT</code> - Organizational unit that 140 * has access to the portfolio within your organization.</p> </li> <li> <p> 141 * <code>ACCOUNT</code> - Account that has access to the portfolio within your 142 * organization.</p> </li> </ul> 143 */ GetOrganizationNodeType()144 inline const OrganizationNodeType& GetOrganizationNodeType() const{ return m_organizationNodeType; } 145 146 /** 147 * <p>The organization node type that will be returned in the output.</p> <ul> <li> 148 * <p> <code>ORGANIZATION</code> - Organization that has access to the portfolio. 149 * </p> </li> <li> <p> <code>ORGANIZATIONAL_UNIT</code> - Organizational unit that 150 * has access to the portfolio within your organization.</p> </li> <li> <p> 151 * <code>ACCOUNT</code> - Account that has access to the portfolio within your 152 * organization.</p> </li> </ul> 153 */ OrganizationNodeTypeHasBeenSet()154 inline bool OrganizationNodeTypeHasBeenSet() const { return m_organizationNodeTypeHasBeenSet; } 155 156 /** 157 * <p>The organization node type that will be returned in the output.</p> <ul> <li> 158 * <p> <code>ORGANIZATION</code> - Organization that has access to the portfolio. 159 * </p> </li> <li> <p> <code>ORGANIZATIONAL_UNIT</code> - Organizational unit that 160 * has access to the portfolio within your organization.</p> </li> <li> <p> 161 * <code>ACCOUNT</code> - Account that has access to the portfolio within your 162 * organization.</p> </li> </ul> 163 */ SetOrganizationNodeType(const OrganizationNodeType & value)164 inline void SetOrganizationNodeType(const OrganizationNodeType& value) { m_organizationNodeTypeHasBeenSet = true; m_organizationNodeType = value; } 165 166 /** 167 * <p>The organization node type that will be returned in the output.</p> <ul> <li> 168 * <p> <code>ORGANIZATION</code> - Organization that has access to the portfolio. 169 * </p> </li> <li> <p> <code>ORGANIZATIONAL_UNIT</code> - Organizational unit that 170 * has access to the portfolio within your organization.</p> </li> <li> <p> 171 * <code>ACCOUNT</code> - Account that has access to the portfolio within your 172 * organization.</p> </li> </ul> 173 */ SetOrganizationNodeType(OrganizationNodeType && value)174 inline void SetOrganizationNodeType(OrganizationNodeType&& value) { m_organizationNodeTypeHasBeenSet = true; m_organizationNodeType = std::move(value); } 175 176 /** 177 * <p>The organization node type that will be returned in the output.</p> <ul> <li> 178 * <p> <code>ORGANIZATION</code> - Organization that has access to the portfolio. 179 * </p> </li> <li> <p> <code>ORGANIZATIONAL_UNIT</code> - Organizational unit that 180 * has access to the portfolio within your organization.</p> </li> <li> <p> 181 * <code>ACCOUNT</code> - Account that has access to the portfolio within your 182 * organization.</p> </li> </ul> 183 */ WithOrganizationNodeType(const OrganizationNodeType & value)184 inline ListOrganizationPortfolioAccessRequest& WithOrganizationNodeType(const OrganizationNodeType& value) { SetOrganizationNodeType(value); return *this;} 185 186 /** 187 * <p>The organization node type that will be returned in the output.</p> <ul> <li> 188 * <p> <code>ORGANIZATION</code> - Organization that has access to the portfolio. 189 * </p> </li> <li> <p> <code>ORGANIZATIONAL_UNIT</code> - Organizational unit that 190 * has access to the portfolio within your organization.</p> </li> <li> <p> 191 * <code>ACCOUNT</code> - Account that has access to the portfolio within your 192 * organization.</p> </li> </ul> 193 */ WithOrganizationNodeType(OrganizationNodeType && value)194 inline ListOrganizationPortfolioAccessRequest& WithOrganizationNodeType(OrganizationNodeType&& value) { SetOrganizationNodeType(std::move(value)); return *this;} 195 196 197 /** 198 * <p>The page token for the next set of results. To retrieve the first set of 199 * results, use null.</p> 200 */ GetPageToken()201 inline const Aws::String& GetPageToken() const{ return m_pageToken; } 202 203 /** 204 * <p>The page token for the next set of results. To retrieve the first set of 205 * results, use null.</p> 206 */ PageTokenHasBeenSet()207 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; } 208 209 /** 210 * <p>The page token for the next set of results. To retrieve the first set of 211 * results, use null.</p> 212 */ SetPageToken(const Aws::String & value)213 inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; } 214 215 /** 216 * <p>The page token for the next set of results. To retrieve the first set of 217 * results, use null.</p> 218 */ SetPageToken(Aws::String && value)219 inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); } 220 221 /** 222 * <p>The page token for the next set of results. To retrieve the first set of 223 * results, use null.</p> 224 */ SetPageToken(const char * value)225 inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); } 226 227 /** 228 * <p>The page token for the next set of results. To retrieve the first set of 229 * results, use null.</p> 230 */ WithPageToken(const Aws::String & value)231 inline ListOrganizationPortfolioAccessRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;} 232 233 /** 234 * <p>The page token for the next set of results. To retrieve the first set of 235 * results, use null.</p> 236 */ WithPageToken(Aws::String && value)237 inline ListOrganizationPortfolioAccessRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;} 238 239 /** 240 * <p>The page token for the next set of results. To retrieve the first set of 241 * results, use null.</p> 242 */ WithPageToken(const char * value)243 inline ListOrganizationPortfolioAccessRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;} 244 245 246 /** 247 * <p>The maximum number of items to return with this call.</p> 248 */ GetPageSize()249 inline int GetPageSize() const{ return m_pageSize; } 250 251 /** 252 * <p>The maximum number of items to return with this call.</p> 253 */ PageSizeHasBeenSet()254 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } 255 256 /** 257 * <p>The maximum number of items to return with this call.</p> 258 */ SetPageSize(int value)259 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } 260 261 /** 262 * <p>The maximum number of items to return with this call.</p> 263 */ WithPageSize(int value)264 inline ListOrganizationPortfolioAccessRequest& WithPageSize(int value) { SetPageSize(value); return *this;} 265 266 private: 267 268 Aws::String m_acceptLanguage; 269 bool m_acceptLanguageHasBeenSet; 270 271 Aws::String m_portfolioId; 272 bool m_portfolioIdHasBeenSet; 273 274 OrganizationNodeType m_organizationNodeType; 275 bool m_organizationNodeTypeHasBeenSet; 276 277 Aws::String m_pageToken; 278 bool m_pageTokenHasBeenSet; 279 280 int m_pageSize; 281 bool m_pageSizeHasBeenSet; 282 }; 283 284 } // namespace Model 285 } // namespace ServiceCatalog 286 } // namespace Aws 287