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 ListPrincipalsForPortfolioRequest : public ServiceCatalogRequest 22 { 23 public: 24 ListPrincipalsForPortfolioRequest(); 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 "ListPrincipalsForPortfolio"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 39 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 40 * Chinese</p> </li> </ul> 41 */ GetAcceptLanguage()42 inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; } 43 44 /** 45 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 46 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 47 * Chinese</p> </li> </ul> 48 */ AcceptLanguageHasBeenSet()49 inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; } 50 51 /** 52 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 53 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 54 * Chinese</p> </li> </ul> 55 */ SetAcceptLanguage(const Aws::String & value)56 inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; } 57 58 /** 59 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 60 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 61 * Chinese</p> </li> </ul> 62 */ SetAcceptLanguage(Aws::String && value)63 inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); } 64 65 /** 66 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 67 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 68 * Chinese</p> </li> </ul> 69 */ SetAcceptLanguage(const char * value)70 inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); } 71 72 /** 73 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 74 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 75 * Chinese</p> </li> </ul> 76 */ WithAcceptLanguage(const Aws::String & value)77 inline ListPrincipalsForPortfolioRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;} 78 79 /** 80 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 81 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 82 * Chinese</p> </li> </ul> 83 */ WithAcceptLanguage(Aws::String && value)84 inline ListPrincipalsForPortfolioRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;} 85 86 /** 87 * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p> 88 * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - 89 * Chinese</p> </li> </ul> 90 */ WithAcceptLanguage(const char * value)91 inline ListPrincipalsForPortfolioRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;} 92 93 94 /** 95 * <p>The portfolio identifier.</p> 96 */ GetPortfolioId()97 inline const Aws::String& GetPortfolioId() const{ return m_portfolioId; } 98 99 /** 100 * <p>The portfolio identifier.</p> 101 */ PortfolioIdHasBeenSet()102 inline bool PortfolioIdHasBeenSet() const { return m_portfolioIdHasBeenSet; } 103 104 /** 105 * <p>The portfolio identifier.</p> 106 */ SetPortfolioId(const Aws::String & value)107 inline void SetPortfolioId(const Aws::String& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = value; } 108 109 /** 110 * <p>The portfolio identifier.</p> 111 */ SetPortfolioId(Aws::String && value)112 inline void SetPortfolioId(Aws::String&& value) { m_portfolioIdHasBeenSet = true; m_portfolioId = std::move(value); } 113 114 /** 115 * <p>The portfolio identifier.</p> 116 */ SetPortfolioId(const char * value)117 inline void SetPortfolioId(const char* value) { m_portfolioIdHasBeenSet = true; m_portfolioId.assign(value); } 118 119 /** 120 * <p>The portfolio identifier.</p> 121 */ WithPortfolioId(const Aws::String & value)122 inline ListPrincipalsForPortfolioRequest& WithPortfolioId(const Aws::String& value) { SetPortfolioId(value); return *this;} 123 124 /** 125 * <p>The portfolio identifier.</p> 126 */ WithPortfolioId(Aws::String && value)127 inline ListPrincipalsForPortfolioRequest& WithPortfolioId(Aws::String&& value) { SetPortfolioId(std::move(value)); return *this;} 128 129 /** 130 * <p>The portfolio identifier.</p> 131 */ WithPortfolioId(const char * value)132 inline ListPrincipalsForPortfolioRequest& WithPortfolioId(const char* value) { SetPortfolioId(value); return *this;} 133 134 135 /** 136 * <p>The maximum number of items to return with this call.</p> 137 */ GetPageSize()138 inline int GetPageSize() const{ return m_pageSize; } 139 140 /** 141 * <p>The maximum number of items to return with this call.</p> 142 */ PageSizeHasBeenSet()143 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } 144 145 /** 146 * <p>The maximum number of items to return with this call.</p> 147 */ SetPageSize(int value)148 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } 149 150 /** 151 * <p>The maximum number of items to return with this call.</p> 152 */ WithPageSize(int value)153 inline ListPrincipalsForPortfolioRequest& WithPageSize(int value) { SetPageSize(value); return *this;} 154 155 156 /** 157 * <p>The page token for the next set of results. To retrieve the first set of 158 * results, use null.</p> 159 */ GetPageToken()160 inline const Aws::String& GetPageToken() const{ return m_pageToken; } 161 162 /** 163 * <p>The page token for the next set of results. To retrieve the first set of 164 * results, use null.</p> 165 */ PageTokenHasBeenSet()166 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; } 167 168 /** 169 * <p>The page token for the next set of results. To retrieve the first set of 170 * results, use null.</p> 171 */ SetPageToken(const Aws::String & value)172 inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; } 173 174 /** 175 * <p>The page token for the next set of results. To retrieve the first set of 176 * results, use null.</p> 177 */ SetPageToken(Aws::String && value)178 inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); } 179 180 /** 181 * <p>The page token for the next set of results. To retrieve the first set of 182 * results, use null.</p> 183 */ SetPageToken(const char * value)184 inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); } 185 186 /** 187 * <p>The page token for the next set of results. To retrieve the first set of 188 * results, use null.</p> 189 */ WithPageToken(const Aws::String & value)190 inline ListPrincipalsForPortfolioRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;} 191 192 /** 193 * <p>The page token for the next set of results. To retrieve the first set of 194 * results, use null.</p> 195 */ WithPageToken(Aws::String && value)196 inline ListPrincipalsForPortfolioRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;} 197 198 /** 199 * <p>The page token for the next set of results. To retrieve the first set of 200 * results, use null.</p> 201 */ WithPageToken(const char * value)202 inline ListPrincipalsForPortfolioRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;} 203 204 private: 205 206 Aws::String m_acceptLanguage; 207 bool m_acceptLanguageHasBeenSet; 208 209 Aws::String m_portfolioId; 210 bool m_portfolioIdHasBeenSet; 211 212 int m_pageSize; 213 bool m_pageSizeHasBeenSet; 214 215 Aws::String m_pageToken; 216 bool m_pageTokenHasBeenSet; 217 }; 218 219 } // namespace Model 220 } // namespace ServiceCatalog 221 } // namespace Aws 222